A Practical Guide to Evaluating and Selecting New LLM Versions
This guide provides a structured framework for evaluating and selecting new large language model (LLM) versions for enterprise applications. It covers designing evaluation dimensions, building proprietary evaluation datasets, establishing a reproducible testing pipeline, and conducting statistical analysis. By following these practices, organizations can move beyond public benchmark leaderboards to make data-driven decisions aligned with their specific business needs, ensuring reliable deployment and continuous monitoring.
1. Why You Shouldn’t Rely Solely on Launch Events
Whenever a new LLM version is released, launch events, technical blogs, and social media platforms are quickly flooded with metrics and conclusions. While this information has reference value, it usually comes from vendor-selected test sets, specific prompts, and tailored evaluation configurations that may not align with your actual business needs. Translating leaderboard rankings directly into procurement or migration decisions carries a high risk.
A more reliable approach breaks evaluation down into three steps: define business goals, determine quantifiable metrics, and validate using proprietary data. Only through this process can the true value of a new model version be realized in specific scenarios.
2. Designing Evaluation Dimensions
A practical evaluation system typically covers the following five dimensions.
2.1 Task Capability
Task capability includes information extraction, summarization, question answering, classification, and code generation/repair. Weights should be assigned based on the frequency and impact of these tasks in your business. For example, customer service scenarios should prioritize the accuracy of intent recognition and knowledge QA, while R&D assistance scenarios should focus on the correctness and executability of generated code.
2.2 Instruction Following and Output Stability
Many production failures stem not from incorrect answers, but from output formats that fail to meet downstream parsing requirements. You need to verify whether the model can consistently output specified structured formats, field names, and enumeration values, and track consistency across multiple invocations. The format failure rate should be recorded as an independent metric.
2.3 Multimodal Understanding
If your business involves images, table screenshots, or document layouts, separate evaluation is required. Focus areas include the completeness of text recognition (OCR), the accuracy of reading chart values, and the ability to understand complex layout structures. These capabilities often evolve independently of text capabilities, so text scores cannot serve as a proxy.
2.4 Cost and Latency
When performance is comparable, the input/output token count, time to first token (TTFT), and overall response time per call directly determine usage costs and user experience. Evaluations should calculate the cost per 1,000 calls based on real request distributions, and report P50 and P95 latency separately, as tail latency is typically the primary source of user complaints.
2.5 Security and Compliance
You must verify whether the model handles sensitive topics in compliance with enterprise policies, whether it leaks system prompts, and whether it maintains its constraints under prompt injection attacks. Failures in this dimension carry the highest cost, warranting independently designed test cases.
3. Building a Proprietary Evaluation Set
The evaluation set is the foundation of the entire assessment. A low-quality set will distort conclusions, regardless of how rigorous the subsequent statistical methods are.
3.1 Data Sources
- Sample from real production logs, covering different channels, user groups, and time periods.
- Desensitize content containing personally identifiable information (PII) while preserving the original semantic structure.
- Supplement with historical error cases, as these samples are highly valuable for detecting regressions.
3.2 Tiered Design
It is recommended to divide samples into three tiers with appropriate proportions:
- Common samples: The highest proportion, reflecting daily user experience.
- Boundary samples: Inputs with irregular formats, missing information, or ambiguities, used to test robustness.
- Adversarial samples: Inputs containing leading questions or prompt injection attempts, used to test security boundaries.
Tiering prevents overall scores from being masked by common samples. A model might score highly on common samples but frequently fail on boundary samples.
3.3 Annotation Guidelines
Clear judgment criteria must be established before annotation. For example, in a summarization task, define exactly what “key facts complete” means—which entities, values, and conclusions must be present. It is recommended to have at least two annotators perform cross-annotation and measure annotation quality using consistency metrics like the Kappa coefficient. If consistency falls below an agreed threshold, revise the criteria before continuing.
3.4 Sample Size
The required sample size depends on the magnitude of the difference you want to detect. If two models differ in accuracy by only one or two percentage points, thousands of samples are typically needed to reach a stable conclusion. With too few samples, perceived “improvements” may just be random noise.
4. Establishing a Reproducible Evaluation Pipeline
4.1 Fixed Variables
During evaluation, the following must be fixed: model version identifier, system prompt version, sampling temperature, maximum output length, and evaluation set version. Any change to these variables can alter results. They must be documented item by item in the report; otherwise, the results cannot be reproduced.
4.2 Schematic Pipeline
Input: Evaluation set D, candidate model set M, scoring function scoreFor each model m in M:For each sample (id, input x, reference answer y, tags) in D:output = call_model(m, fixed_prompt, x, temperature=0)score = score(output, y)record (m, id, score, first_token_latency, total_time, input_tokens, output_tokens)Aggregate: Group by tags, calculate mean, variance, and confidence intervals
There are two key takeaways from this pipeline: every sample’s output is fully recorded, and grouped aggregation is based on tags. This allows subsequent analysis to be broken down into specific scenarios.
4.3 Automated Scoring and Manual Review
For rule-verifiable tasks—such as checking if all fields are present or if values match—automated programmatic scoring should be used. Open-ended tasks can employ “LLM-assisted scoring plus manual spot-checking,” with a recommended spot-check rate of at least 10%. Scorers themselves can introduce bias and should be calibrated regularly against human results.
5. Statistical Analysis and Confidence
Once raw scores are obtained, you need to answer three questions: Is the difference real? Is the difference within the business’s acceptable range? Is the difference concentrated in specific subsets?
- When reporting means, always provide confidence intervals to avoid mistaking random variance for an advantage.
- Run the same batch of samples multiple times to observe output variance; this is especially important under non-zero temperatures.
- Split results by tags to identify scenarios where “overall performance is flat, but significant degradation occurs in a specific category.”
The third point is often overlooked. An overall metric improvement might mask regression in a high-value category, such as requests involving monetary calculations or compliance judgments.
6. Selection Decision Framework
Summarizing multi-dimensional results into a decision matrix helps align team opinions. The table below is an example; weights and thresholds should be adjusted according to business priorities.
| Dimension | Example Weight | Launch Threshold | Note |
|---|---|---|---|
| Core task accuracy | 40% | No lower than the current production model | Based on proprietary evaluation set |
| Output format compliance | 20% | No lower than 99% | Directly impacts downstream stability |
| Cost per call | 15% | Does not exceed budget limit | Calculated based on real request distribution |
| P95 response latency | 15% | Meets product UX requirements | Measured during business peak hours |
| Security & compliance | 10% | No major failures | Veto item |
Security and compliance should be set as a veto item, excluded from the weighted average. Otherwise, high scores might mask severe defects.
7. Canary Release and Continuous Monitoring
Even if offline evaluation passes, online validation is still required. The following steps are recommended:
- Small-traffic canary: Route a small percentage of requests to the new version and compare business metrics between the old and new versions.
- Log retention: Write requests, responses, and key metadata to a logging service for post-event tracing and auditing.
- Metric alerting: Set thresholds for format failure rate, timeout rate, and manual complaint rate. Trigger alerts or automatic rollbacks when thresholds are exceeded.
- Data flywheel: Feed online failure samples back into the evaluation set to create a continuous improvement loop.
If your system is deployed on Baidu AI Cloud, you can use its general object storage to save evaluation data and leverage its monitoring and alerting capabilities to configure thresholds. Refer to the official documentation for specific capability scopes and configuration methods.
8. Common Pitfalls
- Relying solely on a single leaderboard ranking while ignoring match with your own business scenarios.
- Using different prompts when comparing models, leading to unfair comparisons.
- Overlapping the evaluation set with training data, causing inflated scores; therefore, data leakage must be explicitly checked.
- Focusing only on effectiveness while ignoring cost and latency, leading to unexpectedly high billing post-launch.
- Treating one-time test results as long-term conclusions, ignoring potential server-side changes to the model version.
9. Implementation Checklist
- Defined business goals and core metrics
- Completed tiering, desensitization, and annotation of the evaluation set
- Fixed evaluation variables and recorded version information
- Output grouped results with confidence intervals
