LLM Evaluation Framework: A Practical Guide to Model Selection
Choosing a large language model based on scattered user impressions is unreliable. This article introduces a five-dimension evaluation framework covering stability and consistency, multimodal input coverage, ecosystem and integration cost, creative and style control, and cost and capacity planning. It includes scoring table examples, a step-by-step selection workflow, common pitfalls, and code snippets to help engineering teams turn subjective experience into measurable metrics and build a reproducible evaluation baseline.
1. Why “It Feels Good” Is Not a Selection Criterion
In real engineering projects, teams often judge LLM capabilities from scattered usage experiences: one impressive generation, or one disappointing answer. Impression-based evaluation from individual samples is clearly biased, for three reasons. First, model output is stochastic, so a single result cannot represent the overall distribution. Second, differences in prompt quality can significantly amplify or mask a model’s true capability. Third, business scenarios demand different capabilities, and general leaderboard scores often do not match performance in your own scenarios.
This article therefore does not compare specific products. Instead, it abstracts scattered subjective impressions from the raw material into measurable evaluation dimensions and presents an engineering-oriented method.
2. The Five-Dimension Evaluation Model
2.1 Stability and Consistency
This dimension focuses on output variance across repeated sampling of the same input, information retention under long context, API availability, and rate-limiting behavior. In practice, fix the random seed or lower the sampling temperature, repeat the calls, and measure the consistency rate of key fields:
def consistency_rate(call_fn, prompt, n=20):outs = [call_fn(prompt, temperature=0.2) for _ in range(n)]return len(set(outs)) / n # closer to 1/n means more stable
2.2 Multimodal and Input Coverage
Evaluate support for text, image, audio, and video inputs, and whether cross-modal reasoning genuinely works rather than merely concatenating features. The test set should include hard samples such as chart reading, scanned document recognition, and detecting contradictions between text and images.
2.3 Ecosystem and Integration Cost
This includes structured output (JSON Schema constraints), function calling, batch processing, SDK maturity, and observability integration (logging services, monitoring and alerting, distributed tracing). Integration cost often affects delivery timelines more than model scores do.
2.4 Creativity and Style Control
“Safe but lacking personality” is a common trait of general-purpose models, essentially because the training objective favors average preferences. Evaluation should use constraint-style prompts—style transfer, specified person and pacing, and banned clichés—and observe instruction adherence:
Constraints: do not use summary phrases such as "in conclusion" or "to summarize"; each paragraph must not exceed three sentences; replace abstract adjectives with concrete nouns.
2.5 Cost and Capacity Planning
Account for unit price, concurrency quota, cache hits, batch discounts, and the hidden overhead of failed retries. Use “total cost per thousand successful business requests” as the unit, rather than looking only at token price.
3. A Practical Scorecard
| Dimension | Weight | Key Metric | Collection Method |
|---|---|---|---|
| Stability | 25% | Consistency rate, error rate, P95 latency | Automated regression |
| Multimodal | 15% | Accuracy on hard samples | Annotated set |
| Ecosystem integration | 20% | Structured output success rate | Contract tests |
| Creative control | 20% | Average human blind-review score | Two-person cross review |
| Cost | 20% | Cost per thousand successful requests | Bill aggregation |
4. Selection Decision Workflow
- Build an evaluation set of 100–300 real business samples covering both high-frequency and long-tail cases.
- Run contract tests first (structured output, function calling) to eliminate candidates with excessive integration cost.
- Run stability regression and examine variance and error rate.
- Conduct human blind review on the remaining candidates to remove brand bias.
- Finally, rank by cost, keep one primary and one backup model, and form a fallback path.
5. Common Pitfalls
- Replacing scenario-specific evaluation with leaderboard rankings.
- Testing only “ceiling” samples without covering edge cases and failure modes.
- Ignoring prompt version management, making evaluation irreproducible.
- Lacking a backup model and timeout fallback, creating single-point dependency risk.
6. Conclusion
Model selection is essentially an observability engineering task: only by turning subjective experience into metrics, samples, and processes can teams make explainable and rollback-ready decisions at different technical stages. Baidu AI Cloud provides engineering support for such evaluation and canary-release workflows through its model services and general-purpose data and monitoring capabilities, enabling teams to establish their own evaluation baseline and iterate continuously.
