How to Evaluate Large Language Models: Methods Beyond Leaderboard Scores

    Evaluating Large Language Models (LLMs) requires moving beyond single leaderboard scores, which can mask critical issues like data contamination and task misalignment. This article outlines a comprehensive approach to LLM evaluation, including decomposing evaluation dimensions, building custom evaluation sets, applying statistical comparisons, mitigating biases in manual evaluations, and understanding training objectives for multimodal models. It also provides a practical workflow checklist to help teams make informed model selection decisions based on reproducible data.

    1. Why Single Leaderboard Scores Are Insufficient

    Aggregate leaderboards compress multiple tasks into a single number for easy ranking, but this process discards a significant amount of information. When multiple models differ by only a point or two, the gap is likely within the margin of error of the evaluation itself. Variations in sampling evaluation questions, answer judgment rules, and prompt templates can all cause score fluctuations.

    Leaderboards also suffer from two common issues. First is data contamination, where evaluation questions or their variants may appear in the training corpus; a high score does not necessarily indicate strong reasoning ability. Second is task distribution misalignment. The structure of leaderboard tasks often does not match specific business scenarios. A model that excels at math competition problems may not reliably handle customer service ticket classification or the extraction of long contract clauses.

    Therefore, leaderboards are suitable for initial screening but not for final decisions. When selecting a model, the questions to answer are: Which model has a lower error rate on my tasks? Are the types of errors acceptable? Do the cost and latency meet the requirements?

    2. Decomposing Evaluation Dimensions

    Before building your own evaluation system, break down “capability” into independently observable dimensions. Common dimensions include:

    1. Instruction adherence: Whether the output strictly follows format, length, and field requirements, such as not including explanatory text when asked to return only JSON.
    2. Long context understanding: The ability to locate key information in long inputs and cite it correctly, which can be tested by embedding facts in the middle of a text and then asking questions.
    3. Code generation and repair: The proportion of runnable code generated based on requirements or error messages that pass preset unit tests.
    4. Mathematical and logical reasoning: The accuracy of multi-step deduction problems and the self-consistency of intermediate steps.
    5. Tool calling: Whether the model can select the correct function based on a description and provide complete parameter types and required fields.
    6. Multi-turn consistency: Whether previous agreements are respected in multi-turn dialogues without contradictions.
    7. Factuality and refusal calibration: Whether the model explicitly expresses uncertainty for unanswerable questions rather than fabricating answers.
    8. Domain terminology and multilingual capability: The accuracy of professional vocabulary and the quality of translation between different languages.

    Each dimension should correspond to specific test samples and judgment criteria. Results are only comparable when the criteria are clear.

    3. Building a Custom Evaluation Set

    The core of a custom evaluation set is “realistic sampling and rigorous annotation.” The following steps are recommended:

    Step 1: Extract requests from real business logs, remove sensitive information, and use them as candidate questions. Sampling should be stratified by category and difficulty to avoid retaining only simple samples.

    Step 2: Write judgment rules for each sample. There are roughly three types of judgment methods: exact matching (suitable for classification and extraction tasks), rule validation (e.g., JSON structure, code unit tests), and manual judgment where reviewers score based on specific rubrics.

    Step 3: Perform double annotation for manually judged samples and calculate inter-annotator agreement. When agreement is low, revise the rubrics first before using them for model comparison.

    Here is an example of a general evaluation execution framework. The model call part is represented by an abstract function and can be replaced with any interface:

    1. from dataclasses import dataclass
    2. from typing import Callable
    3. import statistics
    4. @dataclass
    5. class EvalCase:
    6. prompt: str
    7. checker: Callable[[str], bool] # Takes model output as input, returns whether it passed
    8. category: str
    9. def run_eval(model_call: Callable[[str], str], cases: list[EvalCase], runs: int = 3) -> dict[str, float]:
    10. """Calls the model repeatedly for each sample and aggregates the average pass rate by category."""
    11. per_category: dict[str, list[float]] = {}
    12. for case in cases:
    13. trial_scores = []
    14. for _ in range(runs):
    15. output = model_call(case.prompt)
    16. trial_scores.append(1.0 if case.checker(output) else 0.0)
    17. per_category.setdefault(case.category, []).append(statistics.mean(trial_scores))
    18. return {name: round(statistics.mean(scores), 3) for name, scores in per_category.items()}

    The key point of this framework is to run the same sample repeatedly. Due to the sampling randomness in LLM outputs, a single result cannot represent the model’s stable level. The number of repetitions can be set based on budget; usually, three or more times are needed to observe significant fluctuations.

    4. Statistical Comparison: Making Differences Verifiable

    When comparing two models, the same set of questions, the same prompts, and the same judgment rules should be used to form paired data. For binary pass/fail results, paired testing methods (such as the McNemar test) can be used to determine whether the difference between two models exceeds random fluctuation. For continuous scores, the bootstrap method can be used to estimate the confidence interval of the average score.

    When reporting results, it is recommended to provide the following information simultaneously: sample size, pass rate for each category, confidence intervals, and classified statistics of failure cases. Reporting only a total score can easily mask key differences. For example, two models may have the same total score, but one is significantly better at coding tasks while the other is more stable at format adherence. These differences have entirely different implications for model selection.

    Additionally, model versions and deployment parameters should be fixed, including sampling temperature, maximum output length, system prompts, etc. Results without recorded versions or parameters cannot be reproduced and thus cannot be used for long-term comparison.

    5. The Value and Bias of Manual Evaluation

    Many engineers form intuitive judgments about models through daily use. This intuition, or “vibe,” has reference value because it stems from high-frequency interactions in real scenarios. However, intuition is also susceptible to several biases. The recency effect can let the most recent conversation dominate the impression; individual impressive or failed cases may be over-amplified; and differences in questioning styles can also affect the perception of model performance.

    If you want to incorporate manual evaluation into your assessment, consider the following practices:

    1. Establish a structured scoring sheet to rate dimensions such as accuracy, completeness, format, and response speed separately.
    2. Adopt blind evaluations, hiding model identifiers, and aggregate scores from multiple independent reviewers.
    3. Record the corresponding model version and usage date for each manual evaluation to facilitate subsequent tracking.
    4. For suspected capability degradation, use a fixed regression test set for retesting instead of relying on impressions.

    Capability degradation is an issue that requires continuous monitoring. The same model may perform differently under different times, inference configurations, or quantization schemes. Therefore, maintaining a stable regression test set and running it after every configuration change is a fundamental measure to ensure production quality.

    6. How Training Objectives Affect Features in Vision-Language Models

    In multimodal models, the training objective of the visual encoder directly affects the features it extracts. Two common types of objectives have different focuses.

    Contrastive learning learns global semantic vectors by pulling matched image-text pairs closer and pushing unmatched pairs apart. This representation is suitable for tasks like image-text retrieval and similar image search, as these tasks only need to determine whether the overall content is relevant.

    Next-token prediction requires the model to generate subsequent text word by word based on the image and previous context. To ensure accurate predictions, the model must retain finer details, such as text content, numbers, table structures, and layout relationships. When the language model is jointly trained with the visual encoder, the gradient of the prediction error backpropagates to the visual component, prompting the visual encoder to extract fine-grained features useful for language reasoning, rather than just global representations suitable for retrieval.

    This conclusion has direct implications for model selection. If your business involves document understanding, receipt recognition, chart QA, or other tasks that require reading details, you should construct a specialized test set to verify the model’s accuracy in reading text and structures, rather than judging solely based on image-text retrieval metrics. Whether the aforementioned effect exists also needs to be verified through ablation experiments, i.e., comparing results of different training objectives under the same data and scale.

    7. Practical Workflow Checklist

    Based on the above, you can establish a model evaluation system according to the following workflow:

    1. Define business objectives, list the three to five most critical task categories, and determine the success criteria for each.
    2. Use leaderboards for initial screening to eliminate candidates that clearly fail to meet basic capability requirements.
    3. Sample from real logs to build a custom evaluation set, stratify by category and difficulty, and complete double annotation.
    4. Fix versions and parameters, execute repeated runs for candidate models, and record the results for each sample.
    5. Use paired tests and confidence intervals to compare models, and output a classification of failure cases.
    6. Design a blind manual evaluation scoring sheet to cross-validate with automated evaluation results.
    7. Retain the evaluation set as a regression test set, run it automatically after every model or configuration change, and monitor capability variations.

    By following this workflow, teams can replace subjective impressions with reproducible data, making informed choices balancing cost, quality, and stability. The evaluation system itself also needs regular updates, as task distribution, business needs, and model capabilities will all change over time.