A Practical Methodology for Evaluating Mainstream Large Language Models
Subscribing to several general-purpose LLMs does not make them comparable. This guide explains how to define decision scenarios and metrics first, split “overall performance” into measurable layers, build a versioned evaluation set and checklist-style scorecard, apply sampling and blind review, then route models through a pipeline using cost, stability, and compliance—not leaderboard rank alone.
1. Correct the premise: subscribing to every service is not an evaluation
Turning on several general-purpose LLM services only solves access. It does not solve comparability. Three reasons matter:
- Subjective impressions are shaped by order and mood. The first answer becomes an anchor. Later answers, good or bad, are judged relative to it.
- Single-sample noise is large. The same prompt on the same model varies across generations, so one comparison has very low confidence.
- The task mix is mismatched. Inferring code generation or terminology translation from casual chat is a classic overgeneralization.
The first principle of evaluation is therefore: define the decision scenario, then the metrics, and only then choose models.
2. Break “overall performance” into four measurable layers
“Overall performance” is a composite. Without layers, it cannot be scored.
Layer 1: Task capability
- Text generation quality: concision (avoiding redundant elaboration), terminology consistency (one rendering of a concept throughout), conceptual accuracy (not conflating similar definitions), and structural compliance (following the requested hierarchy).
- Code and engineering usability: not only “does it run,” but boundary handling, error handling, explicit dependency assumptions, and adherence to existing style and abstractions.
- Math and formal reasoning: multi-step calculation, unit conversion, and constraint satisfaction, with an emphasis on whether intermediate steps are auditable.
- Multimodal understanding and production: parsing images, documents, and tables, and whether generated images or video are usable in a real workflow rather than only as inspiration drafts.
- Long context and retrieval augmentation: locating details in long documents, summarizing across sections, and resisting distraction from irrelevant passages.
Layer 2: Cost
Cost is not the subscription price. Real cost = subscription fee + per-token cost × task volume + rework cost + integration and operations cost. A “cheap” model that often needs human rework is frequently more expensive overall. Also watch context burn rate: long context, multi-turn revision, and tasks that attach a full codebase can exhaust a high-tier quota very quickly.
Layer 3: Stability and engineering control
- Rate-limit policy and peak availability;
- Output-format stability (whether structured output occasionally breaks the schema);
- Account and access-policy risk (anomaly detection, suspension, regional availability differences);
- Behavior drift from release cadence: prompts that worked before an upgrade may change, so a regression set is required.
Layer 4: Compliance and data boundaries
Data residency, log-retention policy, content-compliance requirements, and enterprise procurement and audit requirements. This layer is often a veto and should be screened before technical evaluation.
3. Build a reproducible evaluation set
Keep the set small, sharp, and stratified. A starting size of 100–300 items is enough if you sample by scenario:
| Stratum | Suggested share | Example tasks |
|---|---|---|
| Real business samples | 40% | Production tickets, real code-review comments |
| Boundary and adversarial samples | 20% | Ambiguous instructions, very long inputs, conflicting constraints |
| Terminology and standards samples | 20% | Translation and rewriting against a fixed glossary |
| Regression baseline samples | 20% | Cases that must not regress after a version upgrade |
Critical constraint: version both the evaluation set and the prompts. Run the full set on every model or prompt change, and keep raw outputs for traceability.
4. Scorecard: turn subjective judgment into checkable items
Do not assign a single 1–10 score. Split judgment into binary or three-level checks that can be verified. A schematic scorecard (pseudocode):
rubric = {"correctness": [all constraints met, no factual errors, calculation steps auditable],"conciseness": [no repeated elaboration, no empty paragraphs, length matches the task],"terminology": [glossary hit rate, one rendering per concept],"engineering": [boundary handling, error handling, dependencies declared, style consistent],"format": [heading hierarchy correct, structured output parseable],"usability": [usable as-is, needs light edits, needs a rewrite]}function evaluate(candidate_output, rubric, termbase):scores = {}for dim, checks in rubric:scores[dim] = sum(check(candidate_output, termbase) for check in checks) / len(checks)scores["usability"] = classify_rework(candidate_output)return scores
The scorecard has two direct benefits. Disagreement between reviewers can be pinned to a specific check. Judgments that used to be “feel”—concision, terminology consistency—become metrics that can be counted automatically.
5. Statistical rigor: make the conclusion defensible
- Multiple samples: sample each task 3–5 times per model and report median and variance, not a single run.
- Blind review and position rotation: hide model identity and rotate the order of candidate answers to remove order bias.
- Reviewer agreement: with multiple reviewers, compute an agreement coefficient. If agreement is too low, rewrite the scorecard items; do not simply average them.
- Significance: on small samples, a gap of 2–3 points is usually not statistically meaningful. Do not decide on that basis.
- Failure-mode taxonomy: more useful than a total score is “which class of error,” such as concept conflation, terminology drift, missed constraints, or broken format.
6. From “pick one” to “orchestrate several”: a collaborative pipeline
A mature practice is not crowning a single winner. It is routing by task. The idea of “draft first, then polish” generalizes to a division-of-labor pipeline: a model strong at conceptual distinction and structural stability writes the draft; a model strong at language quality and expression polishes; a model strong at code implements and reviews.
pipeline translate_and_polish(source, termbase):draft = model_A.generate(source, termbase, mode="literal_faithful")checked = model_B.review(draft, termbase, checklist=terminology_rules)final = model_C.polish(checked, style_guide, forbid="changing the meaning of glossary entries")return final, checked.report
Four points for orchestration:
- Single responsibility: each stage optimizes one goal. Do not ask one prompt to be faithful, elegant, and concise at once.
- Constraints up front: pass the glossary, style guide, and prohibitions as structured input, not as a natural-language reminder.
- Auditable intermediates: keep the draft and the review report so a quality problem can be traced to a stage.
- Controllable cost: use a lower-cost tier for drafting and review; call a higher-tier model only for the critical polish step.
7. Cost model and a selection matrix
Use a weighted score and adjust the weights to the business:
score(model) = 0.35 * capability_fit+ 0.20 * engineering_stability+ 0.20 * cost_efficiency+ 0.15 * compliance_fit+ 0.10 * iteration_responsiveness
Measure cost_efficiency as cost per useful output: total cost divided by the number of outputs that pass the scorecard threshold. If a model is capable but burns quota quickly, the matrix should show the combined cost of a high-tier plan plus strict quota governance, not the subscription price alone.
In deployment, most teams converge model access onto a cloud model-service layer and a unified gateway for routing, rate limits, logging, and cost accounting. Platforms that provide model services, logging, and monitoring and alerting—for example Baidu AI Cloud where that platform is offered—can host the engineering base for multi-model evaluation and scheduling. Do not assume a given cloud catalog is available in every region.
8. Common traps
- Replacing evaluation on your own scenarios with public leaderboards;
- Testing only “can it get it right,” not “does it need rework”;
- Ignoring version drift and skipping regression after an upgrade;
- Equating prompt effects with model capability;
- Ignoring hidden cost from how fast a high-tier quota is consumed;
- Finishing a technical selection before compliance review, then reworking the choice.
9. Implementation checklist
- Define two or three core decision scenarios and the veto criteria;
- Build a versioned, stratified evaluation set of 100–300 items;
- Implement the scorecard and an automatic aggregation script;
- Run multi-sample blind review and report the failure-mode distribution;
- Establish a “cost per useful output” measure;
- Orchestrate the winning combination as a pipeline and govern quotas;
- Trigger a full regression on every model or prompt change.
The conclusion is straightforward: in a multi-model era, the advantage is not which vendors you subscribed to. It is whether you own reproducible evaluation assets and orchestration. Evaluation sets, scorecards, cost definitions, and regression mechanisms compound as models change faster.
