A Careful Examination of Large Language Model Performance on Grade School Arithmetic

Hugh Zhang, Jeff Da, Dean Lee, Vaughn Robinson, Catherine Wu, William Song, Tiffany Zhao, Pranav Vishnu Raja, Charlotte Zhuang, Dylan Z Slack, Qin Lyu, Sean M. Hendryx, Russell Kaplan, Michele Lunati, Summer Yue

TL;DR

Researchers at Scale AI have introduced GSM1k, a new benchmark of 1,205 grade-school math problems designed to detect "dataset contamination" in Large Language Models (LLMs). By comparing performance on the well-known GSM8k benchmark against this new, unseen dataset, the study reveals that while frontier models (like GPT-4 and Claude 3) show genuine reasoning, several popular model families (like Phi and Mistral) appear to have partially memorized their way to high benchmark scores.

What Problem Does This Paper Address?

In the AI world, GSM8k is the "gold standard" for measuring an LLM's ability to perform multi-step elementary mathematical reasoning. However, because LLMs are trained on massive scrapes of the public internet, there is a high probability that the GSM8k questions and answers have "leaked" into the training data.

This creates a "Goodhart’s Law" situation: when a measure becomes a target, it ceases to be a good measure. If a model achieves 90% accuracy on GSM8k simply because it saw those exact problems during training (memorization), we aren't actually measuring its ability to reason. The authors sought to determine how much of current LLM performance is true reasoning versus sophisticated pattern matching of memorized data.

Methods

The authors commissioned GSM1k, a dataset built from scratch by human annotators to mirror the style, complexity, and difficulty of GSM8k. To ensure an "apples-to-apples" comparison, they rigorously matched GSM1k to GSM8k across several metrics:

  • Human Solve Rates: Ensuring humans find both sets equally difficult.
  • Step Count: Matching the number of logical steps required to reach a solution.
  • Answer Magnitude: Ensuring the numerical values involved are comparable.

The team then evaluated over 20 leading open- and closed-source models. To prove memorization was the culprit for performance gaps, they performed a log-likelihood analysis, measuring how "surprised" a model was by GSM8k questions. If a model assigns an unusually high probability to generating a specific GSM8k problem, it’s a strong indicator of contamination.

Key Insights and Ideas

  • The "Frontier" is Clean: The most advanced models—GPT-4, Gemini 1.5 Pro, and Claude 3—showed almost no performance drop between the old and new benchmarks. This suggests these models possess robust, generalizable reasoning capabilities.
  • Systematic Overfitting in Specific Families: Certain model families, particularly Phi and Mistral, showed consistent performance drops (up to 8%) across almost all model sizes. This suggests that the data used to train these specific lineages likely contained GSM8k examples.
Performance gap between GSM8k and GSM1k across notable models
  • Memorization $\neq$ Total Failure: Interestingly, even the most "overfit" models still solved over half of the GSM1k problems. This indicates that while they might be "gaming" the benchmark to look better than they are, they haven't lost the ability to reason entirely; their true skill level is just lower than their public scores suggest.
  • The "Outlier" Reward Models: The study found that models like Math-Shepherd-Mistral-7B-RL showed high overfit but low memorization probability. The authors hypothesize that these models might have "leaked" reasoning chains through synthetic data used during reinforcement learning, rather than direct text memorization.

Key Results

  • Performance Gaps: Some models performed up to 8% worse on GSM1k than on GSM8k.
  • Correlation: There is a positive relationship (Spearman’s $r^2 = 0.36$) between a model’s likelihood of having seen a GSM8k example and its performance gap on the new benchmark.
Correlation between log-likelihood and overfitting on GSM8k
  • Open-Source Gaming: Several models at the top of the Open LLM Leaderboard performed significantly worse on GSM1k, suggesting they may be optimized specifically to "rank" well on known benchmarks rather than to improve general intelligence.

Limitations and Future Work

The authors acknowledge that GSM1k is an approximation of GSM8k, not a perfect clone. While they matched many metrics, there could be subtle distributional shifts they didn't account for.

To prevent GSM1k from becoming contaminated itself, the authors have withheld the dataset from the public. They commit to releasing it only when open-source models reach 95% accuracy or by June 2025, whichever comes first. In the meantime, they offer an API for researchers to evaluate their models, a strategy that may become the new norm for "clean" benchmarking in the age of internet-scale training.

Summary updated

BibTeX
@inproceedings{zhang2024careful,
  author = {Hugh Zhang and Jeff Da and Dean Lee and Vaughn Robinson and Catherine Wu and William Song and Tiffany Zhao and Pranav Vishnu Raja and Charlotte Zhuang and Dylan Z Slack and Qin Lyu and Sean M. Hendryx and Russell Kaplan and Michele Lunati and Summer Yue},
  title = {{A Careful Examination of Large Language Model Performance on Grade School Arithmetic}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=RJZRhMzZzH},
}
Figure