How to Evaluate Large Language Models: From Subjective Impressions to Objective Metrics
Evaluating large language models (LLMs) by gut feeling or leaderboard rankings alone tends to be unreliable. This article argues for a pragmatic, repeatable approach that combines subjective experience with objective measurement, and breaks it into six steps: translating business problems into a measurable task profile, building a multi-tier evaluation set, automating scoring, running human blind and pairwise comparisons, folding cost/latency/stability into a single scorecard, and moving from offline evaluation to online validation with continuous regression. It covers rule-based vs. model-based scoring and their biases, sampling for stability, cost and token accounting, weighted scoring, and grey-release A/B testing—showing how a reusable evaluation pipeline turns model selection from "whoever argues best" into "whoever has the data."
1. Introduction: Why “Going by Feel” Is Often Unreliable
A common scenario: a team is preparing to swap the base model for a customer-service system. In the meeting, some argue the new model is “smarter,” others feel “there’s not much difference,” and the discussion stalls. Often the person who speaks most confidently—or leaves the deepest impression—ends up deciding the choice. Such decisions seem reasonable but overlook two key questions: whether the evaluation target is clearly defined, and whether the evaluation process is reproducible.
Relying on personal experience to make judgments has at least five systematic biases:
- Novelty effect: The delight of a new tool amplifies perceived advantages at first, then tips toward nitpicking after a while.
- Differences in prompting skill: Evaluators vary in how well they write prompts, so a model’s performance gets masked by the evaluator’s ability.
- No common baseline: Most people only have a vague memory of the old model, with no side-by-side comparison, so perceived differences get subjectively amplified.
- Case selection bias: A single failure gets cited repeatedly and elevated into an overall conclusion, while the many requests that completed normally are ignored.
- Lack of lateral comparison: The same model performs noticeably differently under different service configurations and sampling parameters, and a single-point experience can’t tell whether the difference comes from the model or the configuration.
The result is often: plenty of discussion, but no verifiable evidence left behind.
The opposite extreme is leaderboard-only thinking—looking only at third-party benchmark rankings. Leaderboards are valuable for providing reference coordinates, but they have three inherent limitations:
- Data contamination risk: Benchmark questions may already be in the training corpus, so scores may be inflated;
- Score saturation: The gap between top models keeps shrinking, and ordinary use cases can no longer tell them apart;
- Limited business relevance: Leaderboards test general capabilities and rarely cover a company’s real prompt patterns, knowledge boundaries, and compliance constraints.
So a more pragmatic path is: use subjective experience to surface problems, use objective evaluation to verify them, and use quantitative metrics to support decisions. This article breaks this idea into six steps.
2. Step 1: Define the Evaluation Goal—Translate the Problem into a Task Profile
The first step isn’t finding a model, but translating the business problem into a measurable task description. You can characterize the evaluation target across four dimensions:
- Input shape: single-turn or multi-turn, text length, whether it includes images or tables, whether retrieved background material is appended;
- Output constraints: free text, a specified structure (such as JSON), executable code, or tool-call arguments;
- Quality dimensions: correctness, completeness, instruction-following, writing style, safety;
- Runtime constraints: latency ceiling, concurrency, cost per call, data compliance requirements.
For example, for the same “text generation,” marketing copy values style fit and diversity; customer-service replies value factual accuracy and compliance; technical documentation values terminology consistency and structural completeness. The three differ greatly in how they’re evaluated.
The table below gives common metric references by typical task type:
| Task type | Core quality metric | Key efficiency metric | Typical evaluation method |
|---|---|---|---|
| Summarization & long-text understanding | Factual consistency, key-point coverage | Latency and input cost of processing long text | Manual verification + reference comparison |
| Code generation & Q&A | Compile pass rate, unit-test pass rate | Latency per generation | Sandboxed execution verification |
| Structured output | Schema validation pass rate, field completeness | Number of retries on failure | Automated program validation |
| Multi-turn dialogue & tool calling | Task completion rate, argument extraction accuracy | Average interaction turns, end-to-end latency | Simulated user + rule validation |
| Open-ended Q&A & copywriting | Usefulness, accuracy, style fit | Cost per call | Human blind rating or pairwise comparison |
The clearer the task profile, the more concrete the handle for every subsequent step.
3. Step 2: Build a Multi-Tier Evaluation Set That Balances Representativeness, Difficulty, and Timeliness
The credibility of an evaluation’s conclusion is capped by the quality of its evaluation set. It helps to divide it into three categories by source:
- Public benchmarks: used for initial positioning and lateral reference. Pick public test sets close to your business as a warm-up, but don’t rely on them as the sole basis.
Self-built business set (core): the main basis for decisions. There are three ways to build it:
- Sample from online logs according to the business distribution;
- Regressively organize historical failure cases (bad cases);
- Have domain experts manually write edge cases and adversarial samples.
A typical size is hundreds to a thousand-plus items, covering the main business types and difficulty gradients.
- Adversarial samples: including overlong inputs, ambiguous phrasing, conflicting instructions, prompt injection, sensitive-content inducement, etc., used to test robustness and safety.
Points to note when building it:
- Coverage: sample in layers by task type and difficulty to avoid a skewed conclusion from a single distribution.
- Data hygiene: near-deduplicate against public corpora to avoid mistaking “reciting the test” for “capability.”
- Sample isolation: hold some cases out of daily tuning and use them only before version releases, to reduce overfitting to the evaluation set.
- Privacy and compliance: online logs must be de-identified, with personal and sensitive data removed and usage authorization made explicit.
- Version management: as the business evolves, expand the set and record a version number on each change, so historical results stay comparable.
4. Step 3: Automate Evaluation—Turn “Good or Not” into “A Score”
Automated evaluation greatly reduces repetitive labor, and the key lies in choosing the scoring method.
1. If rules can score it, don’t use a model to score it
- Code tasks: compile and run in a sandbox, then tally the pass rate;
- Structured output: use schema validation to check fields and types;
- Summarization tasks: combine manual spot-checks with overlap metrics against reference answers.
Rule-based scoring is reproducible and low-cost, so it should be the first choice.
2. Open-ended tasks can introduce model-based scoring, but the bias must be controlled
Using an LLM as a “judge” has inherent flaws:
- Position bias: the order in which candidate answers are arranged affects the judgment;
- Self-preference: it tends to rate outputs from itself or same-family models higher;
- Concentrated score distribution: absolute scoring often clusters in the high range, lacking discriminative power;
- Judgment drift without a reference answer: the same sample scored multiple times may get different scores.
Countermeasures include:
- Randomly swap the order of candidate outputs to eliminate position bias;
- Prefer pairwise comparison (which of A and B is better) over absolute scoring;
- Provide explicit scoring rubrics, reference answers, or reference key points;
- Have multiple people independently evaluate key samples and compute inter-rater agreement (such as the kappa coefficient); when agreement is low, revise the rubric before evaluating again.
3. Use multiple samples to characterize stability
Generative-model output is random, and a single evaluation may just be a fluke. Sample the same case multiple times, report the pass rate or average score, and give a confidence interval, so that fluctuations aren’t mistaken for differences.
4. Break the report down by dimension
A single overall score hides weaknesses. Break the statistics down by task type, difficulty level, input length, and so on. For example, long-text scenarios should pay special attention to “whether key information buried in the middle of the text can be located accurately,” and an evaluation set with too low a proportion of such cases tends to give an overly optimistic conclusion.
Here’s illustrative pseudocode showing the basic flow of offline evaluation (parameters and configs are illustrative only):
def run_eval(model_client, cases, judge=None):"""Illustrative evaluation flow: run cases -> score -> aggregate by dimension"""records = []for case in cases:# Fix sampling parameters to ensure reproducible comparison across versionsresponse = model_client.generate(prompt=case.prompt,temperature=0.0, # Set to 0 for objective tasks to reduce randomnessmax_tokens=1024,)score, need_judge = rule_based_score(case, response)if judge is not None and need_judge:# Hand open-ended items to the "judge model" with a rubric and reference answerscore = judge.pairwise_score(case.prompt, case.reference, response)records.append({"case_id": case.id,"category": case.category, # Business dimension: customer service/summary/code..."difficulty": case.level, # Difficulty: easy/medium/hard"score": score,"input_tokens": response.usage.input_tokens,"output_tokens": response.usage.output_tokens,"latency_ms": response.latency,})return aggregate_report(records) # Aggregate by dimension; output mean, pass rate, confidence interval
5. Step 4: Human Blind Rating and Pairwise Comparison for Subjective Quality
For metrics hard to rule-ize, such as writing style and usefulness, human evaluation is still irreplaceable. To reduce bias, follow these principles:
- Blind rating: hide the model’s source to avoid brand impressions taking hold first;
- Pairwise comparison: people judge “which is better, A or B” more stably than “score A out of ten,” so you can tally win rates with confidence intervals;
- Cross-review by multiple people: at least 2–3 evaluators score independently, and disputed samples are arbitrated by a third party;
- Rubric first: define concrete criteria for “useful,” “accurate,” and “concise” before you start labeling.
When there are many candidate models, you can use round-robin pairwise comparisons and tally an overall win rate. This idea is similar to the rating systems used in some board-game and chess competitions: individual match results are somewhat random, but once many matches are aggregated, they form a stable relative-strength ranking.
6. Step 5: Put Cost, Latency, and Stability on the Same Scorecard
Capability is only one dimension of model selection. In real engineering, plenty of services are “usable but unaffordable” or “affordable but too slow to wait for,” and the reason in both cases is that cost and performance weren’t brought into the evaluation.
1. Cost and token consumption
LLMs are billed by input and output tokens, and the per-task cost roughly breaks down as:
Cost per task = input tokens × input price + output tokens × output priceAverage task cost = cost per task ÷ task success rate
Key factors affecting cost include:
- Context bloat: accumulated history in multi-turn dialogue and appended background material in retrieval-augmented generation both significantly increase input tokens;
- Output length: long answers and lengthy intermediate reasoning increase output consumption, which is usually priced higher than input;
- Caching mechanisms: some inference services offer capabilities like prefix caching that lower the billing for repeated prefixes on a cache hit, which you can actively exploit when designing prompts;
- Failure overhead: failures and retries caused by timeouts, rate limiting, or format errors all consume quota. At a low success rate, actual cost can be several times higher than the ideal value.
Pricing rules and free quotas vary widely across service platforms, so refer to the official documentation of the service you use.
2. Performance and stability
Beyond response latency, you should separately track:
- Time to first token (directly affects the interactive experience);
- Throughput and queuing during peak hours;
- Error rate and rate-limit trigger rate;
- Consistency of performance under different loads.
3. Combined weighting
You can normalize each dimension and compute a weighted score, with weights set by business emphasis (the following is illustrative only):
| Dimension | Illustrative weight | Normalization |
|---|---|---|
| Quality score | 0.4 | Score ÷ max score for that dimension |
| Cost per task | 0.2 | Best cost ÷ current cost |
| Latency | 0.15 | Target latency ÷ actual latency |
| Stability | 0.25 | 1 − error rate |
An illustrative calculation:
# Illustrative combined score (weights and thresholds are for demonstration only)def weighted_score(metrics):effect = metrics["effect_score"] / 100.0 # Normalize to 0~1cost = min(best_cost / metrics["cost"], 1.0) # Lower cost -> higher scorelatency = min(target_lat / metrics["latency"], 1.0)stability = 1.0 - metrics["error_rate"]return 0.40 * effect + 0.20 * cost + 0.15 * latency + 0.25 * stability
Weights aren’t fixed. Consumer-facing products should raise the latency and cost weights; strongly regulated scenarios like finance and healthcare should raise the quality and stability weights.
7. Step 6: From Offline Evaluation to Online Validation and Continuous Regression
Passing offline evaluation only means “it performs well on the test set”; online validation is still needed before launch:
- Grey release and A/B testing: first open the new model to a small share of traffic, and compare online metrics such as task completion rate, human handoff rate, user satisfaction, average cost, and P95 latency;
- Build a monitoring loop: use the general-purpose logging services and monitoring/alerting capabilities on cloud platforms to continuously sample real requests and periodically add new failure cases to the evaluation set;
- Version regression: after a model version update, automatically rerun the fixed evaluation set and watch for score changes. Even if the average holds steady, a clear drop in some sub-dimension should trigger a timely alert;
- Multi-model routing: at the business gateway layer, route by task complexity—send simple requests to a lightweight model to control cost, and complex requests to a more capable model to guarantee quality—provided each routing branch has its own evaluation backing it.
8. Conclusion: Make Evaluation a Reusable Engineering Capability
Back to the original question—how do you scientifically evaluate a large model? The answer isn’t a single score or ranking, but a reusable evaluation system:
- Set the goal first: use a task profile to turn business needs into quantifiable metrics;
- Then build a baseline: use public benchmarks to position quickly, and self-built business sets plus adversarial samples to test real capability;
- Programmatic validation: prefer rule-based scoring with model-based scoring to fill gaps, and use multiple sampling and dimensional breakdowns to keep conclusions stable;
- Human backstop: blind rating and pairwise comparison make up for judging subjective quality;
- Factor in cost: put token consumption, latency, and stability on the same scorecard;
- Online loop: grey-release validation, continuous monitoring, and version regression keep the evaluation effective over the long term.
When evaluation is done well, technical selection goes from “whoever makes the better argument” to “whoever has the data to back it up”; when evaluation is done poorly, even choosing the strongest model available today may fail to deliver the expected value because of poor prompts, runaway costs, or version drift. For developers, building your own evaluation set and evaluation pipeline is an engineering capability that pays off more and lasts longer the earlier you invest in it.
