Probing for Arithmetic Errors in Language Models

Yucheng Sun, Alessandro Stolfo, Mrinmaya Sachan


Abstract
We investigate whether internal activations in language models can be used to detect arithmetic errors. Starting with a controlled setting of 3-digit addition, we show that simple probes can accurately decode both the model’s predicted output and the correct answer from hidden states, regardless of whether the model’s output is correct. Building on this, we train lightweight error detectors that predict model correctness with over 90% accuracy. We then extend our analysis to structured chain-of-thought traces on addition-only GSM8K problems and find that probes trained on simple arithmetic generalize well to this more complex setting, revealing consistent internal representations. Finally, we demonstrate that these probes can guide selective re-prompting of erroneous reasoning steps, improving task accuracy with minimal disruption to correct outputs. Our findings suggest that arithmetic errors can be anticipated from internal activations alone, and that simple probes offer a viable path toward lightweight model self-correction.
Anthology ID:
2025.emnlp-main.411
Volume:
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing
Month:
November
Year:
2025
Address:
Suzhou, China
Editors:
Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, Violet Peng
Venue:
EMNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
8122–8139
Language:
URL:
https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.411/
DOI:
Bibkey:
Cite (ACL):
Yucheng Sun, Alessandro Stolfo, and Mrinmaya Sachan. 2025. Probing for Arithmetic Errors in Language Models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 8122–8139, Suzhou, China. Association for Computational Linguistics.
Cite (Informal):
Probing for Arithmetic Errors in Language Models (Sun et al., EMNLP 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.411.pdf
Checklist:
 2025.emnlp-main.411.checklist.pdf