How to Choose and Evaluate Major Large Language Models
A practical framework for evaluating large language models beyond subjective impressions. It covers neutral capability dimensions, a reproducible evaluation setup with a controlled eval set, a layered scorer, and unit-cost calculation, plus scenario-specific guidance for code generation, translation, math reasoning, multimodal generation, and long-document analysis, along with engineering practices such as a unified adapter layer, externalized constraints, canary rollout with rollback, and common pitfalls to avoid.
1. Why “It Feels Good” Is Not a Selection Criterion
With multiple models available at once, the most common team practice is “everyone subscribes to their own and picks by preference.” The problem with this approach is that evaluation samples are improvised by individuals, scoring standards drift with mood, and cost is never accounted for at all. The result is that selection conclusions cannot be reused and cannot be explained to management.
A sustainable model evaluation system must solve at least four problems:
- Measurable capability: break “how well it writes” into dimensions that can be scored;
- Reproducible conclusions: fix the prompts, temperature, version numbers, and evaluation set;
- Accountable cost: convert to unit output cost per task, rather than looking only at subscription price;
- Controllable risk: validate compliance policies, data retention, and service stability up front.
2. A Neutral Breakdown of Capability Dimensions
Abstracting model capability into several non-overlapping dimensions is the first step in evaluation work. The dimensions below are all industry-standard understandings and are not tied to any specific product.
| Dimension | Core Focus | Common Failure Mode |
|---|---|---|
| Code generation and refactoring | First-pass rate, dependency consistency, boundary-condition handling | Inventing nonexistent APIs, ignoring exception branches |
| Creative writing and emotional understanding | Structural tension, tone consistency, character motivation | Vague lyricism, setting drift |
| Concept differentiation | Distinguishing terms, definition boundaries, clarifying questions | Confusing similar concepts, confidently giving wrong distinctions |
| Translation and text conventions | Glossary adherence, idiomatic sentence structure, punctuation norms | Literal translation tone, inconsistent terminology |
| Math and symbolic reasoning | Complete steps, verifiability, computational efficiency | Skipping steps, unit and magnitude errors |
| Multimodal generation | Image/text/video controllability, editing consistency | Detail collapse, inability to edit a second time |
| Instruction following and output conciseness | Constraint hit rate, redundancy | Repeated restatement, unauthorized expansion |
| Alignment and stability | Refusal boundaries, safety policy consistency, service availability | Overly strict policies, policy drift |
The key point is that these dimensions should not all be carried by a single model. Assigning different dimensions to different models and then validating with a unified evaluation set is the correct engineering approach.
3. A Reproducible Evaluation Framework
The minimum viable version of an evaluation framework consists of a controlled eval set, a scorer, and a cost converter.
3.1 Controlled Eval Set Design
The eval set should contain four categories of samples, and the scale should stay small and focused (10–20 items per category is enough to start):
EVAL_SET = {"code": ["Refactor a function with implicit global state", "Complete boundary-condition handling for an existing class", ...],"concept": ["Distinguish two easily confused terms and state the criteria", "Point out ambiguity in the premise of the question", ...],"translate": ["Translate a technical documentation paragraph both ways with a glossary", "Split long sentences and convert passive to active", ...],"math": ["Multi-step derivation with dimensional analysis", "Probability and combinatorial counting", ...],}
Design point: every sample must come with machine-checkable acceptance criteria, for example “must include try/except,” “the term must map to X,” “the final answer must include a dimensional check.” Otherwise scoring degrades into subjective judgment.
3.2 The Layered Structure of the Scorer
def score(resp: str, case: dict) -> dict:return {"rule_pass": check_hard_constraints(resp, case["must_include"]),"unit_pass": run_unit_tests(resp, case.get("tests", [])),"style_pen": penalty_style(resp, max_dash=0, max_redundancy=0.2),"term_cons": terminology_consistency(resp, case.get("glossary", {})),}def aggregate(scores):# Hard constraints first; style issues are deductions, not vetoesreturn sum(s["rule_pass"] * 2 + s["unit_pass"] * 3- s["style_pen"] - (1 - s["term_cons"]) for s in scores) / len(scores)
The benefit of layering is that functional errors and stylistic defects are separated. A literal translation tone in a translation scenario is a deduction, but a terminology mapping error is a failure—the two have completely different engineering implications.
3.3 Unit Output Cost Conversion
Comparing subscription prices alone is meaningless; convert to “cost per thousand tokens of effective output” or “cost per task that passes acceptance”:
Unit cost = (input tokens × input price + output tokens × output price + retries × average call cost) / tasks passing acceptance
In practice, the number of retries is often the most underestimated cost item. A model with a lower unit price that requires two rounds of rework may have a higher real cost than a model with a higher unit price that passes on the first try.
4. Capability Mapping for Typical Scenarios
4.1 Code Generation: Prioritize First-Pass Rate
The evaluation standard for code tasks should be “does it pass the tests on the first try,” not “does it look professional.” A recommended practice:
# Constraints up front: write project conventions into the system prompt to reduce reworkSYSTEM = """- Use only dependencies already declared in the project; do not introduce libraries not in requirements- All external calls must be wrapped with timeout and retry- Output contains only code blocks and no more than 3 lines of explanation"""
When one model needs multiple rounds of rework under the same prompt while another completes it in one pass, the selection conclusion should be clear: either use a reasoning model with a higher capability ceiling, or use a general-purpose model with strong instruction-following stability; avoid the middle tier. Middle-tier models typically have the highest rework rate on complex text processing.
4.2 Translation and Text Conventions: A Pipeline Beats a Single Model
The stable production path for high-quality translations is a segmented pipeline, not end-to-end completion by a single model:
Source text → Model A (produces a draft with controlled conventions and terminology)→ Terminology consistency check (script automatically compares against the glossary)→ Model B (polishes idiomaticity, syntax, and punctuation)→ Human spot check (only for high-risk passages)
The rationale for this path is that the core risk in the draft stage is terminology and sentence conventions, while the core risk in the polishing stage is idiomaticity and punctuation abuse. These are different failure modes, and optimizing both with the same model easily leads to trading one off against the other. The pipeline also hands the hard constraint of “terminology consistency” to a script rather than a model, significantly improving reliability.
At the same time, prompts should explicitly prohibit punctuation abuse and sentence templating, and the scorer should treat such issues as quantifiable deductions:
def penalty_style(text):dash_ratio = text.count("—") / max(len(text), 1)return 1.0 if dash_ratio > 0.005 else 0.0 # Fail if dash density exceeds the threshold
4.3 Math and Symbolic Reasoning: Speed Is Not Key, Verifiability Is
The correct way to evaluate math tasks is to require the model to give intermediate steps that can be independently checked, then use a script to verify key equations and dimensions. The ranking of evaluation dimensions should be:
- The final answer is correct;
- Steps are complete and reproducible (no skipping);
- Dimensional or extreme-value checks are performed proactively;
- Computation time.
Differences in computation speed can be significant on the same problem, but as long as the answer is verifiable and the steps are auditable, time differences usually do not determine selection in production—unless it is a large-scale batch scenario, in which case the right move is to switch to batch inference and caching strategies rather than change the model.
4.4 Multimodal Generation: Editing Consistency Is the Dividing Line
Image and video generation capability should not be evaluated only on first-frame quality, but on controllable editing capability: whether local inpainting stays consistent with the global style, whether reference-image constraints are respected, and whether subject consistency is maintained across multiple iterations. Recommended practices:
- Establish fixed prompt templates and a set of random seeds to ensure fair cross-model comparison;
- Make “consistency after a second edit” an independent scoring item with a weight no lower than first-image quality;
- Spot check generated results manually, focusing on high-frequency collapse areas such as text rendering and hands.
4.5 Long-Document Analysis: Retrieval and Structure Beat Stuffing a Long Context
Faced with very long material, rather than relying on an extra-long context window, it is better to adopt the engineering path of “split—retrieve—structure—aggregate”:
Document → Structured splitting (by heading hierarchy and semantic boundaries)→ Vectorize and index + keyword index→ Retrieve top-K fragments per question→ Model generates an answer with citation annotations based on the fragments
The value of this path is that answers are traceable, context length is controllable, and per-task cost is predictable. Stuffing all the source text into the context is simple to call, but lacks controllability in both cost and accuracy.
5. Four Practical Principles for Engineering Integration
- Abstract a unified call layer. Add an adapter layer between business code and models to hide differences in each vendor’s interface and make models replaceable:
class ModelAdapter:def chat(self, messages, **opts) -> str: ...def stream(self, messages, **opts): ...class Router:"""Selects a backend by task type and cost constraint; rules are externalized as configuration"""def pick(self, task_type: str, budget: float) -> ModelAdapter: ...
Externalize constraints as configuration. Put glossaries, format specifications, forbidden expressions, and retry policies into configuration files rather than hardcoding them in prompts, making them easy to reuse and version across models.
Establish canary and rollback mechanisms. Before a new model goes live, run the same eval set on a small traffic share and compare key metrics against the baseline; if metrics degrade beyond a threshold, roll back automatically. Model versions are mutable dependencies, so version locking and change auditing are mandatory.
Validate cost, quota, and stability up front. During evaluation, verify unit output cost, rate-limiting policies, data retention and compliance policies, and service availability, and bring monitoring and alerting (call success rate, latency distribution, abnormal refusal rate) into the same observability system, integrating with common cloud capabilities such as logging services, object storage, and message queues, so the model layer does not become the only unobservable link in the chain.
6. Common Pitfalls
- Looking only at a single leaderboard score: leaderboards differ greatly from real business distributions, so your own eval set must be the standard.
- Ignoring retry cost: rework is a hidden expense and usually accounts for a substantial share of total cost.
- No version locking: different versions of the same model can drift in behavior, causing sudden online changes that are hard to locate.
- Treating safety policies as defects: content policies differ in strictness across models; this is a design tradeoff, not a matter of capability level, and should be treated as a constraint during selection rather than a scoring item.
- Relying on one model for everything: differences in capability dimensions objectively exist, and dividing labor across multiple models with a unified evaluation layer is more economical and more stable than searching for an “all-capable model.”
7. Conclusion
The right approach to model selection is to turn subjective experience into a four-part kit: a controlled eval set + a layered scorer + unit cost conversion + canary rollback. For code and tasks requiring strict instruction following, prioritize first-pass rate and output conciseness; for translation and normalized text, use a two-stage pipeline that separates drafting from polishing and hand terminology consistency to script validation; for math and reasoning tasks, require verifiable steps rather than pursuing computation speed; for multimodal tasks, include second-edit consistency in scoring; for long-document scenarios, use retrieval augmentation instead of stuffing the context.
When evaluation conclusions are reproducible, costs are accountable, and switching can be canaried, a model turns from a “product chosen by preference” into a “manageable engineering component”—and that is the capability truly worth building in the multi-model era.
