Unit 5 · Evaluation, Safety and Deployment

Lesson 17 · Available to read

Measuring Intelligence: Benchmarks, Evals and Their Limits

How we measure LLMs — benchmarks, human and model judges — and why every metric eventually breaks.

How do you know if one model is better than another — or whether your prompt change helped? Evaluating LLMs is surprisingly hard: outputs are open-ended, abilities are many and uneven, and every metric can be gamed. This lesson surveys the main tools and their limits.

Six ways to evaluate LLMs — benchmarks, human evaluation, pairwise arenas, LLM-as-judge, task-specific evals and red-teaming — each with strengths and weaknesses.
Six ways to evaluate LLMs — benchmarks, human evaluation, pairwise arenas, LLM-as-judge, task-specific evals and red-teaming — each with strengths and weaknesses.

Intrinsic metrics

Perplexity (Lesson 9) measures how well a model predicts held-out text. It's invaluable during pretraining, but it doesn't directly tell you whether an assistant is helpful, honest or good at coding, and it can't compare models with different tokenizers.

Benchmarks

A benchmark is a fixed set of tasks with an automatic scoring rule. Well-known families include:

  • Knowledge and reasoning — multiple-choice exams across dozens of subjects (e.g. MMLU, 2020), graduate-level science questions designed to be hard to look up (e.g. GPQA).
  • Mathematics — grade-school word problems (GSM8K) up to competition maths (MATH and olympiad-style sets).
  • Coding — writing functions that pass hidden unit tests (HumanEval), or resolving real GitHub issues in real repositories (SWE-bench).
  • Agentic tasks — multi-step work with tools, browsers or operating systems, scored by whether the end state is correct.

Scoring is usually accuracy or exact match; for code, pass@k — the chance that at least one of k sampled solutions passes the tests. If a single sample succeeds with probability p (and samples are independent), pass@k = 1 − (1 − p)^k.

Why benchmarks break

  • Saturation. Top models approach the ceiling, and the benchmark can no longer separate them. The field then builds harder ones — a constant cycle.
  • Contamination. Test questions leak into training data (Lesson 10), inflating scores.
  • Overfitting to the leaderboard. When a benchmark becomes the target, labs (consciously or not) tune for it — Goodhart's law again.
  • Prompt sensitivity. Small changes in formatting, answer order or the number of examples can shift scores by several points; comparisons are only fair under identical settings.
  • Label errors. Popular benchmarks contain a surprising number of wrong or ambiguous answers.
Benchmarks follow a life cycle: models climb quickly toward the ceiling, the benchmark saturates and a harder one replaces it.
Benchmarks follow a life cycle: models climb quickly toward the ceiling, the benchmark saturates and a harder one replaces it.

Human evaluation

Ultimately we care about what people find useful. Human evaluation asks experts or users to rate responses (on a scale or rubric) or to compare two responses side by side. It's the gold standard for open-ended quality, but slow, expensive, and noisy: raters disagree, tire, and can be swayed by length, confidence and formatting.

Pairwise arenas collect many crowd votes between anonymous models answering the same prompt and convert them into Elo-style ratings, as in chess. If model A's rating is 100 points above B's, A is expected to win about 64% of comparisons:

E(A beats B) = 1 / (1 + 10^((R_B − R_A) / 400))

Arenas capture real user preferences at scale, but they reflect the kinds of prompts visitors happen to ask, and style can win votes independent of correctness.

LLM-as-judge

A strong model can grade outputs against a rubric, or pick the better of two answers — fast, cheap and scalable, and often well correlated with human judgement. But LLM judges have known biases:

  • Position bias — preferring the first (or second) answer shown;
  • Verbosity bias — preferring longer answers;
  • Self-preference — favouring outputs from their own model family;
  • weaker reliability on specialised or factual questions they can't verify.

Mitigations: swap answer order and average, use explicit rubrics with examples, ask for reasoning before the verdict, and check the judge against human labels on a sample.

Build your own evals

Public benchmarks tell you about general ability. For your product, what matters is performance on your tasks:

  1. Collect a golden set of realistic inputs from actual use — including the hard and weird ones.
  2. Define success: exact answers, required fields, rubric criteria, groundedness in sources, safety constraints.
  3. Automate what you can (string checks, unit tests, schema validation, LLM judges calibrated to humans).
  4. Run the suite on every prompt or model change, and track results over time.

Mind the statistics

With small test sets, differences can be noise. The standard error of an accuracy p measured on n items is about √(p(1 − p)/n). At 80% accuracy on 100 questions, that's 0.04 — so a 95% confidence interval is roughly ±8 points. A "3-point improvement" on 100 questions may mean nothing. Use larger sets, repeated runs (sampling adds variance) and paired comparisons on the same items.

Evaluation beyond capability

Labs also evaluate safety and risk: refusals of harmful requests, robustness to jailbreaks, honesty, bias across groups, and dangerous capabilities in sensitive domains. Much of this relies on red-teaming — people (and models) actively trying to make the system fail (Lesson 19).

The takeaway

No single number captures an LLM's ability: benchmarks are cheap and comparable but saturate and leak, human and pairwise judgements are closer to what people value but costly and biased in their own ways, LLM judges scale but need calibrating — so serious evaluation combines methods and, above all, tests on your own real tasks.

Practice

0 of 7 attempted

  1. 1Recall

    Name five reasons a benchmark score can be misleading.

    Saved in this browser

  2. 2Calculate

    A model solves a coding problem with probability 0.3 per sample. Assuming independent samples, what is pass@1, pass@5 and pass@10?

    Saved in this browser

  3. 3Calculate

    Model A has an Elo rating 200 points higher than model B. What fraction of head-to-head comparisons should A win?

    Saved in this browser

  4. 4Calculate

    Your prompt scores 72% on a 50-question eval; a new version scores 78%. Estimate the standard error for each and say whether you'd trust the improvement.

    Saved in this browser

  5. 5Multiple choice

    Which technique best reduces position bias in an LLM judge comparing two answers?

  6. 6Apply

    Design a small evaluation plan for a customer-support assistant: what goes in the golden set, what you measure, and how you'd score it.

    Saved in this browser

  7. 7Explain in your own words

    Why are public arena rankings useful but not sufficient for choosing a model for your product?

    Saved in this browser

See what unlocked