Cited by 6Topic ModelingCognitive and developmental aspects of mathematical skillsNatural Language Processing Techniques

Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmetic

Open access
Yan, Yang, Lu, Yu, Xu, Renjun, Lan, Zhenzhong·2025·Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing

Abstract

Large language models (LLMs) achieve impressive results on advanced mathematics benchmarks but sometimes fail on basic arithmetic tasks, raising the question of whether they have truly grasped fundamental arithmetic rules or are merely relying on pattern matching.To unravel this issue, we systematically probe LLMs' understanding of two-integer addition (0 to 2 64 ) by testing three crucial properties: commutativity (A + B = B + A), representation invariance via symbolic remapping (e.g., 7 → Y), and consistent accuracy scaling with operand length.Our evaluation of 12 leading LLMs reveals a stark disconnect: while models achieve high numeric accuracy (73.8-99.8%),they systematically fail these diagnostics.Specifically, accuracy plummets to ≤ 7.5% with symbolic inputs, commutativity is violated in up to 20% of cases, and accuracy scaling is non-monotonic.Interventions further expose this pattern-matching reliance: explicitly providing rules degrades performance by 29.49%, while prompting for explanations before answering merely maintains baseline accuracy.These findings demonstrate that current LLMs address elementary addition via pattern matching, not robust rule induction, motivating new diagnostic benchmarks and innovations in model architecture and training to cultivate genuine mathematical reasoning.we release both our diagnostic dataset and the code for dataset generation at https://github.com/ kuri-leo/llm-arithmetic-diagnostic.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.18653/v1/2025.emnlp-main.681

Cites

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Numerical reasoning introduces further difficulties, especially when values must be compared, computed, or correctly grounded to specific entities and variables.

    “Numerical reasoning introduces further difficulties, especially when values must be compared, computed, or correctly grounded to specific entities and variables [16-18, 51, 52].”

    From Diagnosing the limits of large language models for structured scientific evidence extraction (2026) · cites this paper as [52]

    The Abstract and Conclusion report difficulties with two-integer addition, supporting the claim about computing values. The Limitations section says the synthetic tasks strip away contextual cues; the paper does not establish difficulties with comparing values or grounding them to specific entities and variables. (LLM, conf=0.87)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

No references could be resolved yet.

Research works printed but not linked: 30

  1. Marah Abdin, Jyoti Aneja, Harkirat Behl, Sébastien Bubeck, Ronen Eldan, Suriya Gunasekar, Michael Harrison, Russell J. Hewett, Mojan Javaheripi, Piero Kauffmann, James R. Lee, Yin Tat Lee, Yuanzhi Li, Weishung Liu, Caio C. T. Mendes, Anh Nguyen, Eric Price, Gustavo de Rosa, Olli Saarikivi, and 8 others. 2024. Phi-4 technical report. Preprint, arXiv:2412.08905. · arXiv
  2. Kumail Alhamoud, Shaden Alshammari, Yonglong Tian, Guohao Li, Philip H.S. Torr, Yoon Kim, and Marzyeh Ghassemi. 2025. Vision-language models do not understand negation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition (CVPR), pages 29612-29622.
  3. Lukas Berglund, Meg Tong, Maximilian Kaufmann, Mikita Balesni, Asa Cooper Stickland, Tomasz Ko- rbak, and Owain Evans. 2024. The reversal curse: LLMs trained on "a is b" fail to learn "b is a". In The Twelfth International Conference on Learning Representations.
  4. Fu-Chieh Chang and Pei-Yuan Wu. 2024. Unraveling arithmetic in large language models: The role of algebraic structures. Preprint, arXiv:2411.16260. · arXiv
  5. Junhao Chen, Shengding Hu, Zhiyuan Liu, and Maosong Sun. 2024. States hidden in hidden states: Llms emerge discrete state representations implicitly. Preprint, arXiv:2407.11421. · arXiv
  6. Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word prob- lems. Preprint, arXiv:2110.14168. · arXiv
  7. Ganqu Cui, Lifan Yuan, Zefan Wang, Hanbin Wang, Wendi Li, Bingxiang He, Yuchen Fan, Tianyu Yu, Qixin Xu, Weize Chen, Jiarui Yuan, Huayu Chen, Kaiyan Zhang, Xingtai Lv, Shuo Wang, Yuan Yao, Xu Han, Hao Peng, Yu Cheng, and 4 others. 2025. Process reinforcement through implicit re- wards. Preprint, arXiv:2502.01456. · arXiv
  8. DeepSeek-AI. 2025. Deepseek-r1: Incentivizing rea- soning capability in llms via reinforcement learning. Preprint, arXiv:2501.12948. · arXiv
  9. Chunyuan Deng, Zhiqi Li, Roy Xie, Ruidi Chang, and Hanjie Chen. 2024. Language models are symbolic learners in arithmetic. Preprint, arXiv:2410.15580. · arXiv
  10. Antoine Gorceix, Bastien Le Chenadec, Ahmad Ram- mal, Nelson Vadori, and Manuela Veloso. 2024. Learning mathematical rules with large language models. Preprint, arXiv:2410.16973. · arXiv
  11. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language under- standing. In International Conference on Learning Representations.
  12. Humanity-Team. 2025. Humanity's last exam. Preprint, arXiv:2501.14249. · arXiv
  13. Qintong Li, Leyang Cui, Xueliang Zhao, Lingpeng Kong, and Wei Bi. 2024. Gsm-plus: A compre- hensive benchmark for evaluating the robustness of llms as mathematical problem solvers. Preprint, arXiv:2402.19255. · arXiv
  14. Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harri- son Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let's verify step by step. In The Twelfth Inter- national Conference on Learning Representations.
  15. Sean Michael McLeish, Arpit Bansal, Alex Stein, Neel Jain, John Kirchenbauer, Brian R. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, Jonas Geiping, Avi Schwarzschild, and Tom Goldstein. 2024. Trans- formers can do arithmetic with the right embeddings. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.
  16. Seyed Iman Mirzadeh, Keivan Alizadeh, Hooman Shahrokhi, Oncel Tuzel, Samy Bengio, and Mehrdad Farajtabar. 2025. GSM-symbolic: Understanding the limitations of mathematical reasoning in large language models. In The Thirteenth International Conference on Learning Representations.
  17. Van Bach Nguyen, Paul Youssef, Christin Seifert, and Jörg Schlötterer. 2024. LLMs for generating and evaluating counterfactuals: A comprehensive study. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 14809-14824, Mi- ami, Florida, USA. Association for Computational Linguistics. · DOI
  18. Richard Yuanzhe Pang, Weizhe Yuan, He He, Kyunghyun Cho, Sainbayar Sukhbaatar, and Jason Weston. 2024. Iterative reasoning preference opti- mization. In Advances in Neural Information Pro- cessing Systems, volume 37, pages 116617-116637.
  19. Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. 2022. Grokking: Generalization beyond overfitting on small algorith- mic datasets. Preprint, arXiv:2201.02177. · arXiv
  20. Luyu Qiu, Jianing Li, Chi Su, Chen Jason Zhang, and Lei Chen. 2024. Dissecting multiplication in transformers: Insights into llms. Preprint, arXiv:2407.15360. · arXiv
  21. Rafael Rafailov, Archit Sharma, Eric Mitchell, Christo- pher D Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems, volume 36, pages 53728-53741.
  22. Dmitri Roussinov, Serge Sharoff, and Nadezhda Puchn- ina. 2025. Controlling out-of-domain gaps in LLMs for genre classification and generated text detection. In Proceedings of the 31st International Conference on Computational Linguistics, pages 3329-3344, Abu Dhabi, UAE. Association for Computational Linguistics.
  23. David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. 2019. Analysing mathematical rea- soning abilities of neural models. In International Conference on Learning Representations.
  24. Parshin Shojaee, Iman Mirzadeh, Keivan Alizadeh, Maxwell Horton, Samy Bengio, and Mehrdad Fara- jtabar. 2025. The illusion of thinking: Understand- ing the strengths and limitations of reasoning mod- els via the lens of problem complexity. Preprint, arXiv:2506.06941. · arXiv
  25. Lifan Yuan, Yangyi Chen, Ganqu Cui, Hongcheng Gao, FangYuan Zou, Xingyi Cheng, Heng Ji, Zhiyuan Liu, and Maosong Sun. 2023. Revisiting out-of- distribution robustness in nlp: Benchmarks, anal- ysis, and llms evaluations. In Advances in Neural Information Processing Systems, volume 36, pages 58478-58507.
  26. Zhongshen Zeng, Pengguang Chen, Shu Liu, Haiyun Jiang, and Jiaya Jia. 2024. Mr-gsm8k: A meta- reasoning benchmark for large language model eval- uation. Preprint, arXiv:2312.17080. · arXiv
  27. Lunjun Zhang, Arian Hosseini, Hritik Bansal, Mehran Kazemi, Aviral Kumar, and Rishabh Agarwal. 2024. Generative verifiers: Reward modeling as next-token prediction. Preprint, arXiv:2408.15240. · arXiv
  28. Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. 2024. Sglang: Efficient execution of structured language model programs. Preprint, arXiv:2312.07104. · arXiv
  29. Qihuang Zhong, Kang Wang, Ziyang Xu, Juhua Liu, Liang Ding, and Bo Du. 2024. Achieving >97% on GSM8k: Deeply understanding the problems makes LLMs better solvers for math word problems. Preprint, arXiv:2404.14963. · arXiv
  30. Zhejian Zhou, JIayu Wang, Dahua Lin, and Kai Chen. 2024. Scaling behavior for large language models re- garding numeral systems: An example using pythia. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 3806-3820, Mi- ami, Florida, USA. Association for Computational Linguistics. · DOI

Cited by

Sorted by citations

Authors
Yan, Y., Lu, Y., Xu, R., & Lan, Z.
Affiliations
Westlake University (CN)
Venue
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing
Published
2025
Pages
13478-13494
OpenAlex
W4416036356
Cited by
6
References
0
Citations by year
2026: 4 · 2025: 2
FWCI
4.21
Type
conference paper
Language
en
Open access
Licence
cc-by
Locations
  • Conference on Empirical Methods in Natural Language Processing (EMNLP) (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion, cc-by-nc-nd)
  • arXiv (Cornell University)
Funders
Westlake University
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Mathematics › Statistics and Probability › Cognitive and developmental aspects of mathematical skills
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
large language models, arithmetic reasoning, integer addition, commutativity, pattern matching, rule induction, diagnostic benchmark, mathematical reasoning

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review