GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solvers

Qintong Li, Leyang Cui, Xueliang Zhao, Lingpeng Kong, Wei Bi · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable proficiency in solving mathematical word problems, with top-tier models achieving near-perfect scores on standard benchmarks like GSM8K. However, a critical question remains: do these models truly understand mathematical concepts, or are they merely sophisticated pattern matchers exploiting shortcuts in their training data?

Recent evidence suggests a "robustness gap" where models fail when faced with minor perturbations. To investigate this, we introduce GSM-PLUS, a massive adversarial benchmark comprising over 10,000 question variations. Our findings reveal that even state-of-the-art models like GPT-4 exhibit significant performance declines when their reliance on superficial patterns is challenged.

The Robustness Gap in Mathematical Reasoning

Standard benchmarks like GSM8K have become increasingly saturated, with many models hitting 90% accuracy or higher. This high performance creates an illusion of competence. In reality, these models are often fragile; a simple change in wording, the addition of a distracting sentence, or a shift in numerical format can cause the reasoning chain to collapse.

GSM-PLUS addresses this by systematically testing whether LLMs can maintain performance across variations that preserve the underlying mathematical logic while altering the presentation, data, or logical direction of the problem.

The GSM-PLUS Framework

To create a rigorous evaluation suite, we developed 10,552 variations based on the 1,319 original GSM8K test questions. Inspired by George Polya’s problem-solving principles, we identified five key perspectives for mathematical variation:

  1. Numerical Variation: Altering numbers or their formats (e.g., converting integers to decimals) to ensure the model isn't overfit to specific numerical patterns.
  2. Arithmetic Variation: Increasing complexity by adding extra steps or reversing the problem logic (e.g., providing the final result and asking for an initial variable).
  3. Problem Understanding: Rephrasing the text or changing the narrative context without altering the core mathematical logic.
  4. Distractor Insertion: Introducing irrelevant but topic-related information to test the model's ability to filter out noise.
  5. Critical Thinking: Removing essential information to determine if the model can identify a problem as unsolvable, rather than hallucinating a numerical answer.

These variations were initially generated using GPT-4 and subsequently refined by human annotators to ensure logical consistency and high quality.

Methodological Innovation: Compositional Prompting (COMP)

Beyond benchmarking, we propose Compositional Prompting (COMP), a strategy designed to enhance robust reasoning. Unlike standard "Least-to-Most" prompting, COMP forces the model to work iteratively through three distinct phases for every step: generating a subgoal, performing the specific calculation, and verifying the step before proceeding. This structured approach aims to mitigate the accumulation of errors in complex multi-step problems.

Key Insights and Results

The Performance Drop Rate (PDR)

Our evaluation of 25 LLMs confirms a universal decline in performance when moving from the original GSM8K "seed" questions to the GSM-PLUS variations.

  • GPT-4 emerged as the most robust model but still experienced a Performance Drop Rate (PDR) of 8.23%.
  • Open-Source Models (such as Llama-2-70B and Mistral-7B) proved much more fragile, with PDRs frequently exceeding 30%.

The "Reversal Curse" and Sycophancy

Two specific failure modes were particularly prominent. First, models struggle significantly with "Reversing Operations." While they can easily calculate a total from parts, they often fail when asked to derive a starting variable from a known total. Second, most models exhibit "mindless sycophancy" in the Critical Thinking category; instead of identifying that a problem lacks sufficient data, they attempt to provide a numerical answer, failing to recognize the logical impossibility.

Prompting and Fine-Tuning

The COMP method provided a notable boost, improving GPT-3.5-Turbo’s accuracy on GSM-PLUS by 4.7% over standard prompting. Interestingly, our analysis of Supervised Fine-Tuning (SFT) suggests that while SFT can inflate benchmark scores, it does not necessarily improve fundamental robustness. The stability of a model appears to depend more on its base architecture and pre-training than on task-specific fine-tuning.

Human Baseline

In a stark contrast to LLMs, human performance remained remarkably stable. Human annotators actually showed a slight increase in accuracy on perturbed questions, likely due to the increased cognitive focus required to parse the variations, highlighting the fundamental difference between human reasoning and current LLM pattern matching.

Conclusion

GSM-PLUS reveals that current LLMs are far from achieving human-level robustness in mathematical reasoning. While models are becoming better at solving specific types of problems, they remain susceptible to minor adversarial changes. Future work must focus on moving beyond grade-school mathematics to higher-level reasoning and developing more sophisticated metrics to evaluate the entire reasoning chain rather than just the final output.

Summary updated

BibTeX
@inproceedings{li2024gsm,
  author = {Qintong Li and Leyang Cui and Xueliang Zhao and Lingpeng Kong and Wei Bi},
  title = {{GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solvers}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.163},
}
Figure