Skip to content
DAH
Wiki/Scaling LawsTheoryActive

Language-model evaluation methodology

How benchmark scores of language models are produced and what can go wrong: prompt format, contamination, judge models, metric choice and predicting task scores from loss.

On this page14 sections
Why other work relies on it

Model comparisons, scaling-law claims and safety decisions all rest on benchmark scores, so evaluation choices determine what the field believes works.

How we score language models, and the many ways a score can mislead.

  1. 1Score depends on many choices
  2. 2Contamination and metric traps
  3. 3Judges have biases
  4. 4Predicting scores before training

Why it matters. Claims such as "model A is better at maths than model B" decide which models get built, deployed and trusted. Each such claim rests on a benchmark score, and a score is the output of a measurement pipeline that can go wrong in many places, like any lab measurement.

The pipeline. A score needs (1) a dataset of questions, (2) a prompt template that wraps each question (with or without worked examples), (3) a way to read the answer and (4) a metric. For multiple choice, one common reading compares the probability the model assigns to each option and picks the highest. For open answers, the generated text is checked by a rule (exact match, running the code against tests) or by another model acting as judge. Changing any of these, even the wording of the template, can move the score by several points, which is why results from different groups often disagree. Open tools such as the lm-evaluation-harness fix the pipeline in code so others can rerun it.

An analogy. It is like measuring a resistor: the reading depends on the meter, the leads, the temperature and how you hold the probes, so a number without its method is not a measurement. The analogy breaks because language models can also have seen the "test resistor" before.

Failure modes.

  • Contamination: test questions that appeared in the training text inflate scores, and detection methods all have gaps.
  • Training on the test task: models trained on more exam-style data look better; giving every model the same task-specific practice before testing changes the rankings.
  • Metric artefacts: with an all-or-nothing metric such as exact match, a model that gets steadily better at each step of a ten-step answer still scores zero until every step is right, so an ability can appear "suddenly" even when the underlying improvement is smooth. If each step is right with probability pp, the whole answer is right with probability p10p^{10}: at p=0.8p = 0.8 that is about 0.11, at p=0.95p = 0.95 about 0.60.
  • Judge models: a strong model used as judge agreed with human preferences more than 80% of the time in one study, but it favours longer answers, answers in a certain position and its own style.

Predicting scores in advance. Training loss follows smooth scaling laws, but accuracy on a particular test does not follow them directly. Model ladders fit two steps with small models: from size and data to loss, then from loss to accuracy. One study predicted the accuracy of 7- and 13-billion-parameter models within 2 points on four multiple-choice tasks using about 1% of their compute.

What is open. There is no agreed, reliable way to evaluate open-ended writing, agents that act over many steps, or long documents, with the repeatability expected of an engineering measurement.

Go deeper

The full technical text.

What is being measured

A language-model score is the output of a pipeline: a task dataset, a prompt template (zero- or few-shot), a way of reading the answer (the likelihood of each multiple-choice option, or a generated string checked by rule or by a judge model), and a metric. Small changes in any step shift the number, which is why results from different groups often disagree. Lessons from the Trenches (Biderman et al., 2024) documents these sensitivities and describes the lm-evaluation-harness, an open framework meant to make runs reproducible. HELM (Liang et al., 2022) argues for reporting many scenarios and metrics (accuracy, calibration, robustness, fairness, efficiency) rather than a single score.

Failure modes

  • Contamination. Test items appearing in pre-training data inflate scores; a survey (Xu et al., 2024) catalogues detection methods, all of which have limits.
  • Training on the test task. Dominguez-Olmedo et al. (2024) argue that models trained on different amounts of task-style data are not comparable, and that giving every model the same task-specific fine-tuning before testing changes rankings and reduces apparent emergence.
  • Metric artefacts. Schaeffer et al. (2023) argued that apparently sudden 'emergent' abilities can come from discontinuous metrics such as exact match rather than from a change in the model.
  • Judge models. Zheng et al. (2023) examine using strong models as judges (MT-Bench, Chatbot Arena), report agreement with human preferences above 80% for GPT-4, and document position, verbosity and self-preference biases.

Predicting scores

Pre-training loss follows smooth scaling laws, but task accuracy does not follow them directly. Two lines of work address this: model ladders (Bhagia et al., 2024) fit a two-step relation from model and data size to loss and from loss to task accuracy using small models, and observational scaling laws (Ruan et al., 2024) fit a low-dimensional capability space across many existing models. Bhagia et al. report predicting the accuracy of 7B and 13B target models within 2 points absolute error on four multiple-choice tasks using about 1% of the targets' compute.

Evaluation methodology is not a closed field: there is no agreed answer for how to evaluate open-ended generation, agents or long-context behaviour with the reliability expected of a measurement instrument.

Words on this page (11)
Words on this page
benchmark
A fixed test, with fixed rules, used to compare methods fairly.
large language model
A very large neural network trained on text to predict the next token, as in modern chatbots.
contamination
When test questions leaked into the training text, so scores overstate ability.
ranked classification
Scoring a multiple-choice question by checking which answer the model finds most likely.
scaling law
A smooth rule that predicts how a model's error falls as model size, data and computing grow.
baseline
The standard method a new idea must beat for the comparison to mean anything.
loss
A single number measuring how wrong the model is on the training or test text. Lower is better.
prompt template
The fixed wrapping text around each test question, such as instructions or worked examples, that the model is shown.
exact match
A metric that counts an answer correct only if it equals the reference answer exactly.
LLM-as-a-judge
Using a strong language model to grade or compare the answers of other models instead of human raters.
model ladder
A series of small models trained to fit a curve that predicts how a large model will score.
New to this? Read first (3)
New to this? Read first

Understanding map

map of the whole wiki →

What to read before Language-model evaluation methodology (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

Progress timeline

  1. Dec 5, 2024
    Task scaling laws via model ladders

    Bhagia et al. predict 7B and 13B accuracy on four tasks within 2 points from about 1% of the compute.

    source
  2. Dec 5, 2024
    Model ladders published
    Related to: Predicting benchmark accuracy of 7B+ models within 2 points beyond four multiple-choice tasks

    Predicted 7B and 13B accuracy within 2 points on four tasks.

    source
  3. Apr 28, 2023
    Emergence and metric choice

    Schaeffer et al. argue that apparent emergent abilities can follow from the choice of metric.

    source
  4. Nov 16, 2022
    HELM

    Liang et al. propose multi-metric, multi-scenario evaluation of language models.

    source