Language model benchmark

From testwiki
Jump to navigation Jump to search

Template:Short description Language model benchmarks are standardized tests designed to evaluate the performance of language models on various natural language processing tasks. These tests are intended for comparing different models' capabilities in areas such as language understanding, generation, and reasoning.

Benchmarks generally consist of a dataset and corresponding evaluation metrics. The dataset provides text samples and annotations, while the metrics measure a model's performance on tasks like question answering, text classification, and machine translation. These benchmarks are developed and maintained by academic institutions, research organizations, and industry players to track progress in the field.

Overview

Performance of AI models on various benchmarks from 1998 to 2024.

Types

Benchmarks may be described by the following adjectives, not mutually exclusive:

  • Classical: These tasks are studied in natural language processing, even before the advent of deep learning. Examples include the Penn Treebank for testing syntactic and semantic parsing, as well as bilingual translation benchmarked by BLEU scores.
  • Question answering: These tasks have a text question and a text answer, often multiple-choice.
  • Omnibus: An omnibus benchmark combines many benchmarks, often previously published. It is intended as an all-in-one benchmarking solution.
  • Reasoning: These tasks are usually in the question-answering format, but are intended to be more difficult than standard question answering.
  • Multimodal: These tasks require processing not only text, but also other modalities, such as images and sound. Examples include OCR and transcription.
  • Agency: These tasks are for a language-model–based software agent that operates a computer for a user, such as editing images, browsing the web, etc.
  • Adversarial: A benchmark is "adversarial" if the items in the benchmark are picked specifically so that certain models do badly on them. Adversarial benchmarks are often constructed after SOTA models have saturated a benchmark, to renew the benchmark. A benchmark is "adversarial" only at a certain moment in time, since what is adversarial may cease to be adversarial as newer SOTA models appear.

The boundary between a benchmark and a dataset is not sharp. Generally, a dataset contains three "splits": training, test, validation. Both the test and validation splits are essentially benchmarks. In general, a benchmark is distinguished from a test/validation dataset in that a benchmark is typically intended to be used to measure the performance of many different models that are not trained specifically for doing well on the benchmark, while a test/validation set is intended to be used to measure the performance of models trained specifically on the corresponding training set. In other words, a benchmark may be thought of as a test/validation set without a corresponding training set.

Conversely, certain benchmarks may be used as a training set, such as the One Billion Word Benchmark, which in modern language is just the negative log likelihood loss on a pretraining set with 1 billion words.[1] Indeed, the distinction between benchmark and dataset in language models became sharper after the rise of the pretraining paradigm.

Lifecycle

Generally, the life cycle of a benchmark consists of the following steps:[2]

  • Inception: A benchmark is published. It can be simply given as a demonstration of the power of a new model (implicitly) that others then picked up as a benchmark, or as a benchmark that others are encouraged to use (explicitly).
  • Growth: More papers and models use the benchmark, and the performance on the benchmark grows.
  • Maturity, degeneration or deprecation: A benchmark may be saturated, after which researchers move on to other benchmarks. Progress on the benchmark may also be neglected as the field moves to focus on other benchmarks.
  • Renewal: A saturated benchmark can be upgraded to make it no longer saturated, allowing further progress.

Construction

Like datasets, benchmarks are typically constructed by several methods, individually or in combination:

  • Web scraping: Ready-made question-answer pairs may be scraped online, such as from websites that teach mathematics and programming.
  • Conversion: Items may be constructed programmatically from scraped web content, such as by blanking out named entities from sentences, and asking the model to fill in the blank. This was used for making the CNN/Daily Mail Reading Comprehension Task.
  • Crowd sourcing: Items may be constructed by paying people to write them, such as on Amazon Mechanical Turk. This was used for making the MCTest.

Evaluation

Generally, benchmarks are fully automated. This limits the questions that can be asked. For example, with mathematical questions, "proving a claim" would be difficult to automatically check, while "calculate an answer with a unique integer answer" would be automatically checkable. With programming tasks, the answer can generally be checked by running unit tests, with an upper limit on runtime.

The benchmark scores are of the following kinds:

  • pass@n: The model is given n attempts to solve each problem. If any attempt is correct, the model earns a point. The pass@n score is the model's average score over all problems.
  • k@n: The model makes n attempts to solve each problem, but only k attempts out of them are selected for submission. If any submission is correct, the model earns a point. The k@n score is the model's average score over all problems.
  • cons@n: The model is given n attempts to solve each problem. If the most common answer is correct, the model earns a point. The cons@n score is the model's average score over all problems. Here "cons" stands for "consensus" or "majority voting".[3]

The pass@n score can be estimated more accurately by making N>n attempts, and use the unbiased estimator 1(Ncn)(Nn), where c is the number of correct attempts.[4]

For less well-formed tasks, where the output can be any sentence, there are the following commonly used scores: BLEU ROUGE, METEOR, NIST, word error rate, LEPOR, CIDEr,[5] SPICE,[6] etc.

Issues

  • error: Some benchmark answers may be wrong.[7]
  • ambiguity: Some benchmark questions may be ambiguously worded.
  • subjective: Some benchmark questions may not have an objective answer at all. This problem generally prevents creative writing benchmarks. Similarly, this prevents benchmarking writing proofs in natural language, though benchmarking proofs in a formal language is possible.
  • open-ended: Some benchmark questions may not have a single answer of a fixed size. This problem generally prevents programming benchmarks from using more natural tasks such as "write a program for X", and instead uses tasks such as "write a function that implements specification X".
  • inter-annotator agreement: Some benchmark questions may be not fully objective, such that even people would not agree with 100% on what the answer should be. This is common in natural language processing tasks, such as syntactic annotation.[8][9][10][11]
  • shortcut: Some benchmark questions may be easily solved by an "unintended" shortcut. For example, in the SNLI benchmark, having a negative word like "not" in the second sentence is a strong signal for the "Contradiction" category, regardless of what the sentences actually say.[12]
  • contamination/leakage: Some benchmark questions may have answers already present in the training set. Also called "training on the test set".[13][14] Some benchmarks (such as Big-Bench) may use a "canary string", so that documents containing the canary string can be voluntarily removed from the training set.
  • saturation: As time goes on, many models reach the highest performance level practically possible, and so the benchmark can no longer differentiate these models. For example, GLUE had been saturated, necessitating SuperGLUE.
  • Goodhart's law: If new models are designed or selected to score highly on a benchmark, the benchmark may cease to be a good indicator for model quality.[2]
  • cherry picking: New model publications may only point to benchmark scores on which the new model performed well, avoiding benchmark scores that it did badly on.

List of benchmarks

Language

Question answering

  • MCTest (Machine Comprehension Test): 500 fictional stories, each with 4 multiple-choice questions (with at least 2 requiring multi-sentence understanding), designed to be understandable by a 7-year-old. The vocabulary was limited to approximately 8,000 words probably known by a 7-year-old. The stories were written by workers on Amazon Mechanical Turk.[15]
  • SQuAD (Stanford Question Answering Dataset): 100,000+ questions posed by crowd workers on 500+ Wikipedia articles. The task is, given a passage from Wikipedia and a question, find a span of text in the text that answers the question.[16]
  • SQuAD 2.0: 50,000 unanswerable questions that look similar to SQuAD questions. Every such unanswerable question must be answered with an empty string. Written by crowd workers.[17]
  • WebQuestions: 6,642 question-answer pairs designed to be answerable with knowledge present in the 2013 version of Freebase.[18]
  • TriviaQA: 650K question-answer-evidence triples. Includes 95K question-answer pairs scraped from 14 trivia and quiz-league websites, and (on average 6) evidence documents for each pair, gathered by searching with Bing and Wikipedia.[19]
  • SearchQA: 140,461 question-answer pairs from the J! Archive, with each pair augmented with (on average 50) snippets and urls obtained by searching the question on Google.[20]
  • ARC (AI2 Reasoning Challenge): Multiple choice questions, with a Challenge Set (2590 questions) and an Easy Set (5197 questions). Designed specifically to supercede SNLI and SQuAD.[21]
  • HotpotQA: 113K multi-hop questions that require reading multiple Wikipedia-based passages to answer. They were produced by showing crowd workers multiple supporting context documents and asking them to produce questions that requiring reasoning about all of the documents.[22]
  • DROP (Discrete Reasoning Over the content of Paragraphs): 96,567 questions along with Wikipedia passages, especially from narratives rich in numerical information (like sports summaries and history), often involving multi-step numerical reasoning over several text spans. Adversarial against 2019 SOTA.[23]
  • C-Eval (Chinese Eval): 13948 multiple choice questions about in 52 subjects at 4 levels of difficulty. In Chinese.[24]
  • TruthfulQA: 817 questions in health, law, finance and politics with common misconceptions. Adversarial against GPT-3 and T5.[25]
  • OpenBookQA: 5960 multiple choice questions, each coming with an elementary level science fact (the "open book"). There are 1329 such facts in total.[26]
  • PIQA (Physical Interaction QA): 17951 two-choice questions. Each question gives a goal (like separating egg yolk from egg white with a water bottle), and 2 choices for accomplishing it.[27]
  • StrategyQA: 2,780 questions annotated with relevant passages from Wikipedia, such that the question require multi-hop reasoning over the passages to answer. For example, "Did Aristotle use a laptop?" is annotated with passages from the Wikipegia pages for "laptop" and "Aristotle".[28]
  • SimpleQA: 4,326 short questions that are answerable with knowledge as of 2023. Each answer is graded as either "correct", "incorrect", or "not attempted". Adversarial against GPT-4 specifically.[29]

Others

  • WSC (Winograd schema challenge): 273 sentences with ambiguous pronouns. The task is to determine what the pronoun refers to.[30]
  • WinoGrande: A larger version of WSC with 44,000 items. Designed to be still challenging to the SOTA models of the time (2019) since the original had been saturated. This dataset consists of fill-in-the-blank style sentences, as opposed to the pronoun format of previous datasets.[31][32]
  • SNLI (Stanford Natural Language Inference: 570K human-written English sentence pairs manually labeled for balanced classification with the labels "entailment", "contradiction", and "neutral".[33][34]
  • MultiNLI (Multi-Genre Natural Language Inference): Similarly to SNLI, with 433K English sentence pairs from ten distinct genres of written and spoken English.[35]
  • CNN/Daily Mail Reading Comprehension Task: Articles from CNN (380K training, 3.9K development, 3.2K test) and Daily Mail (879K training, 64.8K development, 53.2K test) were scraped. The bullet point summaries accompanying the news articles were used. One entity in a bullet point was replaced with a placeholder, creating a cloze-style question. The goal is to identify the masked entity from the article.[36]
  • SWAG (Situations With Adversarial Generations): 113K descriptions of activities or events, each with 4 candidate endings; the model must choose the most plausible ending. Adversarial against a few shallow language models (MLP, bag of words, one-layer CNN, etc).[37]
  • HellaSwag (Harder Endings, Longer contexts, and Low-shot Activities for SWAG): A harder version of SWAG. Contains 10K items.[38][39]
  • RACE (ReAding Comprehension Examinations): 100,000 reading comprehension problems in 28,000 passages, collected from the English exams for middle and high school Chinese students in the age range between 12 to 18.[40]
  • LAMBADA: 10,000 narrative passages from books, each with a missing last word that humans can guess if given the full passage but not from the last sentence alone.[41]
  • IFEval (Instruction-Following Eval): 541 instructions to be followed, each containing at least one verifiable constraint, such as "mention the keyword of AI at least 3 times".[42]

Omnibus

Some benchmarks are "omnibus", meaning they are made by combining several previous benchmarks.

  • GLUE (General Language Understanding Evaluation): collection of 9 benchmarks designed for testing general language understanding. The tasks are in the format of sentence- or sentence-pair. There are over 1M items.[43][44]
  • SuperGLUE: An update to GLUE. Designed to be still challenging to the SOTA models of the time (2019) since the original had been saturated. Includes 8 additional tasks (e.g. logical reasoning, commonsense inference, coreference resolution).[45]
  • Big-Bench (Beyond the Imitation Game): A benchmark collection of 204 tasks.[46] A particular subset of 23 tasks is called BBH (Big-Bench Hard).[47]

Agency

  • GAIA: 450 questions with unambiguous answers that require information that can be obtained by browsing the Internet, requiring different levels of tooling and autonomy to solve. Divided into 3 difficulty levels.[48]
  • WebArena: 241 mock-up websites based on real-world websites (Reddit, GitLab, Magento's admin portal, etc), and 812 tasks to be performed on the websites. The tasks include information-seeking, site navigation, and content and configuration operation.[49]
  • Mind2Web: 2,350 tasks collected from 137 websites, and crowdsourced action sequences. The task is to reproduce the action sequence.[50]
  • OSWorld: 369 multimodal computer-using tasks, involving multiple real web and desktop apps and OS file I/O. In both Windows and Ubuntu. Each task includes an initial state setup configuration, and is tested by an execution-based evaluation script.[51]
  • Windows Agent Arena: 154 multimodal tasks with the same format as OSWorld. Only in Windows.[52]
  • WebVoyager: 643 multimodal tasks based on 15 popular websites. Evaluation is by screenshotting the action sequence and asking a vision language model to judge.[53]
  • TAU-bench (Tool-Agent-User benchmark, also written as τ-bench): Two environments (retail, airline booking) that test for an agent to fulfill user instructions, interactively over multiple turns of dialogue. The user is simulated by a language model.[54]

Context length

Some benchmarks were designed specifically to test for processing continuous text that is very long.

  • Long Range Arena: 6 synthetic tasks that required 1K to 16K tokens of context length to solve.[55]
  • Needle in a haystack tests: Not a specific benchmark, but a method. In this method, a long context window is filled with text, such as Paul Graham's essays, and a random statement is inserted. The task is to answer a question about the inserted statement.[56]
  • L-Eval: 2,000+ human-labeled query-response pairs over 508 long documents in 20 tasks, including diverse task types, domains, and input length (3K—200K tokens).[57]
  • InfiniteBench: 3946 items in 12 tasks from 5 domains (retrieval, code, math, novels, and dialogue) with context lengths exceeding 100K tokens.[58]
  • ZeroSCROLLS: 4,378 items in 6 tasks. Includes 6 tasks from SCROLLS and introduces 4 new datasets. Named "zero" because it was designed for zero-shot learning during the early days of pretraining paradigm, back when zero-shot capability was uncommon.[59]
  • LongBench: 4,750 tasks on 21 datasets across 6 task categories in both English and Chinese, with an average length of 6,711 words (English) and 13,386 characters (Chinese).[60] Updated with LongBench v2 that contained 503 more tasks, that require a context length ranging from 8K to 2M words, with the majority under 128K.[61][62]
  • RULER: 13 tasks in 4 categories (retrieval, multi-hop, aggregation, question answering). Each task is specified by a program which can generate arbitrarily long instances of each task on demand.[63]
  • LOFT (Long-Context Frontiers): 6 long-context task categories (text retrieval, visual retrieval, audio retrieval, retrieval-augmented generation, SQL-like dataset query, many-shot in-context learning) in 35 datasets and 4 modalities. Up to 1 million tokens.[64]

Reasoning

Mathematics

  • Alg514: 514 algebra word problems and associated equation systems gathered from Algebra.com.[65][66]
  • Math23K: 23,164 elementary school Chinese mathematical word problems, collected from various online educational websites.[67]
  • AQuA-RAT (Algebra Question Answering with Rationales): Also known as just "AQuA". 100,000 algebraic word problems with 5 choices per problem, and an annotation for the correct choice with natural language rationales. 34,202 "seed problems" were collected from many sources, such as GMAT and GRE, which were then expanded to the full dataset with Amazon Turk.[68]
  • GSM8K (Grade School Math): 8.5K linguistically diverse elementary school math word problems that require 2 to 8 basic arithmetic operations to solve.[69]
  • GSM1K: 1205 items with the same format and difficulty as GSM8K. More securely contained to avoid the data contamination concerns with the previous GSM8K.[70]
  • MATH: 12,500 competition-level math problems divided into difficulty levels 1 to 5 (as the Art of Problem Solving), with AIME problems being level 5. There are 1,324 level 5 items.[71]
  • MathQA: 37,200 word problems in English. Each problem came from AQuA-RAT, and annotated with an "operation program" which exactly specifies the mathematical operations required to solve the problem, written in a domain-specific language with 58 operators.[72] Has a variant, MathQA-Python, consisting of 23,914 problems, produced by taking the solutions to a subset of the MathQA dataset, and rewriting into Python.[73]
  • MathEval: An omnibus benchmark that contains 20 other benchmarks, such as GSM8K, MATH, and the math subsection of MMLU. Over 20,000 math problems. Difficulty ranges from elementary school to high school competition.[74]
  • TheoremQA: 800 questions that test for the use of 350 theorems from math, physics, electric engineering, computer science, and finance.[75]
  • MiniF2F (mini formal-to-formal): 488 Olympiad-level mathematics problems from AIME, AMC, and IMO, stated in formal languages (Metamath, Lean, Isabelle (partially) and HOL Light (partially)).[76]
  • U-MATH: 1100 math problems sourced from real-world university curricula, balanced across six subjects with 20% of problems including visual elements.[77]
  • Omni-MATH: 4428 competition-level math problems with human annotation.[78]
  • FrontierMath: Several hundred questions from areas of modern math that are difficult for professional mathematicians to solve. Many questions have integer answers, so that answers can be verified automatically. Held-out to prevent contamination.[79]
  • MathArena: Instead of a purpose-built benchmark, the MathArena benchmark simply takes the latest math competitions (AIME and HMMT) as soon as possible and uses those to benchmark LLMs, to prevent contamination.[80]

Programming

  • APPS: 10,000 problems from Codewars, AtCoder, Kattis, and Codeforces.[81]
  • MBPP (Mostly Basic Programming Problems): 974 short Python functions designed to be solved by entry-level programmers. Each comes with a text description and unit tests. They were written by an internal pool of crowdworkers who have basic knowledge of Python.[73]
  • HumanEval: 164 problems where the solution is always a python function, often just a few lines long.[4]
  • CodeElo: 387 contest problems from Codeforces during 2024, annotated with metadata such as contest divisions, problem difficulty ratings, and problem algorithm tags. Benchmarking is run by directly submitting to Codeforces, resulting in an Elo rating. Limited to 8 submissions per problem.[82]
  • SWE-bench: 2,294 software engineering problems drawn from real GitHub issues and corresponding pull requests across 12 popular Python repositories. Given a codebase and an issue, the task is to edit the codebase to solve the issue.[83] There are 2 subsets: Lite (300 problems that are faster to run), Verified (human-validated subset of 500 problems reviewed by software engineers).[84]
  • SWE-bench Multimodal: a variant of SWE-bench, with 619 task instances from 17 popular JavaScript repositories, each featuring images that are required for solving the task.[85]
  • SWE-Lancer: 1,488 freelance software engineering tasks from Upwork. Includes implementation tasks (from $50 bug fixes to $32,000 feature implementations) and managerial tasks, where the model must choose between technical implementation proposals.[86][87]
  • KernelBench: 250 PyTorch machine learning tasks, for which a CUDA kernel must be written.[88]

General

  • MMLU (Measuring Massive Multitask Language Understanding): 16,000 multiple-choice questions spanning 57 academic subjects including mathematics, philosophy, law, and medicine.[89] Upgraded to MMLU-Pro which increases the number of choices from 4 to 10, eliminated the trivial and noisy questions from MMLU, and added harder problems.[90]
  • MMMLU (Multilingual MMLU): The test set of MMLU, translated into 14 languages by professional human translators.[91]
  • CMMLU (Chinese MMLU): 1,528 multiple-choice questions across 67 subjects, 16 of which are "China-specific", like Classical Chinese. Some data collected from non-publicly available materials, mock exam questions, and questions from quiz shows to avoid contamination. More than 80% of the data was crawled from PDFs after OCR.[92]
  • MMMU (Massive Multi-discipline Multimodal Understanding): A vision-language version of MMLU. 11550 questions collected from college exams, quizzes, and textbooks, covering 30 subjects. The questions require image-understanding to solve. Includes multiple-choice questions and open-ended QA (which are scored by regex extraction). Human expert baseline is 89%.[93][94]
  • MMMU-Pro: 1730 multiple-choice questions in the same format as MMMU, designed to be adversarial against text-only models. Some problems in MMMU turned out to be answerable without looking at the images, necessitating MMMU-Pro. Each question has 10 choices, and presented in both text-image format, and screenshot/photo format.[95]
  • GPQA (Google-Proof Q&A): 448 multiple-choice questions written by domain experts in biology, physics, and chemistry, designed to be PhD-level. The "Diamond" subset contains the 198 hardest questions in it.[96] OpenAI found that human experts achieve an average score of 69.7% on the Diamond subset.[97]
  • SuperGPQA: 26,529 multiple-choice questions collected by domain experts in 285 graduate-level disciplines. The questions were collected by individuals with or pursuing a PhD and then refined and inspected with the help of large language models.[98]
  • AGIEval: questions from 20 official, public, and high-standard admission and qualification exams, such as SAT, Gaokao, law school admission tests, math competitions, lawyer qualification tests, and national civil service exams.[99]
  • OlympicArena: 11,163 problems from 62 distinct Olympic competitions.[100]
  • OlympiadBench: 8,476 math and physics problems in English and Chinese, sourced from International Olympiads, Chinese Olympiads, and Gaokao.[101]
  • ARC-AGI (Abstraction and Reasoning Corpus for Artificial General Intelligence): Given three pairs of before-and-after diagrams of applying a rule, apply the same rule to the fourth before-diagram. It is similar to a Raven's Progressive Matrices test.[102]
  • LiveBench: A series of benchmarks released monthly, including high school math competition questions, competitive coding questions, logic puzzles, and other tasks.[103]
  • Humanity's Last Exam: 3,000 questions across over a hundred academic subjects, with a held-out private dataset left unreleased to prevent contamination. 10% of questions requires both image and text comprehension and the rest are fully text-based. 80% of questions are scored by exact-match, and the rest are multiple-choice.[104]

See also

References

  1. Template:Citation
  2. 2.0 2.1 Template:Citation
  3. Template:Citation
  4. 4.0 4.1 Template:Citation
  5. Template:Cite journal
  6. Template:Cite book
  7. Template:Citation
  8. Template:Cite journal
  9. Template:Citation
  10. Template:Cite book
  11. Template:Cite journal
  12. Template:Citation
  13. Template:Cite book
  14. Template:Citation
  15. Template:Cite book
  16. Template:Citation
  17. Template:Citation
  18. Template:Cite journal
  19. Template:Citation
  20. Template:Citation
  21. Template:Citation
  22. Template:Citation
  23. Template:Citation
  24. Template:Cite web
  25. Template:Citation
  26. Template:Citation
  27. Template:Cite journal
  28. Template:Cite journal
  29. Template:Citation
  30. Template:Cite conference
  31. Template:Cite journal
  32. Template:Cite arXiv
  33. Template:Cite book
  34. Template:Cite web
  35. Template:Citation
  36. Template:Citation
  37. Template:Citation
  38. Template:Citation
  39. Template:Cite web
  40. Template:Citation
  41. Template:Citation
  42. Template:Citation
  43. Template:Cite arXiv
  44. Template:Cite web
  45. Template:Citation
  46. Template:Citation
  47. Template:Citation
  48. Template:Citation
  49. Template:Citation
  50. Template:Cite journal
  51. Template:Cite web
  52. Template:Cite web
  53. Template:Citation
  54. Template:Citation
  55. Template:Citation
  56. https://x.com/GregKamradt/status/1722386725635580292
  57. Template:Cite journal
  58. Template:Citation
  59. Template:Citation
  60. Template:Citation
  61. Template:Cite web
  62. Template:Citation
  63. Template:Citation
  64. Template:Citation
  65. Template:Cite journal
  66. Template:Cite journal
  67. Template:Cite book
  68. Template:Cite journal
  69. Template:Citation
  70. Template:Citation
  71. Template:Citation
  72. Template:Citation
  73. 73.0 73.1 Template:Citation
  74. Template:Citation
  75. Template:Cite book
  76. Template:Citation
  77. Template:Citation
  78. Template:Citation
  79. Template:Citation
  80. Template:Cite web
  81. Template:Citation
  82. Template:Cite web
  83. Template:Citation
  84. Template:Cite web
  85. Template:Cite web
  86. Template:Citation
  87. Template:Citation
  88. Template:Citation
  89. Template:Citation
  90. Template:Citation
  91. Template:Cite web
  92. Template:Citation
  93. Template:Cite web
  94. Template:Citation
  95. Template:Citation
  96. Template:Citation
  97. Template:Cite web
  98. Template:Citation
  99. Template:Citation
  100. Template:Cite web
  101. Template:Citation
  102. Template:Cite web
  103. Template:Cite web
  104. Template:Cite web

Template:Natural Language Processing Template:Artificial intelligence navbox