↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

Multiple choice without generating

MMLU (Massive Multitask Language Understanding) has 15,908 four-option questions in 57 subjects, from elementary mathematics to professional law, written for people. A model is not asked to write an answer: each option is scored by the probability the model gives it, and the most probable option is the model's answer. Accuracy is the share of questions where that option is the right one; chance is 25 %.

Here Qwen2.5-0.5B-Instruct answers 100 test questions, the first 20 of each of five subjects from MMLU's four groups: abstract algebra (STEM), astronomy (STEM), high school geography (social sciences), world religions (humanities), nutrition (other). The k-shot prompt column shows what the model reads; the toolbar changes the question, the format and the number of shots.

Three ways to ask

In the letter format, Hendrycks et al.'s, the prompt lists the options lettered A–D and ends with "Answer:"; the four scores are the log-probabilities of the tokens " A", " B", " C" and " D" as the next token, and the answer letter panel draws them. Only their order matters, so the letters need not hold all of the probability; here they hold 99.9 % of it on average even with no examples. The chat format asks the same questions as turns of the model's chat template and reads the assistant's first token. With no examples the letters get only 74.0 % of that token's probability, since the model would rather start a sentence; one example raises it to 99.2 %.

The cloze format shows no options. Each option's text is scored as a continuation of "Answer:", its total log-probability summed over its tokens, . A sum favours short options, which have fewer tokens to pay for: with five shots the summed score picks the shortest option for 36 of the 100 questions, though it is the right answer for only 22. Dividing by the option's length in characters (lm-evaluation-harness's acc_norm) brings that down to 20 and adds 3–6 points of accuracy. The Scoring each option panel shows each option's tokens shaded by their loss.

With five shots the formats score 50 % (letter), 51 % (chat), 30 % (cloze, total) and 33 % (cloze, per character): the same model and questions, with 62 of the 100 questions answered right in some formats and wrong in others (the strip at the bottom). A model this small does far better when it can see the options than when it must rate each one's text on its own.

Shots

A k-shot prompt puts answered questions of the same subject before the test question, the subject's first dev questions (MMLU has five per subject). The examples show a base model the format and that the answer is one letter. This model is instruction-tuned and already answers with a letter, so the examples do not raise its score: the Accuracy chart has the letter format between 50 % and 56 % for every from 0 to 5 (56 % with none, 50 % with five), the chat format between 49 % and 54 %, and the cloze formats between 30 % and 40 %.

The flat line hides movement underneath: the letter format's choice changes with for 37 of the 100 questions, and the gains and losses roughly cancel. Reports state their shots and format (MMLU is usually 5-shot, letter format) because the number can move with both.

How sure a score is

With questions an accuracy has a standard error of about , here 5.0 % for the letter format's 50.0 % with five shots. Every shot count in the chart lies within about one standard error of the others, so 100 questions cannot tell them apart; the full test split, about 14,000 questions, shrinks the error ten-fold. Subjects differ more: with five shots the letter format gets 30 % of abstract algebra, near chance, and 55 % of each of the other four subjects (the By subject bars).

Where it came from

Hendrycks et al. built MMLU in 2020 to test knowledge across many subjects at once, with the lettered few-shot prompt used here. Brown et al. (GPT-3) had introduced in-context examples and scoring options by likelihood. HELM ran MMLU and many other tasks under one documented protocol; Sclar et al. showed that formatting details that leave a prompt's meaning unchanged can move few-shot accuracy by many points, and lm-evaluation-harness's authors (Biderman et al.) describe how letter and cloze scoring, and length normalisation, change results.

The Perplexity tab uses the same log-probabilities on running text; the LLM judge tab scores answers that cannot be checked against one right option.

Papers

  1. Measuring Massive Multitask Language Understanding Dan Hendrycks et al. · ICLR 2021 Introduces MMLU: 57 subjects of four-option questions, its dev, validation and test splits and the lettered few-shot prompt.
  2. Language Models are Few-Shot Learners Tom B. Brown et al. · NeurIPS 2020 Evaluates models by putting k solved examples in the prompt and scoring the options by likelihood, with and without length normalisation.
  3. Lessons from the Trenches on Reproducible Evaluation of Language Models Stella Biderman et al. · arXiv 2024 lm-evaluation-harness's account of how scoring choices (letters or continuations, normalised or not) change benchmark results.
  4. Holistic Evaluation of Language Models Percy Liang et al. · TMLR 2023 Runs MMLU and many other scenarios under one protocol and studies how much prompt format and number of shots move the scores.
  5. Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting Melanie Sclar et al. · ICLR 2024 Shows that formatting choices that do not change a prompt's meaning move few-shot accuracy by many points.
  6. Qwen2.5 Technical Report Qwen Team · arXiv 2024 The model scored here, Qwen2.5-0.5B-Instruct, and its chat template.

See also