LLM Evaluation: How to Assess New Models' Capabilities and Cost-Effectiveness Systematically

    This article explains how to evaluate a newly released large language model in a structured way. It covers why launch-time information is often contradictory, which model characteristics matter most—such as total versus activated parameters, mixture-of-experts design, context window, multimodal input and output, and architecture claims—and how to interpret public benchmarks, blind voting leaderboards, and vendor self-evaluations. It then shows how to build a private evaluation set and design task-specific tests for code generation and repair, long-document research, and UI or visual tasks, including a reusable Python evaluation harness.

    1. Why It Is Hard to Draw Conclusions Right After a New Model Launch

    Every time a large model is released, promotional materials, leaderboard screenshots, and community discussions appear at the same time. The volume of information is large, but the conclusions often contradict one another. There are three reasons.

    First, the vendor chooses its own evaluation sets, so the question types and scoring criteria naturally favor its strengths. Second, scores on independent leaderboards fluctuate as questions are updated, evaluation settings change, and prompts vary. Third, personal experience depends heavily on the use case: the same model may perform very differently on front-end coding and on mathematical proofs.

    Therefore, evaluating a new model should follow three steps: first clarify your own task requirements, then understand the public information, and finally validate the model with your own data.

    2. Break Down Key Model Characteristics

    2.1 Parameter Scale and Mixture-of-Experts Structure

    The total parameter count describes the upper bound of a model’s capacity. Actual inference cost depends more on the number of parameters activated during each forward pass. A mixture-of-experts (MoE) architecture splits the network into multiple expert submodules, and a routing mechanism selects a small number of experts to participate in computation for each input. This design allows a model with a large total parameter count to keep single-inference overhead acceptable.

    Readers should pay attention to three types of numbers at the same time: total parameters, parameters activated per inference, and the total number of experts together with the number of experts activated each time. Looking only at total parameters can easily overestimate inference cost and underestimate GPU memory requirements and deployment thresholds.

    2.2 Context Window

    The context window is the maximum input length a model can receive at once, but window size does not equal effective utilization. When the window reaches the million-token level, the model’s ability to recall long-distance information and its tendency to ignore content in the middle of the text both need separate testing.

    A common method is the “needle-in-a-haystack” test: place a key fact at different positions in a long document and ask the model to answer accurately at different text lengths. Plotting the results as a heatmap of recall rate against length and position can visually show the model’s effective memory range.

    2.3 Multimodal Capabilities

    Multimodal capabilities need to be separated into input and output. Being able to understand images or video only means that the model can read this content and generate textual judgments. If the output also includes images or audio, that is a different capability and needs to be evaluated separately.

    For tasks such as UI replication, chart analysis, and video summarization, test items should be designed separately. For example, check whether image descriptions are accurate, whether UI elements are missing, and whether the chronological order in a video timeline is correct.

    2.4 How to Read Architecture Improvements

    Techniques such as improvements to attention mechanisms and adjustments to residual connections are mostly intended to improve the stability of long-sequence training and the efficiency of information transfer through deep networks. Such improvements usually do not show up directly in a single metric; instead, they are reflected indirectly through completion rates on long tasks.

    Readers do not need to verify every detail of a paper, but they should compare “architecture-level claims” with “actual task results.”

    3. Read Public Benchmark Results Carefully

    3.1 Composition of Composite Indices

    A composite index is usually a weighted average of scores on multiple subtasks. The weight allocation directly determines the ranking. If mathematics and knowledge question answering have high weights in the index, a model that is strong at coding may be underrated. When viewing an index, look at the sub-scores first, then at the weight settings.

    3.2 Blind Voting Leaderboards

    Blind voting asks users to choose between two answers without knowing the model names. It reflects ordinary users’ preferences, including answer style, formatting, and completeness. The composition of the voting population, the distribution of prompts, and the presence of duplicate questions can all affect the results.

    Therefore, a high blind-test score means that answers are more likely to satisfy people; it cannot directly lead to the conclusion that the model has higher accuracy on difficult problems.

    3.3 Vendor Self-Evaluations

    Vendor self-evaluations have reference value, but three things need to be checked. First, whether the comparison targets are the latest versions from the same period. Second, whether the evaluation set is public and whether the questions can be reproduced. Third, whether failure cases are reported. An evaluation that shows only strengths and does not disclose weaknesses has limited reference value.

    3.4 Build Your Own Evaluation Set

    The most reliable basis is your own business data. It is recommended to extract 100 to 300 samples from real tickets, historical code changes, and internal documents, covering high-frequency tasks and edge cases, and to set clear pass criteria for each sample.

    4. Design Evaluation Methods by Task Type

    4.1 Code Generation and Repair

    Pass rate is the core metric. For feature implementation tasks, unit tests can be used to judge results; for bug-fix tasks, regression tests are needed to confirm that existing functionality has not been affected. Repository-level tasks also need to examine whether the model can correctly locate files and understand cross-module dependencies.

    Below is a generic evaluation harness example:

    1. from dataclasses import dataclass
    2. from typing import Callable
    3. @dataclass
    4. class EvalCase:
    5. case_id: str
    6. prompt: str
    7. checker: Callable[[str], bool] # Takes model output; returns whether it passes
    8. def run_eval(model_call: Callable[[str], str], cases: list[EvalCase]) -> dict:
    9. passed = 0
    10. failures = []
    11. for case in cases:
    12. output = model_call(case.prompt)
    13. if case.checker(output):
    14. passed += 1
    15. else:
    16. failures.append(case.case_id)
    17. return {
    18. "total": len(cases),
    19. "passed": passed,
    20. "pass_rate": passed / len(cases) if cases else 0.0,
    21. "failures": failures,
    22. }

    model_call can be provided by a unified client wrapper. With the same set of cases, you only need to replace the call function to compare different models side by side.

    4.2 Long-Document Understanding and Research Assistance

    The focus should be on factual accuracy and citation faithfulness. You can require the model to attach the source location after each conclusion, and then check whether the citation matches the original text through rules or manual spot checks. Measuring the proportion of cases that have conclusions but no evidence is more meaningful than simply looking at whether the summary is fluent.

    4.3 UI and Visual Tasks

    Given a screenshot or design mockup, ask the model to generate the corresponding front-end code, then render the page and compare it with the original image. Evaluation dimensions include layout fidelity, text content, and interaction completeness. A useful metric is the proportion of outputs that run correctly after a single generation.