Skip to content

Benchmark

Also called: benchmarks, AI benchmark, AI benchmarks

Published:

What does a benchmark measure?

A benchmark combines a fixed set of tasks, the data for those tasks and a scoring method. Because everyone runs the same test, results can be set side by side.

A well-known example for language models is MMLU. Published in 2020, it covers 57 tasks ranging from elementary mathematics and US history to computer science and law [1]. Its authors reported that most models of the time scored near random chance, while the largest GPT-3 model beat random chance by almost 20 percentage points on average [1].

Benchmarks are not only about accuracy. MLCommons' MLPerf suites measure how quickly systems train a model to a target quality or process inputs with a trained model, and its AILuminate benchmark assesses the safety of general-purpose chatbots [3].

Why isn't a single score enough?

The HELM project from Stanford researchers takes up that question. HELM tests 30 language models across 42 scenarios on seven metrics: accuracy, calibration, robustness, fairness, bias, toxicity and efficiency [2]. The authors found that before HELM, models had been evaluated on only 17.9% of the core scenarios on average, and they raised that to 96% [2]. Models had mostly been measured on different tests, which made comparison difficult.

How should benchmark results be read?

A score says something only about the tasks that test covers. A strong MMLU result does not show that a model is fast or safe; those are measured by other benchmarks [3]. When comparing results, read the benchmark's name and version together with the setting it was run in, such as zero-shot or few-shot.

Frequently asked questions

Does a high benchmark score mean a model is good at everything?

No. A score only applies to the tasks and metrics that benchmark covers.

Do benchmarks only measure accuracy?

No. Suites such as MLPerf measure speed, and others measure safety or fairness.

Sources

  1. Measuring Massive Multitask Language Understanding — arXiv
  2. Holistic Evaluation of Language Models — arXiv
  3. Benchmarks — MLCommons