Evaluating Language Models

Matthew Sharp, LTK23:17 · May 2024 · 282 views
Thumbnail for Evaluating Language Models Watch on YouTube
TL;DR
  1. 1

    Language model benchmarks usually rely on multiple-choice tests that do not match how models are used in production.

  2. 2

    Benchmark datasets focus heavily on standardized tests while leaving responsible AI and bias underrepresented.

  3. 3

    The community needs better metrics and openly available datasets, especially for evaluating harmful bias and changing language.

Summary

Matthew Sharp argues that language model evaluation has become too focused on easy-to-compare benchmark scores. Most popular benchmarks use multiple-choice questions or standardized tests, even though production systems generate open-ended text. Metrics such as BLEU, ROUGE, toxicity, sentiment, and readability each measure narrow aspects of an output, and their usefulness depends on the application. Sharp also discusses responsible AI datasets that test stereotypes around gender, religion, and occupations, but says many research datasets are not released. Continuous production evaluation creates another problem: teams may fine-tune models against public benchmarks until the models overfit them. Language changes over time, so a benchmark can also become stale. Sharp's conclusion is a call for the community to create better metrics, publish more datasets, and give responsible AI evaluation more attention.

Key ideas
02:08

Benchmarks are waypoints, so teams need to choose them carefully

Sharp compares benchmarks to waypoints in Zelda. They give researchers a destination, and the industry then optimizes models to reach it. A benchmark contains a metric and a dataset, but both need to match the behavior being evaluated. If a benchmark measures the wrong thing, improving the score can move the model away from useful production behavior. Sharp says the repeated cycle of training models against available benchmarks makes the choice of benchmark especially important.

03:29

Open-ended language makes quality difficult to compare

Sharp gives an example where two models answer the question, "Who is Steamboat Willie?" with different responses. Both answers can be good while emphasizing different facts. This makes simple comparison difficult. BLEU measures precision by checking how many generated words appear in a reference answer. ROUGE measures recall by checking how many words from the human answer appear in the generated text. These metrics still require human reference text and do not fully capture whether an answer is useful.

06:07

Multiple-choice accuracy dominates despite poor production fit

Sharp says that many current benchmarks ignore the available language metrics and instead ask models to select A, B, C, or D. He considers this a poor model of production because users rarely ask a language model multiple-choice questions. The Hugging Face Open LLM leaderboard illustrates the pattern, with benchmarks such as ARC, HellaSwag, MMLU, and grade-school math. These tests are popular partly because they produce a simple accuracy score.

07:33

Standardized tests have displaced more targeted datasets

Sharp says the majority of language model benchmarks now use standardized tests. Older datasets were designed to expose particular weaknesses, but models quickly surpassed many of them. Researchers then turned to tests such as the SAT or professional exams because they were readily available. Sharp calls this lazy because it avoids carefully asking where a model performs well or poorly. A benchmark can be easy to run while saying little about the system a team actually plans to deploy.

08:12

Responsible AI evaluation needs more public data

Sharp says responsible AI has too few benchmarks even though the basic testing approach is understood. A dataset might ask a model to complete "The woman is a..." and "The man is a..." with a profession, then examine differences in the results. Similar prompts can test associations involving religion, occupations, and stereotypes. He names WinoBias, Crows, and BBQ as useful datasets, but says many papers do not release their data. That leaves the open source community without enough material for comparison.

09:39

Production monitoring can cause benchmark overfitting

Language changes through new slang, technologies, and cultural references, so teams may try to run benchmarks every week in production. Sharp warns that this creates data leakage and encourages overfitting. When a model performs badly on a benchmark, teams retrain or fine-tune it to improve that score. Repeating this process makes the benchmark less informative, while the model becomes optimized for the test rather than for the actual product behavior.

19:04

Evaluation should match the use case and its failure modes

In the discussion after the talk, Sharp says BLEU and ROUGE require choices about word connections and different metric versions. Teams need to understand their data and use case before selecting a configuration. Demetrios Brinkmann also points out that survey respondents cared most about accuracy, hallucinations, truthfulness, and factuality. The discussion reinforces Sharp's point that a public benchmark can be convenient without being useful for a particular application.

"We need everyone to really start thinking about how to make better metrics, how to make better data sets, how to make better benchmarks."11:36
Who should watch
  • You are building an LLM product and need to choose evaluations that resemble real user interactions.
  • Your team relies on public leaderboards or standardized tests and wants to understand what those scores leave out.
  • You are working on bias or responsible AI evaluation and need examples of dataset gaps and public resources.