Measuring LLM Capabilities: Evaluation Design, Iteration Rhythm, and Distillation Compliance

    This article explores effective methods for measuring Large Language Model (LLM) capabilities, covering evaluation framework design, statistical significance, and the fluctuating gap between open-weight and closed-source models. It also delves into the principles and compliance considerations of knowledge distillation, alongside practical engineering recommendations for model selection, evaluation, and deployment.

    1. Why “Who is Stronger” is Hard to Answer in One Sentence

    Comparisons of Large Language Model (LLM) capabilities are common in industry reports and public leaderboards, but a single ranking is insufficient to explain the whole picture. The same model can score several percentage points differently depending on the evaluation dataset, prompt template, and decoding parameters. Version updates can also reshuffle the top ten. Therefore, before discussing capability gaps, three questions must be answered: what method is used to test, what kind of capability is being tested, and whether the results can be reproduced by a third party.

    The industry typically understands “gaps” from two dimensions. The first is the time gap, which is the interval between when a specific capability level first appears in open-weight models versus closed-source models. The second is the score gap, which is the difference between the two types of models on the same set of metrics. Both depend on the specific measurement criteria and cannot be directly compared across different standards.

    2. Measurement Framework for Capability Gaps

    2.1 Composite Metrics vs. Individual Metrics

    Composite metrics combine multiple tasks into a single total score using weights, making it easy to rank models. However, if the weights change, the rankings might change as well. Individual metrics retain specific capabilities, such as code generation, mathematical reasoning, long-context retrieval, and multi-turn tool calling, which are more suitable for engineering selection. It is recommended to report both types of metrics simultaneously and disclose the weights and task composition.

    2.2 Evaluation Design for Terminal Agent Coding Tasks

    Evaluations for coding agents typically require the model to complete tasks in an isolated environment: reading code repositories, executing terminal commands, modifying files, and running tests. The scoring is based on whether the tests pass, rather than the similarity between the response text and the standard answer. When designing such evaluations, the following points should be noted:

    • Environment Isolation: Use a clean sandbox for each run to prevent historical states from affecting the results.
    • Resource Limits: Fix the maximum number of steps, execution time, and memory to ensure comparability between different models.
    • Deterministic Scoring: Rely on unit test results or process exit codes to minimize subjective human judgment.
    • Multiple Sampling: Run the same task multiple times and report the pass rate and its confidence interval, rather than just reporting a single result.

    2.3 Statistical Significance

    Suppose the pass rates of two models differ by only one or two percentage points, but the test set only contains 100 questions. This gap is likely to fall within the range of random fluctuation. With a pass rate of 0.66, the standard error of the binomial distribution for 100 questions is about 4.7 percentage points, and the half-width of the 95% confidence interval is about 9 percentage points. The following code uses the bootstrap method to estimate the confidence interval of the average pass rate:

    1. import random
    2. from statistics import mean
    3. def bootstrap_ci(outcomes, n_boot=2000, alpha=0.05, seed=0):
    4. """outcomes is a list of 0/1 results for each question, returns the average pass rate and confidence interval."""
    5. rng = random.Random(seed)
    6. n = len(outcomes)
    7. resampled = sorted(
    8. mean(outcomes[rng.randrange(n)] for _ in range(n))
    9. for _ in range(n_boot)
    10. )
    11. low = resampled[int(n_boot * alpha / 2)]
    12. high = resampled[int(n_boot * (1 - alpha / 2)) - 1]
    13. return mean(outcomes), (low, high)
    14. if __name__ == "__main__":
    15. model_a = [1] * 66 + [0] * 34
    16. model_b = [1] * 70 + [0] * 30
    17. print("Model A:", bootstrap_ci(model_a))
    18. print("Model B:", bootstrap_ci(model_b))

    If the two intervals overlap significantly, it indicates that the current data is insufficient to confirm the gap. To test the paired difference on the same set of questions, a paired test or paired bootstrap should be used, as they are more sensitive than independent comparisons.

    3. Why the Gap Between Open-Weight and Closed-Source Models Fluctuates

    The gap is not a fixed value and is mainly influenced by the following factors:

    Training Investment and Data Scale. Frontier closed-source models typically invest more computing power, but the relationship between investment and performance is not linear; data quality and training recipes are equally critical.

    Diffusion of Post-Training Methods. Instruction fine-tuning and reinforcement learning can significantly alter coding and tool-usage capabilities in a relatively short period. When a particular post-training method is widely validated, models from different teams will quickly converge to a similar level, narrowing the gap. Conversely, when new methods first appear in a few institutions, the gap will temporarily widen.

    Release Format. When services are provided only through APIs, third parties can only evaluate from the outside, making it difficult to inspect weights and inference details. After weights are made public, reproducibility improves, but differences in inference frameworks, quantization methods, and decoding parameters can also cause score deviations of a few percentage points.

    Evaluation Time Point. After a server-side version update, the score of the same model might change. Therefore, any evaluation report should record the model version, evaluation date, and inference configuration.

    4. Knowledge Distillation: Principles, Uses, and Controversies

    4.1 Basic Principles

    Knowledge distillation allows a teacher model to generate output distributions or text for a given input, which the student model uses as a training target. Compared to learning only hard labels, soft labels contain relative probability information between classes, often achieving similar performance with less data and a smaller model.

    4.2 Legitimate Uses

    • Compressing a proprietary large model to obtain a version with lower inference costs.
    • Generating training samples using proprietary or authorized data.
    • Using an open-weight model as a teacher model, provided the license permits it.

    4.3 Controversy Focus

    Controversies usually arise when using unauthorized service outputs to train models. This may violate terms of service or data use agreements, and may also involve intellectual property and unfair competition issues. Currently, the industry lacks a unified standard for these boundaries, and discussions mainly focus on three points: whether model outputs are protected by copyright, whether terms of service are binding, and whether large-scale batch requests constitute substantial copying.

    4.4 Training Data Compliance Check

    Teams can audit training data using the following process:

    1. Record the source of each batch of data, including license type, terms of service version, and acquisition date.
    2. Categorize the data into self-collected data, public data, and third-party model outputs, and register them separately.
    3. Set usage limits for third-party model outputs, prohibiting uses beyond what the terms allow.
    4. Retain audit logs to prepare for internal or external reviews.

    5. Impact of Server-Side Protection Measures on R&D

    Service providers commonly use rate limiting, usage monitoring, and output policy controls to prevent abuse. For normal developers, this means they might encounter quota limits or truncated responses. Coping strategies include designing exponential backoff retries for requests, caching obtained results to avoid duplicate calls, and estimating required quotas early in the project.

    Protection measures also increase the difficulty of independent evaluation. Therefore, evaluation teams should disclose evaluation protocols, question compositions, and scoring scripts so that the results can be verified by others.

    6. Engineering Practice Recommendations

    Phase Focus Area Common Risks
    Selection Define business scenarios and core capabilities Focusing only on composite rankings while ignoring individual metrics relevant to the business
    Evaluation Multiple sampling, report confidence intervals Treating a single run result as a definitive conclusion
    Data Record sources and licenses Mixing third-party outputs into the training set without documentation
    Deployment Design rate limiting and retry strategies Service disruptions during peak times due to exhausted quotas
    Reproducibility Record model versions and inference configurations Reaching different conclusions for the same model name due to version changes

    By following the above process, teams can determine whether a model capability gap truly exists at a lower cost, and control compliance risks in both training data and service invocation.