LLM Evaluation: Evolution and Model Selection in Practice
This article explains why traditional LLM benchmarks are failing and how to build a reproducible, task-level evaluation system. It covers four pillars of a modern evaluation framework—real-world task sets, a composite intelligence index, cost efficiency, and a unified agent harness—along with pipeline engineering, scenario-based selection, and common pitfalls to avoid.
1. Why Traditional Benchmarks Are Failing
For years, teams have judged model capability by scores on a few public leaderboards. Yet the same problem keeps recurring in engineering practice: models that rank near the top often perform only average on a team’s own business data. The reasons are not hard to understand.
- Data contamination: Public test sets have been exposed on the internet for a long time and easily end up in pretraining corpora, inflating scores.
- Task format drift: Multiple-choice benchmarks measure knowledge recall and discrimination, while real business work demands multi-step reasoning, tool calling, and long-context consistency.
- Single-dimension evaluation: Looking only at accuracy while ignoring latency, throughput, and cost per task cannot support capacity planning or budget decisions.
- Static snapshots: Model iteration cycles have shrunk to a matter of weeks, so one-off evaluation conclusions go stale quickly.
The direction of evolution is therefore clear: shift from “testing knowledge” to “doing tasks,” and from a single score to a multi-dimensional vector of capability, cost, and stability.
2. Four Pillars of a Modern Evaluation System
2.1 Real-World Task Sets
Replace outdated benchmarks with tasks that reflect production semantics. For example, use “economically valuable tasks”—producing a deliverable that can be used directly from a given input, such as a report, a spreadsheet, or a code patch—to measure the actual output quality of a model. These tasks are usually authored by domain experts and scored on the deliverable, which makes them more resistant to contamination.
2.2 Composite Intelligence Index
Normalize sub-items such as reasoning, knowledge, code, math, long context, and instruction following into an index that can be aggregated with weights. The value lies in comparability: models from different generations and different parameter sizes are mapped onto the same scale, making it easier to make technical roadmap decisions. Note that the index is a relative ranking tool, not an absolute measure of capability.
2.3 Cost Efficiency
Capability must be evaluated jointly with price, energy consumption, and latency. A common engineering metric is “cost per effective task”:
CostPerTask = (InputTokens * PriceIn + OutputTokens * PriceOut) / SuccessRate
With success rate in the denominator, a cheap model that often fails and needs three retries may cost more in reality than a more expensive but stable model.
2.4 Unified Agent Harness
Run all candidate models with the same tool sandbox, the same set of interface contracts, and the same maximum step count and timeout limits, ensuring “the environment stays constant and only the model changes.” This is the prerequisite for making multi-step task evaluation comparable.
3. Engineering a Reproducible Evaluation
Build evaluation as a pipeline rather than a one-off script.
# Skeleton: model-agnostic evaluation runnerdef run_eval(candidate, tasks, sandbox, max_steps=12, timeout_s=60):report = []for t in tasks:env = sandbox.reset(t.initial_state)trace, ok = [], Falsefor _ in range(max_steps):action = candidate.plan(env.observe(), trace)result = env.step(action, timeout_s=timeout_s)trace.append((action, result))if result.done:ok = result.passed(t.assertions)breakreport.append({"task_id": t.id,"success": ok,"steps": len(trace),"tokens": candidate.usage(),"latency_ms": candidate.elapsed_ms(),})return aggregate(report)
Four supporting pieces of infrastructure are equally important:
- Configuration management: Put model versions, temperature, system prompts, and tool sets all under version control to ensure traceability.
- Sandbox isolation: A container platform hosts the tool execution environment, with restricted file system and network egress.
- Data pipeline: Object storage keeps inputs, outputs, and traces; a message queue smooths out traffic spikes; logging and monitoring with alerting track drift in failure rates.
- Regression gate: Integrate evaluation into continuous integration, and block a release as soon as a score or cost crosses a threshold.
4. Scenario-Based Selection
Different tracks weight capabilities completely differently, so a single aggregate score cannot drive the decision:
| Scenario | Primary metric | Secondary metric | Common pitfall |
|---|---|---|---|
| Content generation (text-to-image, image-to-video, music generation) | Human preference win rate | Generation latency, cost per item | Looking only at resolution and duration |
| Image editing | Instruction fidelity, structure preservation | Batch throughput | Ignoring damage to regions that should not be edited |
| Code and agents | Task success rate, tool-call correctness | Step count, cost per task | Using multiple-choice questions instead of real repository tasks |
| Long-document understanding | Cross-section consistency, citation accuracy | Context length utilization | Only testing “whether it fits” |
The practical recommendation is to build 100–300 of your own gold-standard tasks covering high-frequency, long-tail, and adversarial samples, refresh them on a rolling basis each quarter, form an internal index, and cross-validate it against public indexes.
5. Common Pitfalls
- Total-score tunnel vision: An aggregate score hides weaknesses, but the business only cares about its own slice of the distribution.
- Ignoring variance: Repeated sampling on the same task fluctuates widely, so report confidence intervals rather than a single point value.
- Unfair prompting: Fine-tuning the prompt for one model before comparing makes the conclusion invalid.
- One-off evaluation: Without a regression mechanism, silent updates on the model side can cause sudden shifts in production quality.
- Inconsistent cost accounting: Failing to standardize whether retries, cache hits, and human review costs are included.
6. Conclusion
Evaluation is fundamentally decision support. Upgrading evaluation from “watching the leaderboard” to “reproducible task-level experiments,” and building an internal benchmark on the four pillars of real-world task sets, a composite index, cost efficiency, and a unified agent harness, is what allows for sound model selection in an environment of rapid iteration. Baidu AI Cloud offers general capabilities in model serving and engineering support, on top of which teams can accumulate their own evaluation assets—so every selection decision is backed by data and fully traceable.
