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

Hugh Zhang, Jeff Da, Dean Lee, Vaughn Robinson, Catherine Wu, Will Song, Tiffany Zhao, Pranav Raja, Dylan Slack, Qin Lyu, Sean Hendryx, Russell Kaplan, Michele Lunati, Summer Yue · DOI

TL;DR

This paper introduces GSM1k, a new benchmark designed to rigorously test for data contamination in Large Language Models (LLMs) on grade school arithmetic problems. They found that many LLMs exhibit significant performance drops on GSM1k compared to GSM8k, suggesting they may have partially memorized GSM8k rather than possessing true reasoning abilities, though frontier models show minimal signs of overfitting.

What Problem Does This Paper Address?

LLMs have shown impressive performance on mathematical reasoning benchmarks like GSM8k. However, a growing concern is that this success might be due to "data contamination" – where benchmark questions or very similar examples are present in the LLMs' training data. This contamination allows models to "memorize" answers rather than genuinely reason, leading to an inflated perception of their capabilities. The authors aim to address this by creating a new benchmark that closely mirrors GSM8k in style and complexity but is carefully constructed to minimize the risk of contamination.

Methods

The core of the paper's methodology involves creating a new dataset, GSM1k, that is designed to be comparable to GSM8k across several metrics: human solve rates, number of solution steps, and answer magnitude. GSM1k was constructed entirely by human annotators, with strict instructions to avoid any LLM assistance or paraphrasing of existing benchmark problems. This rigorous human-only creation process is key to ensuring the dataset's novelty. The authors then evaluate a wide range of open- and closed-source LLMs on both GSM8k and GSM1k to measure performance differences. They also conduct analyses to correlate performance gaps with metrics like per-character log-likelihood to investigate the extent of memorization.

Datasets

  • GSM8k: The established benchmark for grade school math reasoning, used as a reference and for creating n-shot examples.
  • GSM1k (newly introduced): A dataset of 1205 grade school math problems, designed to mirror GSM8k's style and difficulty but created entirely by human annotators to mitigate data contamination.

Key Insights and Ideas

  • Widespread Data Contamination: The study provides strong evidence that many LLMs are indeed contaminated by benchmark data, showing significant performance drops (up to 8%) on the novel GSM1k dataset compared to GSM8k.
  • Memorization vs. Reasoning: The performance gap between GSM8k and GSM1k is positively correlated with a model's probability of generating GSM8k examples, suggesting that partial memorization of GSM8k is a significant factor in the observed overfitting.
  • Frontier Models Generalize: Notably, leading open- and closed-source LLMs (frontier models) show minimal signs of overfitting, indicating that they possess more robust reasoning capabilities.
  • Overfit Models Can Still Reason: Even heavily overfit models demonstrate the ability to solve novel math problems, suggesting that overfitting doesn't necessarily imply a complete lack of reasoning ability, but rather an overestimation of it on contaminated benchmarks.
  • Data Contamination Isn't the Whole Story: While data contamination is a major cause, the authors suggest other indirect means, like model builders selecting checkpoints based on benchmark performance, might also contribute to overfitting.

Key Results

  • Several families of models, including Phi and Mistral, show consistent evidence of overfitting across various model sizes and versions, with accuracy drops of up to 8% on GSM1k compared to GSM8k.
  • A positive Spearman's rank correlation (r² = 0.36) was found between a model's probability of generating GSM8k examples and its performance gap between GSM8k and GSM1k.
  • Frontier models exhibit minimal signs of overfitting, performing similarly on both GSM8k and GSM1k.
  • All models, even the most overfit ones, generally demonstrate generalization to novel math problems, though sometimes at slightly lower rates.

Limitations and Future Work

  • Dataset Release: GSM1k is not being released publicly at this time to prevent it from becoming contaminated itself. A release is planned under specific conditions (e.g., top models achieving 95% accuracy on GSM1k or by June 2025).
  • Benchmark Similarity: While extensive efforts were made to match GSM8k and GSM1k, they are only highly similar, not identically distributed.
  • Future Work: The authors plan to run recurring evaluations of major LLM releases and update their results. They also commit to open-sourcing their evaluation code.

Summary updated

BibTeX
@inproceedings{zhang2024careful,
  author = {Hugh Zhang and Jeff Da and Dean Lee and Vaughn Robinson and Catherine Wu and Will Song and Tiffany Zhao and Pranav Raja and Dylan Slack and Qin Lyu and Sean 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