LLM Benchmarks Explained: MMLU, GPQA, HumanEval and SWE-bench

By LatestLLM Editorial · Published · Facts verified · 8 min read

Also called: MMLU, GPQA, HumanEval, SWE-bench, pass@k, LLM evaluation, leaderboard scores, benchmark contamination

In one line

A benchmark is a fixed set of questions or tasks with automatic scoring used to compare language models; its score is only as meaningful as the test and as precise as its question count.

Benchmarks, simply and technically

In plain English

To compare chatbots, researchers give them the same exam and count the marks. Each exam is called a benchmark: a fixed list of questions with known answers, scored automatically. Some test knowledge across school and professional subjects, some test whether code actually runs, some ask the model to fix real bugs in real software projects.

A leaderboard number is easy to read and easy to over-read. A model with 71% is not necessarily better than one with 69%, because a short exam has a margin of error, because models may have seen the questions during training, and because an exam only covers what it covers. Good scores are a useful clue, not a verdict.

Think of it like this: A benchmark is like a standardised exam. It lets you compare many students quickly and on equal terms, which is its strength. But a student can cram for the exam without learning the subject, a short exam has a wide margin of error, and an exam about maths says little about writing. Models differ from students in that they may have seen the actual exam paper in their training text, which is a problem called contamination.

Everyday example: Two models, one close score

On a 164-question coding test, model A scores 70% and model B scores 73%.

Input:

Model A: 70%, model B: 73% on 164 questions

Output:

The scores' margins of error overlap: not clearly different

What it shows: That 3-point gap is about five questions. On so few questions, chance alone can easily change five answers, so the test cannot honestly say B is better. On a 14,000-question test the same 3-point gap would be much more convincing.

Technically

Common benchmarks differ in what they sample. MMLU (Hendrycks et al. 2020) covers 57 tasks with 15,908 questions in total and a 14,079-question test set. GPQA contains 448 multiple-choice questions written by domain experts in biology, physics and chemistry; PhD-level experts reached 65% and skilled non-experts with web access 34%, and its Diamond subset has 198 questions. HumanEval (Chen et al. 2021) has 164 hand-written Python problems checked by unit tests. SWE-bench has 2,294 problems drawn from real GitHub issues across 12 Python repositories, and OpenAI's SWE-bench Verified keeps 500 samples verified as non-problematic by human annotators.

A score is a sample proportion, so it has sampling error: for accuracy p on n independent questions the standard error is about sqrt(p(1 − p) / n). Code benchmarks often report pass@k, the chance that at least one of k sampled solutions passes the tests, estimated without bias as 1 − C(n − c, k) / C(n, k) from n samples with c correct (Chen et al. 2021). Other threats are contamination, where test items appear in training data, prompt and format sensitivity, and saturation, where top models are near the ceiling so the test stops discriminating.

Technical example: How much noise is in a score?

Wilson 95% intervals for a 70% score on six benchmarks of different sizes, and the unbiased pass@k estimator for 200 samples of which 40 pass.

Code (python):

from math import comb, sqrt

def wilson(p, n, z=1.96):
    centre = (p + z * z / (2 * n)) / (1 + z * z / n)
    half = z * sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / (1 + z * z / n)
    return centre - half, centre + half

for name, n in [("MMLU test", 14079), ("SWE-bench", 2294), ("SWE-bench Verified", 500),
                ("GPQA main", 448), ("GPQA Diamond", 198), ("HumanEval", 164)]:
    lo, hi = wilson(0.70, n)
    print(f"{name:19s} n={n:>6,}: 70% could be {100 * lo:.1f}% to {100 * hi:.1f}% (+/-{50 * (hi - lo):.1f})")

n, c = 200, 40
for k in (1, 10, 100):
    print(f"pass@{k} with {c} of {n} samples correct: {1 - comb(n - c, k) / comb(n, k):.3f}")

Output:

MMLU test           n=14,079: 70% could be 69.2% to 70.8% (+/-0.8)
SWE-bench           n= 2,294: 70% could be 68.1% to 71.8% (+/-1.9)
SWE-bench Verified  n=   500: 70% could be 65.8% to 73.9% (+/-4.0)
GPQA main           n=   448: 70% could be 65.6% to 74.1% (+/-4.2)
GPQA Diamond        n=   198: 70% could be 63.3% to 76.0% (+/-6.3)
HumanEval           n=   164: 70% could be 62.6% to 76.5% (+/-6.9)
pass@1 with 40 of 200 samples correct: 0.200
pass@10 with 40 of 200 samples correct: 0.899
pass@100 with 40 of 200 samples correct: 1.000

What it shows: A 70% score is known to within 0.8 points on MMLU but to within about 7 points on HumanEval (62.6% to 76.5%) and 6 points on GPQA Diamond, so differences of a few points on the small sets are not reliable. The pass@k lines show why sampling matters for code: when 40 of 200 samples work, a single try succeeds 20% of the time, ten tries about 90% and a hundred tries effectively always.

How precise is a benchmark score?. Two sliders set the scores of two models. For each of six real benchmarks, drawn bars show the 95% interval each score could hide given the number of questions, and a label says whether the two intervals overlap. Benchmarks with fewer questions have wider intervals. Question counts: MMLU test 14,079 and GPQA main 448 and Diamond 198 (papers), SWE-bench 2,294 (paper), SWE-bench Verified 500 (OpenAI), HumanEval 164 (paper); Wilson 95% intervals.

What benchmarks measure

In plain English: Each benchmark is a different kind of exam. One checks school-level and professional knowledge. One uses graduate-level science questions designed to be hard to look up. One asks for working code. One asks the model to fix an actual bug in a real project.

Technically:

MMLU measures multitask accuracy over 57 subjects from elementary mathematics to law; its authors found that the largest GPT-3 model improved over random chance by almost 20 percentage points and that models were lopsided across tasks. GPQA's questions are meant to be Google-proof: skilled non-experts with unrestricted web access reached only 34% accuracy, while PhD-level experts reached 65%.

HumanEval and SWE-bench move from answering to doing. HumanEval checks functional correctness of short functions against unit tests. SWE-bench gives a codebase and an issue description, and a model's patch is judged by whether tests that should pass do; it contains 2,294 problems from 12 popular Python repositories.

Scores are samples

In plain English: A benchmark score is an estimate from a limited number of questions, so it comes with a margin of error. The smaller the test, the wider the margin.

Technically:

Treating each question as an independent trial, the standard error of an accuracy p is sqrt(p(1 − p)/n), and a 95% interval is about ±2 standard errors. At 70% on n = 164 that is about ±7 points, on n = 14,079 about ±0.8. Wilson intervals, used in the figure, behave better near 0% and 100%.

When two models answer the same questions, a paired test is sharper than comparing intervals, because both tend to fail the same hard questions. Intervals that overlap do not prove two models are equal, but a gap well inside the margin should not be reported as a ranking.

What is a confidence interval?

A range that, under the usual assumptions, contains the true score about 95% of the time if the test were repeated with new questions.

pass@k and agent benchmarks

In plain English: For code, one try may not tell the whole story. A model that solves a problem one time in five is useful if you can run the tests and try again. pass@k measures exactly that.

Technically:

Chen et al. report that Codex solved 28.8% of HumanEval problems with one sample and 70.2% with 100 samples per problem, showing how strongly repeated sampling helps. The unbiased estimator draws n ≥ k samples per problem, counts c that pass, and computes 1 − C(n − c, k)/C(n, k), averaged over problems; a numerically stable implementation avoids huge binomials.

Agentic benchmarks such as SWE-bench measure end-to-end task completion, which depends on the model, the scaffold of tools and prompts around it and the compute budget. Results are therefore comparable only when those are reported, and OpenAI's SWE-bench Verified exists because some original problems were underspecified or had unfair tests.

Limits of leaderboards

In plain English: A high score can mean the model is good, or that it has seen the answers, or that it has learned the exam's format. Treat any single number with caution.

Technically:

Contamination occurs when benchmark items appear in pre-training data; because web-scale corpora are huge, public test sets are likely to leak, inflating scores without improving ability. Results are also sensitive to the prompt, the number of examples shown, the answer format and the sampling settings, which makes numbers from different sources hard to compare.

Benchmarks saturate: when top models score near the ceiling, the test no longer separates them. Evaluators respond with harder sets, private test sets, live human-preference rankings such as Chatbot Arena, and domain-specific tests of their own.

Common misconceptions

  • Myth: A higher benchmark score always means a better model for my task.

    Reality: A benchmark covers only what it tests. A model's ranking on your own task can differ, so try it on your data.

  • Myth: A 2-point gap on a leaderboard is meaningful.

    Reality: On small test sets such as HumanEval or GPQA Diamond a gap of a few points is within the noise.

  • Myth: Benchmarks cannot be gamed.

    Reality: Contamination, test-set tuning and prompt tricks can inflate scores, which is why scores should be treated as a clue, not proof.

Key takeaways

  • A benchmark is a fixed test with automatic scoring; different benchmarks measure knowledge, coding, expert reasoning or software engineering.
  • Size matters: HumanEval has 164 problems, GPQA Diamond 198, SWE-bench Verified 500 and MMLU about 14,000 test questions, so a few points on the small ones can be chance.
  • pass@k scores code by the chance that at least one of k samples passes its tests, so it depends on how many tries are allowed.
  • Contamination, prompt sensitivity and saturation limit what a leaderboard gap means; use several benchmarks and your own tests.

Frequently asked questions

What is MMLU?

A benchmark of multiple-choice questions across 57 subjects, with 15,908 questions in total and a test set of 14,079.

What is GPQA?

A set of 448 graduate-level multiple-choice science questions written by experts and designed to be hard to answer by searching the web.

What does pass@k mean?

The probability that at least one of k sampled solutions passes the problem's unit tests.

What is SWE-bench?

A benchmark of 2,294 real GitHub issues from 12 Python repositories, where the model must edit a codebase to resolve the issue.

What is benchmark contamination?

When test questions appear in a model's training data, so a high score may reflect memorisation instead of ability.

Sources

Facts last verified November 23, 2026.

Next concept: Elo and Arena ratings

Learn next

  • Elo and Arena ratings (Intermediate): An Arena rating ranks language models from votes in blind pairwise comparisons, turning wins and losses into a score where a rating gap predicts how often one model beats another.
  • Hallucination (Beginner): A hallucination is a fluent, confident statement from a language model that is not true: the model produces plausible text and is rewarded for guessing over admitting it does not know.
  • Scaling laws (Advanced): Scaling laws are empirical formulas showing that a language model's loss falls smoothly as a power of its parameters, training tokens and compute, and they guide how to split a budget.