mlsanityData to 14 Oct 2026

Exploring the Compositional Deficiency of Large Language Models in Mathematical Reasoning

arXiv 2405.06680 ↗First posted 5 May 2024cs.CL cs.AIcited by 15

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Human cognition exhibits systematic compositionality, the algebraic ability to generate infinite novel combinations from finite learned components, which is the key to understanding and reasoning about complex logic. In this work, we investigate the compositionality of large language models (LLMs) in mathematical reasoning. Specifically, we construct a new dataset textscMathTrap by introducing carefully designed logical traps into the problem descriptions of MATH and GSM8K. Since problems with logical flaws are quite rare in the real world, these represent "unseen" cases to LLMs. Solving these requires the models to systematically compose (1) the mathematical knowledge involved in the original problems with (2) knowledge related to the introduced traps. Our experiments show that while LLMs possess both components of requisite knowledge, they do not spontaneously combine them to handle these novel cases. We explore several methods to mitigate this deficiency, such as natural language prompts, few-shot demonstrations, and fine-tuning. Additionally, we test the recently released OpenAI o1 model and find that human-like `slow thinking' helps improve the compositionality of LLMs. Overall, systematic compositionality remains an open challenge for large language models.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 18 of its 40 references that are in the map. First posted on arXiv 5 May 2024.

Builds on

18 of 40 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Dataset15 Feb
  2. 2023Llemma: An Open Language Model For Mathematics16 Oct
  3. 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct18 Aug

Other references · 15

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  3. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  4. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  5. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
  6. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  7. 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 318
  8. 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 246
  9. 2024The pitfalls of next-token predictioncited by 160
  10. 2022LAMBADA: Backward Chaining for Automated Reasoning in Natural Languagecited by 66
  11. 2024Training Large Language Models for Reasoning through Reverse Curriculum Reinforcement Learningcited by 65
  12. 2023Self-Polish: Enhance Reasoning in Large Language Models via Problem Refinementcited by 43
3 more
  1. 2022On the Compositional Generalization Gap of In-Context Learningcited by 24
  2. 2022RobustLR: Evaluating Robustness to Logical Perturbation in Deductive Reasoningcited by 22
  3. 2023Humans in Humans Out: On GPT Converging Toward Common Sense in both Success and Failurecited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 7.

15 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Large Language Models and Mathematical Reasoning Failures
  2. 2024Large Language Models for Mathematical Reasoning: Progresses and Challenges
  3. 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs
  4. 2026The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models
  5. 2025A Survey on Large Language Models for Mathematical Reasoning
  6. 2025Atomic Thinking of LLMs: Decoupling and Exploring Mathematical Reasoning Abilities
  7. 2026Mathematical Reasoning in Large Language Models: Benchmarks, Architectures, Evaluation, and Open Challenges
  8. 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges