LLM 8 - Evaluating Language Models
Welcome back. LLM 7 ended with a fast serving system. Speed, however, does not tell us whether the answer is correct, faithful, fair, useful, or even produced under the same conditions as another system. Evaluation is the contract that turns “this model feels better” into a claim that another person can inspect.
The difficult part is not calculating one score. It is deciding what success means. A classifier, translator, reasoning model, travel-planning agent, and production API fail in different ways. Exact match can be too strict for open text and too loose for a plan with hidden constraint violations. Lexical overlap can reward copied words while missing a negation. An average benchmark score can hide a catastrophic failure on one high-risk slice. A throughput number can ignore time to first token.
This blog builds evaluation from four layers:
- capability suites such as GLUE, SuperGLUE, MMLU, BIG-bench, and HELM;
- output metrics such as ROUGE and BLEU;
- structured reasoning and agent evaluation through ROSCOE and TravelPlanner;
- systems evaluation through latency, throughput, load tests, and correctness checks.
The layers are complementary. A model can lead on MMLU yet be unusable under production latency. It can have high ROUGE yet reverse the meaning of the reference. It can satisfy most travel constraints individually while failing every itinerary as a whole.
1. Evaluation Is a Measurement Design
Before selecting a benchmark, write the decision that the evaluation will support. Are we choosing a base model? Approving a new fine-tuned checkpoint? Monitoring regressions? Comparing serving providers? Deciding whether an agent is safe enough to book travel? Different decisions require different evidence.
A useful evaluation specification names:
- the target users and task distribution;
- the allowed inputs, tools, and context;
- the required output contract;
- the qualities to measure;
- unacceptable failure modes;
- latency and cost constraints;
- the comparison baseline;
- the uncertainty or confidence interval around each result.
For an example-level score
But
Contamination is another threat. If benchmark questions or near-duplicates appeared in training data, the score may measure recall rather than generalization. Benchmark saturation creates a related problem: when most strong systems are near the ceiling, small differences become unstable and no longer reveal which model is better on the actual deployment distribution.
A benchmark is not the target capability. It is a finite instrument designed to probe that capability under a particular format, dataset, metric, and time period.
2. GLUE and SuperGLUE
GLUE
GLUE, the General Language Understanding Evaluation benchmark, combined nine English natural-language understanding tasks behind one evaluation interface. It was intentionally architecture-agnostic: a model was judged by task behavior rather than by whether it used an RNN, Transformer, or another representation.

The tasks measure different things:
- CoLA: whether a sentence is grammatically acceptable; commonly scored with Matthews correlation because labels are imbalanced.
- SST-2: binary sentiment classification.
- MRPC: whether two sentences are paraphrases.
- QQP: whether two Quora questions are duplicates.
- STS-B: semantic similarity on a graded scale rather than a hard class.
- MNLI: entailment, contradiction, or neutrality across multiple genres.
- QNLI: a question-answering dataset recast as sentence-pair classification.
- RTE: textual entailment from several sources.
- WNLI: inference involving pronoun resolution, derived from Winograd-style examples.
These tasks do not share one natural metric. Accuracy is appropriate for some; F1 matters for imbalanced pair classification; Pearson and Spearman correlations measure graded similarity; Matthews correlation handles the CoLA label structure. A leaderboard aggregate is convenient, but it combines quantities with different meanings. Always retain the task-level vector.
GLUE was valuable partly because it became difficult. Once pretrained language models approached or exceeded the benchmark’s human baselines, the suite stopped separating leading systems effectively. That did not prove general language understanding had been solved. It showed the instrument had reached its useful ceiling.
SuperGLUE
SuperGLUE was designed as a harder successor with eight tasks emphasizing reasoning, coreference, word meaning, question answering, and inference.

- BoolQ: answer a yes/no question from a passage.
- CB: classify entailment, contradiction, or neutrality in a small commitment dataset.
- COPA: choose the more plausible cause or effect.
- MultiRC: identify multiple correct answers using a passage; evaluation must account for both individual choices and complete questions.
- ReCoRD: fill a missing entity using a passage and commonsense reasoning.
- RTE: textual entailment.
- WiC: decide whether a word has the same sense in two contexts.
- WSC: resolve a pronoun whose antecedent requires commonsense reasoning.
SuperGLUE illustrates why example format matters. COPA can be solved as a two-choice likelihood comparison; MultiRC is multi-label; ReCoRD uses entity candidates; CB is tiny enough that variance can be large. A single “SuperGLUE score” should never replace inspection of per-task behavior and prompt sensitivity.
3. Broader Benchmark Suites
MMLU, BIG-bench, and BIG-bench Hard
MMLU evaluates multiple-choice knowledge and problem solving across 57 subjects, ranging from elementary mathematics to law, medicine, computer science, and humanities. It provides breadth, but multiple-choice success is not equivalent to reliable free-form reasoning. Option order, prompt wording, few-shot examples, and answer extraction can change the result.
BIG-bench collected more than 200 diverse tasks from a broad research collaboration. BIG-bench Hard selected 23 tasks on which earlier language models performed poorly and on which chain-of-thought prompting often helped. The subset is useful for difficult reasoning patterns, but selection on model difficulty means it represents a deliberately challenging slice, not natural production frequency.

For any multiple-choice benchmark, specify the scoring procedure. Let
Without length normalization, shorter options may be favored. With generated letter answers, parsing failures become part of the result. Neither method is automatically correct; the report must say which one was used.
HELM
HELM—Holistic Evaluation of Language Models—argues that capability should be evaluated across scenarios and metrics, not compressed into accuracy alone. Its core evaluation covers 16 scenarios and seven broad metric families: accuracy, calibration, robustness, fairness, bias, toxicity, and efficiency.

This matters because two models with the same accuracy may behave differently. One may be well-calibrated and robust to paraphrase but more toxic; another may be efficient but show a large demographic performance gap. A deployment decision must preserve these trade-offs rather than average them away.
Calibration asks whether stated confidence matches empirical correctness. If predictions assigned confidence near
ECE depends on binning and should not be treated as a complete calibration description. Reliability plots and task slices provide the missing shape.
4. ROUGE and BLEU
N-gram Overlap
An
ROUGE-
where
For reference “It is cold outside” and candidate “It is very cold outside,” the reference has four unigrams and the candidate five. All four reference unigrams occur in the candidate, so

The reference bigrams are “It is,” “is cold,” and “cold outside.” The candidate bigrams are “It is,” “is very,” “very cold,” and “cold outside.” Two match, giving

ROUGE-L and a Correct LCS Calculation
ROUGE-L uses the longest common subsequence (LCS): tokens must preserve order but need not be contiguous. For the same pair of sentences, the LCS is “It is cold outside,” length 4. Therefore
This is worth calculating directly because a displayed classroom example can contain a counting typo. Evaluation code should be tested on hand-checkable cases before it is trusted on a leaderboard.
ROUGE can still be fooled. “cold cold cold cold” repeats a reference word but conveys almost none of the sentence. Clipping reduces its unigram precision to

BLEU
BLEU was developed for corpus-level machine translation evaluation. It combines modified
where
The brevity penalty prevents a short phrase containing a few highly precise words from winning by omitting most of the translation. BLEU is most stable over a corpus; sentence-level BLEU can become zero when one higher-order precision has no matches unless smoothing is used.

Tokenization, casing, punctuation normalization, reference count, smoothing, and library version all change ROUGE and BLEU. Report the implementation, not just the metric name. Most importantly, use human or semantic/factual evaluation when meaning matters. High overlap is evidence of surface similarity, not proof of correctness.
5. Evaluating Reasoning
Correct Answers Can Hide Bad Rationales
Chain-of-thought, tree search, and tool-using methods expose intermediate text. That text can help a model solve a task, but a correct final answer does not prove the written reasoning is faithful. A rationale can contain a factual error repaired later, invent an unsupported step, repeat itself, omit a necessary inference, or contradict the source while landing on the right choice.

ROSCOE organizes automatic reasoning-chain metrics into four families:
- semantic alignment with the source or reference;
- semantic similarity of complete chains or steps;
- logical inference and contradiction;
- language coherence and grammaticality.
Let source context be
and the reasoning alignment vector is

The mean alignment can serve as a step-level faithfulness signal. Bidirectional coverage asks both whether hypothesis steps are grounded in the source and whether important source information appears in the hypothesis. Comparing with an optional gold reasoning chain can reveal redundancy or missing content.

Whole-chain embedding similarity measures broad semantic agreement but can hide one fatal step. Step-level repetition detects whether a new step paraphrases earlier reasoning. Natural-language-inference models estimate contradiction probabilities between steps or between a step and the source. Perplexity and grammatical acceptability measure fluency.

These automatic metrics are diagnostic, not ground truth. Embedding similarity can confuse topical overlap with entailment. An NLI model carries its own domain errors. Perplexity rewards conventional language, not sound logic. Human review and task-specific executable checks remain essential for high-stakes reasoning.
6. TravelPlanner
Why Planning Needs Constraint Evaluation
TravelPlanner evaluates an LLM agent on 1,225 natural-language trip requests with reference information and constraints. A request can specify cities, dates, duration, budget, room type, cuisine, transport preferences, and other requirements. The agent may use tools for city search, flights, distances, restaurants, attractions, and accommodation, store observations in a notebook, and construct an itinerary.

The benchmark checks commonsense constraints—reasonable routes, complete information, transport consistency, minimum stays, and conflict-free schedules—alongside hard constraints such as budget, room, cuisine, and transportation requirements. Difficulty grows as the itinerary and constraint set become more complex.
An answer may look fluent while naming a nonexistent flight, booking a seven-night-minimum apartment for three days, exceeding the budget, or scheduling dinner in a city the traveler has already left. These failures are not reliably measured by lexical similarity to one reference plan. They require explicit validators over structured itinerary fields.
Micro and Macro Pass Rates
Let
It asks: what fraction of individual constraints were satisfied? The macro pass rate is
It asks: what fraction of entire plans are completely valid?

The gap can be enormous. If each plan has ten independent constraints and a model passes each with probability
With 20 constraints it drops to about 12%. This explains why a respectable component score may coexist with almost no deployable outputs.
The presented TravelPlanner results show strong models achieving high delivery rates but extremely low final pass rates under the complete constraint set. GPT-4-Turbo reached only about

Failure traces reveal tool loops, nonexistent transport, impossible accommodation, budget violations, and unsuccessful self-reflection. ReAct and Reflexion can help organize interaction, but prompting strategies do not automatically solve state tracking or constraint satisfaction.

For a real planner, evaluation should add safety and business slices: inaccessible routes, visa constraints, timezone boundaries, cancellations, children, mobility needs, and stale inventories. The benchmark teaches a general lesson: agent evaluation should score state transitions and constraints, not only final prose.
7. Systems Metrics
Evaluation must also ask whether a correct model can serve users. The main inference metrics are:
- requests per minute or request throughput;
- output tokens per second;
- time to first token (TTFT);
- inter-token latency (ITL);
- end-to-end latency;
- error and timeout rate;
- cost per successful request.

For output length
This hides queueing variability and changing batch composition, so record distributions. Median TTFT can look excellent while p99 reveals overloaded periods. Tokens per second must state whether it is per request or aggregated across concurrent requests. A server can have high aggregate throughput while each user sees slow token delivery.
Cost should be normalized by success. If a cheaper model requires repeated retries, tool corrections, or human repair, dollars per generated token understate the operational cost. Define a successful request through the task evaluator, then compute
8. LLMPerf
LLMPerf is a tool for comparing LLM APIs with two complementary tests: a load test for performance and a correctness test for basic output behavior.

The load test sends concurrent requests and records ITL and generation throughput per request and across the workload. Its example prompt asks APIs to stream sampled lines from Shakespeare. A common tokenizer is used to count tokens consistently across providers. This improves comparability, but token counts from an external tokenizer may differ from a provider’s internal billing or generation tokens. Report that limitation.

The correctness test converts randomized numbers written in words into digits. For example, “one hundred and twenty-three” should produce 123. This is deliberately simple: it detects malformed or inconsistent responses while the load test runs. It does not establish general model correctness.

Provider leaderboards must be interpreted as time-stamped experiments. Hardware, routing, quotas, model revisions, quantization, regions, and API policies change. A box plot of output tokens per second is more informative than one mean because it exposes variability, but it still applies only to the tested request distribution.

When repeating such a benchmark, record timestamp, region, account tier, concurrency, prompt and output lengths, streaming mode, retry policy, timeout, tokenizer, model identifier, temperature, and rate-limit errors. Otherwise two runs cannot be compared responsibly.
9. Building an Evaluation Portfolio
No single benchmark can approve a language-model system. Build an evaluation portfolio in layers:
- Unit tests: deterministic formatting, parsing, tool schemas, and hand-calculated metric cases.
- Capability tests: relevant public benchmarks and internal task sets.
- Slice tests: rare, difficult, safety-critical, multilingual, long-context, and adversarial cases.
- Reasoning diagnostics: faithfulness, contradiction, missing steps, and executable intermediate checks.
- Agent tests: tool selection, state tracking, constraint satisfaction, and recovery from tool failure.
- Human evaluation: usefulness, clarity, factual support, and preference under a written rubric.
- Systems tests: TTFT, ITL, throughput, errors, cost, and tail latency under realistic load.
- Production monitoring: drift, corrections, escalations, feedback, and newly discovered failure clusters.
Use a frozen regression set for release gates and a separate development set for prompt and model iteration. Version the dataset, evaluator code, prompts, model, decoding configuration, and serving stack. When the evaluator itself is an LLM, validate it against human labels, measure agreement, randomize presentation order, and guard against prompt injection inside evaluated outputs.
Public benchmarks are useful for external comparison, but an internal acceptance test should mirror the actual decision distribution. A medical summarizer, code assistant, and travel planner should not share the same definition of correctness. Their high-cost errors are different.
The central evaluation lesson: a score is meaningful only when its examples, metric, protocol, and decision are aligned. Good evaluation does not ask whether a model is “smart.” It asks whether a specified system succeeds on a specified distribution under specified constraints—and shows where it does not.
References
- Wang et al., GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding .
- Wang et al., SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems .
- Hendrycks et al., Measuring Massive Multitask Language Understanding .
- Liang et al., Holistic Evaluation of Language Models .
- Golovneva et al., ROSCOE: A Suite of Metrics for Scoring Step-by-Step Reasoning .
- Xie et al., TravelPlanner: A Benchmark for Real-World Planning with Language Agents .
- Ray Project, LLMPerf .
- Title: LLM 8 - Evaluating Language Models
- Author: Gavin0576
- Created at : 2026-10-30 18:00:00
- Updated at : 2026-11-01 07:06:21
- Link: https://jiangpf2022.github.io/blog/2026/10/30/LLM-8-Evaluating-LLMs/
- License: This work is licensed under CC BY-NC-SA 4.0.