How to Evaluate a New Large Language Model in Practice

    Launch benchmarks are useful for shortlisting large language models, but model selection should rely on tests that reflect your actual workload. This article outlines how to define evaluation requirements, measure reasoning and coding performance, assess long-running workflows, and compare cost, latency, and context utilization through a reproducible testing process.

    1. Why Launch Benchmarks Are Not Enough for Model Selection

    When a new model launches, its release page usually includes comparison charts. These figures provide useful reference points, but using them directly for procurement or technical selection can lead to poor decisions for three main reasons.

    First, evaluation methods differ. Benchmarks use different task distributions, scoring rules, and prompt templates. The same model can rank very differently across two benchmarks.

    Second, the provider chooses the comparison setup. The versions of competing models, inference parameters, and runtime environments are typically configured by the provider, making the results difficult for readers to verify independently.

    Third, a single performance metric can hide costs. A model may achieve a higher score by using more reasoning steps or producing longer outputs. Its actual cost per task is not necessarily lower.

    Treat launch benchmarks as a starting point for shortlisting models. Final decisions should come from testing on your own business tasks.

    2. Define the Evaluation Scope First

    Before testing, the team needs to answer three questions:

    • What tasks will the model handle? Code completion, bug fixing, document analysis, data processing, or multistep automated workflows?
    • What is the minimum acceptable quality? Are occasional errors acceptable? Can a human quickly identify errors when they occur?
    • What constraints apply? Consider budget limits, response-time requirements, whether data can leave a controlled environment, and whether private deployment is required.

    Metrics become meaningful only once the scope is clear. Summarizing customer support conversations emphasizes consistency and latency, while code repair places greater weight on pass rates and the scope of changes.

    3. Break Evaluation into Key Dimensions

    3.1 General Reasoning

    General-purpose benchmarks provide a rough indication of reasoning ability. When reviewing an aggregate score, examine the subtasks that contribute to it. If your workload primarily involves mathematical reasoning, the overall score has limited relevance.

    A more reliable approach is to select benchmark subsets that resemble your workload and report their results separately.

    3.2 Coding Performance

    Evaluate coding ability at three levels:

    1. Single-function generation: Provide a function signature and specification, then measure the unit test pass rate.
    2. Changes within a repository: Ask the model to fix a bug or add a feature in a real codebase, then examine regression test results and code review feedback.
    3. Cross-module changes: For tasks involving multiple files and dependencies, focus on whether changes stay within scope and preserve existing interfaces.

    Record both the first-attempt pass rate and the pass rate after one round of human correction. A larger gap indicates greater dependence on subsequent human intervention.

    3.3 Long-Running Tasks and Multi-Agent Collaboration

    Long-running tasks require dozens of steps or more, such as workflows that involve research, modeling, implementation, and validation. Evaluate four aspects:

    • Whether the plan is reasonable and the task breakdown is complete.
    • Whether execution drifts away from the original objective.
    • Whether the model can recognize a failed step and retry.
    • Whether execution is observable, with logs of each step’s inputs, outputs, and decisions.

    In a multi-agent architecture, also check whether state is transferred accurately between agents. Task information is often lost during handoffs, and this issue is easy to overlook in testing.

    3.4 Cost per Successful Task

    Many teams compare only the price per million tokens. That is incomplete. The more relevant measure is the cost per successfully completed task:

    Cost per successful task = Total inference cost ÷ Number of tasks that pass acceptance criteria

    Total inference cost includes input tokens, output tokens, cached input tokens, and the overhead of retries after failures. A model with lower token prices but a higher failure rate may cost more per successful task.

    3.5 Latency and Throughput

    Latency has two components: time to first token and generation speed during output. Interactive applications are more sensitive to time to first token, while batch processing places greater emphasis on throughput.

    Measure performance at concurrency levels close to those expected in production. Results collected under low concurrency are often overly optimistic.

    3.6 Effective Context Window Utilization

    A model’s advertised context length does not mean it can reliably use all the information within that window. A common issue is reduced recall of information in the middle of long texts.

    To test this, place several facts at different positions in a long document, ask questions about them, and measure recall accuracy by position.

    4. Build a Reproducible Evaluation Process

    4.1 Create a Task Set

    Use tasks drawn from real work, such as historical support tickets, previously fixed bugs, and business documents with sensitive information removed.

    Divide tasks into three difficulty levels—easy, medium, and hard—with balanced sample counts across the groups. Smaller samples produce greater random variation, so run each task multiple times and record the mean and variance.

    4.2 Define Scoring Methods

    Scoring falls into two categories: automated checks and human review.

    Prioritize automation when tasks can be evaluated through test cases, structural validation, or numerical comparisons. Open-ended tasks, such as document summarization, require reviewers to score outputs using a consistent rubric. Reviewers should not know which model produced each output.

    4.3 Example: Calculate Success Rate and Cost per Successful Task

    The following code demonstrates how to summarize success rate and cost per successful task. The sample data is fictional and is used only to illustrate the calculation.

    1. def summarize(records, price_in, price_out, price_cache):
    2. # Prices are per million tokens, all in the same currency.
    3. # input_tokens excludes cache hits; cached_tokens is billed separately.
    4. total_cost = 0.0
    5. passed = 0
    6. for r in records:
    7. total_cost += (
    8. r["input_tokens"] * price_in
    9. + r["output_tokens"] * price_out
    10. + r["cached_tokens"] * price_cache
    11. ) / 1_000_000
    12. if r["passed"]:
    13. passed += 1
    14. success_rate = passed / len(records) if records else 0.0
    15. cost_per_success = total_cost / passed if passed else float("inf")
    16. return {"success_rate": success_rate, "cost_per_success": cost_per_success}
    17. sample = [
    18. {"input_tokens": 12000, "output_tokens": 3000, "cached_tokens": 8000, "passed": True},
    19. {"input_tokens": 15000, "output_tokens": 4500, "cached_tokens": 0, "passed": False},
    20. {"input_tokens": 9000, "output_tokens": 2000, "cached_tokens": 6000, "passed": True},
    21. ]
    22. print(summarize(sample, price_in=1.0, price_out=4.0, price_cache=0.1))

    After multiple evaluation runs, report results separately for each difficulty level to compare model performance across task groups.