Can LLMs subtract numbers?
Mayank Jobanputra, Nils Philipp Walter, Maitrey Mehta, Blerta Veseli, Evan Parker Kelly Chapple, Yifan Wang, Sneha Chetani, Ellie Pavlick, Antonio Vergari, Vera Demberg

TL;DR
This paper systematically evaluates large language models' ability to perform subtraction, revealing their struggles with negative results and showing that instruction tuning significantly improves their accuracy in generating correct signs.
Contribution
It provides the first comprehensive analysis of subtraction in LLMs, highlighting their limitations and demonstrating the effectiveness of instruction tuning for improving subtraction accuracy.
Findings
LLMs perform worse on subtraction than addition.
Errors mainly occur when the result should be negative.
Instruction tuning significantly improves negative sign generation.
Abstract
We present a systematic study of subtraction in large language models (LLMs). While prior benchmarks emphasize addition and multiplication, subtraction has received comparatively little attention despite being structurally distinct as a non-commutative operation. We evaluate eight pretrained LLMs spanning four families on addition and subtraction problems. Our experiments reveal that subtraction accuracy lags behind addition by a wide margin. We find that the errors for () are concentrated in cases where (). In such cases, LLMs frequently produce the correct magnitude but omit the negative sign. Probing analyses show that LLMs internally encode whether results should be negative, yet this information is often not reflected in generated outputs. We further test well-known techniques such as few-shot learning and instruction-tuning to see if they can improve the LLMs'…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Text Readability and Simplification
