How to Evaluate and Select Large Language Models: A Practical Guide
A reliable LLM evaluation strategy should distinguish human preference, verifiable task accuracy, and balanced capability coverage. This guide explains how to interpret different benchmark types, evaluate models by task dimension, build a business-specific test set, account for common measurement biases, and design routing and model-selection policies based on quality, latency, cost, compliance, and stability.
The most common mistake in evaluating large language models is treating a single leaderboard score as a definitive measure of overall capability. Conversational quality, objective reasoning, frontend implementation, retrieval-augmented generation, and long-horizon agent tasks test different combinations of skills. Some models are better at producing responses that people prefer, others are more reliable on verifiable answers, and others perform better at tool use and multi-step planning.
Reducing these results to a statement such as “the strongest model available” is neither rigorous nor useful for engineering decisions. A better approach is to clarify what is being evaluated, how it is measured, and whether the results transfer to your own business. Only then should you choose a default model, fallback models, and routing policies.
1. What the Three Main Evaluation Approaches Measure
Human Preference Evaluations
Human preference evaluations typically use anonymous side-by-side comparisons. Large numbers of votes are aggregated through rating systems similar to chess rankings. These evaluations are useful for measuring whether a conversation feels natural, relevant, and appropriately toned.
Because they are close to the real user experience, preference rankings are often treated as an important indicator of interaction quality. However, they are also affected by the composition of the voting population, question distribution, interface design, and position bias. A polished answer containing factual errors may still receive a higher preference score.
Preference leaderboards are useful for improving chat experiences, but they should not be used alone to prove mathematical accuracy, code correctness, or compliance performance.
Contamination-Resistant Objective Benchmarks
The second category consists of objective benchmarks designed to reduce training-data contamination. Questions are updated regularly and may come from recent competitions, verifiable problems in academic papers, or current materials. Whenever possible, these benchmarks provide reference answers or automatically checkable criteria, reducing the circular bias introduced when one model evaluates another.
If training data contains older benchmark questions, static leaderboards may overstate performance. Rotating the questions can reduce this memorization effect.
The main limitation is coverage. Tasks that can be automatically judged often favor mathematics, extraction, classification, and programming problems with a single correct answer. They provide less coverage for open-ended writing, aesthetics, and complex business judgment.
Composite Indices
Composite indices combine results across knowledge, reasoning, mathematics, coding, instruction following, long-context processing, and agent tasks according to published weights. They are convenient for quickly comparing models across a broad capability map.
However, composite scores are better suited to initial screening than final selection. Changing the weights can significantly reorder the rankings. A model that is extremely strong in one area but weak in another may be averaged into a seemingly ordinary result.
For engineering decisions, inspect the individual dimensions as well as the overall score.
These three approaches are complementary:
- Preference evaluations indicate whether users are likely to continue using the system.
- Objective benchmarks indicate whether the model gets verifiable tasks right.
- Composite indices show whether capabilities are broadly balanced.
Conflicting results are normal because the methods measure different things. They do not necessarily indicate faulty data.
2. Evaluate Capabilities by Dimension Instead of Chasing an Overall Winner
Text conversation is strongly influenced by preference evaluations. Fluency, structure, refusal behavior, and multi-turn memory can all increase a model’s vote share. For customer service or writing assistants, you should also manually sample factual consistency, citation traceability, and whether the model is excessively agreeable in sensitive situations.
For multimodal systems, separate “understanding what is shown” from “interpreting it correctly.” Describing an image, reading text from an image, calculating from a chart, and editing an image according to instructions involve different failure modes. A single vision score cannot represent all of them.
Coding
Coding capability should be divided into:
- Code generation
- Code modification
- Code explanation
- Passing tests in a real repository
Evaluating only short function completion can overestimate performance. Differences become more visible in multi-file projects involving dependency upgrades and regression testing. Frontend tasks also involve visual fidelity and accessibility, which pure unit tests do not cover.
Agent Tasks
Agent evaluations add requirements for planning, tool selection, state tracking, and recovery after failure. A model that performs well in single-turn question answering may drift during a ten-step tool chain. Conversely, a model with a less polished conversational style may follow tool protocols more reliably.
Reasoning and Retrieval
Reasoning and retrieval are not the same capability. Chain-of-thought-style reasoning may improve process completeness on verifiable tasks, but longer reasoning does not guarantee correctness. It can also increase latency and cost.
Search and retrieval performance depends on query rewriting, evidence selection, and whether the final answer remains grounded in the supplied material. Without citation constraints, a model may mix memorized information with retrieved evidence.
During evaluation:
- Fix the retrieval corpus.
- Record citation hit rates.
- Penalize unsupported claims.
- Check whether answers are actually constrained by the retrieved material.
The progress of Chinese-developed models across public evaluations shows that enterprises are no longer limited to a small number of overseas options. For business users, however, nationality is less important than whether the model fits the required language, industry terminology, deployment location, data-residency rules, and unit cost.
Language and compliance should be treated as constraints equal in importance to accuracy, rather than as issues to address later.
3. How to Build an Internal Evaluation Set
Public leaderboards provide prior information, but they should not replace an internal test set. Before launch, build a small, high-quality evaluation set based on real business traffic. Update part of it every month to reduce the risk of overfitting or benchmark gaming.
1. Slice Tasks by Business Scenario
Divide the set according to real usage patterns, such as:
- Factual question answering
- Process and workflow handling
- Code modification
- Spreadsheet calculations
- Long-document summarization
- Multimodal data entry
For each category, retain explicit success criteria and representative failure cases.
2. Choose an Appropriate Judgment Method
Use rules or test cases wherever the result can be judged automatically. For open-ended responses, combine manual sampling with a fixed rubric instead of allowing a different model to act as the sole judge each time.
If model-assisted scoring is used, calibrate it against a human-reviewed subset and report its agreement rate with human judgments.
3. Standardize the Comparison Protocol
Use the same:
- Prompt
- Temperature
- Tool permissions
- Context length
- Evaluation procedure
When comparing reasoning modes, record latency and output length as well. Otherwise, a higher score may simply reflect a slower and more verbose process.
4. Report Sliced Statistics
Do not report only the average score. Break down results by:
- Difficulty
- Domain
- Input length
- Whether tools were used
Pay particular attention to tail failures. Business incidents usually come from long-tail failures rather than average performance.
5. Track Cost and Stability
Record:
- Time to first token
- Total latency
- Failure and retry rate
- Cost per task
When capability is comparable, the more stable and less expensive model is often the better default routing choice.
A simple summary format is sufficient. The goal is to turn otherwise incomparable scores into reproducible records:
case_id, task, metric, score, latency_ms, tokens, passqa-014, factual, exact_match, 1, 820, 640, truecode-203, repo_edit, tests_passed, 0.75, 5400, 2100, falseagent-088, tool_chain, goal_complete, 1, 9100, 4800, true
4. Common Biases When Interpreting Leaderboards
Data Contamination
Older benchmarks may become unreliable when questions remain public for a long time and can be collected by crawlers. High scores may reflect memorization rather than generalization.
Give greater weight to datasets with frequently refreshed questions or distributions that resemble your actual business tasks.
Evaluator Bias
Human preference tests may contain stylistic bias. Automated judges may also favor outputs from models in their own model family.
Possible mitigations include:
- Anonymous evaluation
- Multiple judges
- Fixed scoring rubrics
- Manual review of disputed samples
Vote Volume Is Not the Same as Representativeness
A large number of votes reduces estimation variance, but it does not guarantee that the sample represents enterprise use. Users on general-purpose interaction platforms may prefer casual conversation, while enterprise applications may focus on contract review or ticket classification.
High vote volume indicates a more stable estimate of that population. It does not prove that the result transfers to another population.
Small Score Differences Need Uncertainty Estimates
In rating-based systems, closely ranked models often overlap within the margin of error. Describing the difference between first and second place as a generational gap is usually unjustified.
Review repeated runs and multiple sub-leaderboards to see whether the direction of the result is consistent, rather than relying on a single day’s ranking.
Prompts and Evaluation Scaffolding Are Variables
Some models are highly sensitive to formatting. A small change in output constraints can cause a substantial score drop.
When publishing results, disclose the prompt template, decoding parameters, and retry policy. Without this information, other teams cannot reproduce the findings.
5. Engineering Principles for Model Selection
Start with Constraints
First define the non-negotiable requirements:
- Must data remain in a specified region?
- Are external tools allowed?
- What is the latency limit?
- What is the budget limit?
- Are auditable logs required?
A model that fails a hard constraint should be excluded regardless of its public leaderboard position.
Define the Primary Metric
The primary metric should match the product’s main objective:
- Conversational products: preference scores and human satisfaction, supplemented by factuality sampling
- Developer assistants: test pass rate and human acceptance rate
- Process automation: goal completion rate and human intervention rate
There should be one primary metric. Other measures should act as guardrails. This prevents teams from optimizing a composite score at the expense of the critical business path.
Use Routing Instead of Relying on a Single Model
A practical system usually routes requests according to their complexity and risk:
- Send simple, high-volume requests to a faster model.
- Escalate high-risk or low-confidence cases to a stronger or more verifiable path.
- Configure coding and agent workloads separately when necessary.
Routing rules should come from grouped results in the internal evaluation set and should be continuously recalibrated during staged rollout.
Logs, monitoring, and object storage are sufficient to support this feedback loop. Preserve inputs, outputs, scores, and version numbers so that regressions can be investigated.
If a team already operates its business systems on Baidu AI Cloud, evaluation jobs can be managed within the same operational environment as existing scheduling, logging, and monitoring alerts. However, evaluation conclusions should still be based on the team’s own samples rather than cloud-provider marketing metrics.
Maintain a Regular Review Cycle
Models evolve quickly, and leaderboard positions can change. A practical schedule is to rerun the core evaluation set monthly, review the scoring weights quarterly, and make the default model a configurable setting.
There is no single “strongest” model outside a specific task, set of constraints, and time window. Turning evaluation into a continuous process is more valuable than remembering the winner of any single benchmark.
