Evaluating LLMs: How to Assess Real-World Capabilities Beyond Benchmarks

    This article explores practical methods for evaluating Large Language Models (LLMs) beyond aggregated benchmark scores. It covers the limitations of overall scores and subjective impressions, and provides a framework for building business-specific evaluation sets, designing multi-dimensional metrics, implementing reproducible evaluation pipelines, and monitoring model performance over time for robust engineering deployment.

    1. Why Overall Scores Cannot Directly Guide Model Selection

    Comprehensive intelligence indices compress weighted scores from multiple task types into a single number. While convenient for ranking, this approach loses structural information. A one-point difference between two models might indicate a significant gap in coding ability with equivalent text summarization skills, or it could simply be the fluctuation of a few questions in a specific evaluation.

    Scores also lack several pieces of information crucial for business operations:

    • Cost and output speed per single call
    • Stability of instruction following and output formatting
    • Information retrieval accuracy in long contexts
    • Parameter filling accuracy during tool calls
    • Proportion of refusals, out-of-bound responses, and factual errors

    When comprehensive scores fall within the same range, these dimensions often differentiate a model’s actual value better than its ranking.

    2. The Value and Limitations of Subjective Impressions

    Long-term users often form impressions based on real work scenarios, which holds some reference value. However, subjective impressions have clear limitations:

    1. Small sample size. A few successful or failed experiences can easily be exaggerated.
    2. Prompt habits affect results. The same model might yield vastly different answers with different expressions.
    3. Confirmation bias. People are more likely to remember results that meet their expectations.
    4. Sensitivity to response style. Well-organized, confidently toned responses, even if incorrect, are often judged as better.

    Therefore, impressions are suitable as a starting point for hypotheses but should not be directly used as conclusions. Translating impressions into testable questions makes them useful. For example, “Does the model drop early constraints after multiple rounds of dialogue?” is a question that can be verified with designed test cases.

    3. Building a Business-Oriented Evaluation Set

    3.1 Breaking Down Task Distributions

    First, outline the team’s actual request types and sort them by frequency and importance. Common categories include:

    • Code generation and modification
    • Document summarization and information extraction
    • Structured output, such as returning JSON with fixed fields
    • Multi-step reasoning and planning
    • Customer service or Q&A dialogue

    The weight of each task type should closely match online traffic; otherwise, the evaluation results cannot represent real-world performance.

    3.2 Collecting and Anonymizing Samples

    Samples should come from real requests. During collection, personal information, internal secrets, and customer data must be removed, while the original format of the input is retained—including formatting errors and colloquial expressions, as these noises are common in production. It is recommended to collect 100 to 300 samples per task type, covering easy, medium, and hard difficulty levels.

    3.3 Designing Scoring Criteria

    Scoring criteria define the meaning of evaluation results. It is recommended to define actionable checking rules for each task type:

    • For items that can be judged programmatically, prioritize programmatic judgment, such as whether JSON can be parsed, whether fields are complete, or whether unit tests pass.
    • For non-programmatic checks, write scoring rubrics, have two annotators score independently, and use a third person for arbitration in case of disagreement.
    • Categorize and record failure types, such as factual errors, omissions, formatting errors, and excessive refusals.

    3.4 Multi-Dimensional Metrics

    It is recommended to include at least the following dimensions and report them separately, rather than merging them into a single score:

    Dimension Description Measurement Method
    Correctness Whether the result matches the standard answer Programmatic validation or manual scoring
    Completeness Whether all required points are covered Checklist
    Format Stability Whether the output structure complies with rules Parsing success rate
    Latency Time to first token and overall duration Percentile statistics (P50, P95)
    Unit Cost Cost per task Calculated based on input/output token count

    4. Evaluation Process and Code Example

    The evaluation process should be as reproducible as possible. The following example code demonstrates a minimal evaluation framework. The model client only needs to implement a unified generation interface to facilitate switching between different models.

    1. from dataclasses import dataclass
    2. from typing import Callable, List
    3. from statistics import mean
    4. @dataclass
    5. class EvalCase:
    6. task_type: str
    7. prompt: str
    8. scorer: Callable[[str], float] # Returns a score between 0 and 1
    9. def run_eval(client, cases: List[EvalCase], repeats: int = 3) -> dict:
    10. per_type = {}
    11. for case in cases:
    12. scores = []
    13. for _ in range(repeats):
    14. output = client.generate(case.prompt)
    15. scores.append(case.scorer(output))
    16. per_type.setdefault(case.task_type, []).append(mean(scores))
    17. return {t: round(mean(v), 4) for t, v in per_type.items()}

    A few notes:

    • Sampling each case multiple times can reduce the impact of randomness.
    • Results are aggregated separately by task type to avoid comprehensive averages masking shortcomings.
    • Prompt templates should be fixed and archived alongside the evaluation results.
    • If the service supports random seeds or reduced sampling temperature, set them uniformly during evaluation and note them in the report.

    5. Determining the Significance of Score Differences

    When the score difference between two models is very small, statistical methods are needed to determine if the difference is reliable. The bootstrap method is recommended to estimate confidence intervals:

    1. Perform sampling with replacement on the per-case scores of each model, calculating a mean for each sample.
    2. Repeat thousands of times, taking the 2.5% and 97.5% percentiles as the 95% confidence interval.
    3. If the intervals of the two models overlap significantly, it should be considered that there is no obvious difference.
    4. For comparisons on the same set of cases, paired testing can be further used to reduce interference caused by differences in case difficulty.

    This step prevents interpreting random fluctuations as capability gaps.

    6. Monitoring Capability Changes and Regression Testing

    Models or services may change after deployment. When providers update versions, adjust inference strategies, or modify safety policies, the performance under the same model name may differ. Perceived capability drops need to be confirmed with data rather than just impressions.

    It is recommended to establish a regression baseline:

    • Fix a set of representative use cases as a baseline set.
    • Run it weekly or after each version change, recording the date, API version, and scores across all dimensions.
    • Set alert thresholds, such as notifying the responsible person when correctness drops beyond a certain margin.
    • Retain the complete input and output for failed cases for post-mortem analysis.

    7. Engineering Implementation Recommendations

    Evaluation results should ultimately serve engineering decisions. Common practices include:

    1. Tiered routing. Route simple requests to lower-cost models, and escalate complex or failed requests to more capable models.
    2. Gradual rollout. Have the new model handle a small amount of traffic first, and gradually increase the load after comparing quality, latency, and complaint rates.
    3. Unified monitoring. Record the task type, duration, token usage, and parsing results for each call for post-analysis.
    4. Retain fallback options. When a model service is abnormal, the system should be able to switch to a backup solution and log the switching event.