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

Abstract

While Large Language Models (LLMs) have achieved high scores on standard mathematical benchmarks like GSM8K, their true reasoning capabilities remain a subject of debate. This paper introduces GSM-PLUS, a large-scale adversarial dataset comprising over 10,000 questions designed to evaluate the robustness of LLMs. By systematically perturbing existing problems, we reveal a significant "robustness gap" where models fail on minor variations that do not challenge human solvers. We also propose Compositional Prompting (COMP), an iterative method that improves model performance by enforcing systematic problem decomposition.

The Fragility of Mathematical Reasoning

Recent advancements in LLMs, such as GPT-4 and specialized open-source models, have led to near-perfect scores on the GSM8K benchmark. However, these high scores may be misleading, potentially reflecting "shortcut learning" or data leakage rather than genuine mathematical understanding. A robust solver should maintain accuracy even when a problem is phrased differently or when numerical values are changed.

An example of an adversarial perturbation where a model correctly solves a standard problem but fails when a "return" condition is introduced, changing the direction of travel.

As illustrated in Figure 1, a model can correctly calculate distance in a standard "walking away" scenario but fail when the context changes to "returning home," even though the arithmetic operations required are nearly identical. This fragility suggests that LLMs often rely on superficial patterns rather than logical reasoning.

The GSM-PLUS Benchmark

To quantify this lack of robustness, we developed GSM-PLUS, an adversarial extension of GSM8K. The dataset includes 10,552 questions generated by perturbing 1,319 seed questions across eight distinct categories:

  1. Numerical Variation: Swapping integers for decimals or larger digits.
  2. Arithmetic Variation: Adding extra steps or reversing operations (e.g., asking for unit cost instead of total cost).
  3. Problem Understanding: Rephrasing text without altering logic.
  4. Distractor Insertion: Adding irrelevant information.
  5. Critical Thinking: Removing necessary information to test if the model identifies the problem as unsolvable.

Our pipeline utilized GPT-4 for initial generation, followed by a rigorous human-in-the-loop refinement process where annotators revised approximately 19% of the questions to ensure logical consistency and appropriate difficulty.

Compositional Prompting (COMP)

In addition to the benchmark, we propose COMP (Compositional Prompting). Unlike standard Chain-of-Thought (CoT) prompting, COMP requires the model to follow a structured, iterative process:

  • Premise Extraction: Identify all given facts.
  • Subgoal Generation: Determine the immediate next logical step.
  • Calculation: Solve for the specific subgoal.
  • Verification: Confirm the subgoal's result before proceeding.

This method encourages models to think more systematically, reducing the likelihood of cascading errors in complex multi-step problems.

Experimental Results and Analysis

Our evaluation of over 20 LLMs reveals a stark "robustness gap." While human performance remains stable at approximately 98% across all variations, LLMs show significant performance drops.

Performance of various LLMs across the eight perturbation categories in GSM-PLUS, highlighting the significant robustness gap compared to human performance.

Key Findings:

  • The Robustness Gap: GPT-4 proved to be the most resilient, with a Performance Drop Rate (PDR) of only 8.23%. In contrast, open-source models like Llama-2 and Mistral experienced PDRs between 30% and 40%.
  • Logic vs. Numbers: Models are generally resilient to numerical changes but struggle significantly with "Arithmetic Variation" and "Critical Thinking." In cases of missing information, most models hallucinate values rather than identifying the problem as unsolvable.
  • Prompting Gains: COMP prompting improved GPT-3.5-Turbo's accuracy on GSM-PLUS by 4.7% over standard Least-to-Most prompting, demonstrating the value of structured decomposition.

Conclusion

GSM-PLUS provides a more rigorous standard for evaluating mathematical reasoning in LLMs. Our findings indicate that current models are heavily dependent on pattern matching and lack the flexible reasoning required for true mathematical robustness. Future work should focus on closing this gap through more diverse training data and improved reasoning architectures.

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