NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models

Iman Mirzadeh, Keivan Alizadeh, Hooman Shahrokhi, Oncel Tuzel, Samy Bengio, Mehrdad Farajtabar

TL;DR

Large Language Models (LLMs) do not perform genuine logical reasoning when solving math problems; instead, they rely heavily on probabilistic pattern matching. By introducing GSM-Symbolic, a template-based variation of the popular GSM8K benchmark, researchers demonstrate that altering superficial elements like names and numbers—or adding completely irrelevant information—causes dramatic performance drops of up to 65% across state-of-the-art models.

What Problem Does This Paper Address?

The Grade School Math 8K (GSM8K) dataset has long been the gold standard for evaluating the mathematical reasoning capabilities of LLMs. While recent models boast near-perfect scores on this benchmark, it remains unclear whether these high marks reflect true logical comprehension or merely sophisticated pattern matching and data contamination.

Because GSM8K is a static dataset, models can inadvertently memorize its specific question structures during training. To determine if LLMs are truly capable of formal mathematical reasoning, the authors investigate how model performance shifts when questions undergo minor, non-essential modifications (such as changing names, altering numerical values, or adding irrelevant clauses).

Methods

The authors developed a programmatic pipeline to convert 100 core questions from the GSM8K test set into symbolic templates. Instead of static text, these templates define variables (e.g., names, items, numbers), specify value domains, and enforce mathematical conditions to ensure the generated questions remain realistic and solvable.

Figure 1: Illustration of the GSM-Symbolic template creation process. This dataset serves as a tool to investigate the presumed reasoning capabilities of LLMs, enabling the design of controllable mathematical reasoning evaluations with more reliable metrics. Our results reveal that all state-of- the-art LLMs exhibit significant performance variations, suggesting the fragility or lack of reasoning.

Using these templates, they generated 50 distinct variations for each question, creating a distribution of 5,000 total examples. They evaluated over 25 state-of-the-art open and closed models—including OpenAI’s GPT-4o and o1 series, Llama3, Gemma2, and Phi-3.5—using standard 8-shot Chain-of-Thought (CoT) prompting with greedy decoding.

Datasets

The paper utilizes and introduces several dataset variants:

  • GSM8K: The original static grade-school math benchmark used as a baseline.
  • GSM-Symbolic: The newly introduced benchmark consisting of diverse question variants generated from symbolic templates.
  • GSM-M1, GSM-P1, GSM-P2: Difficulty variants of GSM-Symbolic where clauses are either removed (-1) or added (+1, +2) to alter the complexity of the reasoning chain.
  • GSM-NoOp: A specialized dataset where a single, seemingly relevant but ultimately inconsequential statement (a "No-Op" or no-operation clause) is added to the question text. The correct mathematical solution should completely ignore this clause.

Key Insights and Ideas

  • Performance is a Distribution, Not a Single Metric: Evaluating a model on a single static dataset provides an incomplete picture. GSM-Symbolic reveals that an LLM's performance fluctuates significantly across different instantiations of the exact same problem template.
  • The Contamination Smoke Screen: For 21 out of 25 models tested, the original GSM8K benchmark score sat on the far-right (optimistic) tail of the GSM-Symbolic performance distribution. This strongly suggests that many models have overfitted to or been contaminated by the original GSM8K test set.
  • Names vs. Numbers: LLMs are relatively robust when you swap out proper names, but their performance degrades sharply when you change numerical values, even when the underlying arithmetic complexity remains identical.
  • The "Blind Operation" Flaw: LLMs struggle to discern what information is actually relevant to a problem. When given a narrative, they tend to blindly convert sentences into mathematical operations based on pattern matching rather than semantic understanding.

Key Results

  • Systemic Performance Drops: Every single tested model experienced a performance decline on GSM-Symbolic compared to the original GSM8K.
Figure 3: The performance of all state-of-the-art models on GSM-Symbolic drops compared to GSM8K. Later, we investigate the factors that impact the performance drops in more depth.
  • Catastrophic Failure on GSM-NoOp: When an irrelevant clause was introduced, performance plummeted across the board. For example, the lightweight Phi-3-mini suffered a massive 65.7% drop in accuracy. Even OpenAI's highly capable reasoning model, o1-preview, saw its performance drop by 17.5% because it blindly incorporated the irrelevant clause into its calculation steps.
  • Complexity Fragility: As the number of clauses increased from GSM-M1 to GSM-P2, average model accuracy decreased linearly while performance variance increased, underscoring that LLMs struggle to maintain coherence over longer reasoning chains.

Limitations and Future Work

The authors demonstrate that standard mitigation techniques fail to solve this fragility. Providing in-context examples of the same question template (NoOp-Symb) or examples containing similar irrelevant information (NoOp-NoOp) does not reliably restore model performance. Furthermore, fine-tuning models on simpler variations actually decreased their performance on more complex variations.

The paper concludes that scaling up training data or relying solely on probabilistic transformers may not bridge the gap to true logical reasoning. Future work must focus on developing new architectures or training paradigms capable of formal, human-like symbolic manipulation and context awareness.

Summary updated

BibTeX
@inproceedings{mirzadeh2025gsm,
  author = {Iman Mirzadeh and Keivan Alizadeh and Hooman Shahrokhi and Oncel Tuzel and Samy Bengio and Mehrdad Farajtabar},
  title = {{GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=AjXkRZIvjB},
}
Figure