Probing for Arithmetic Errors in Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sun, Yucheng, Stolfo, Alessandro, Sachan, Mrinmaya
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913944805834752
author Sun, Yucheng
Stolfo, Alessandro
Sachan, Mrinmaya
author_facet Sun, Yucheng
Stolfo, Alessandro
Sachan, Mrinmaya
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_12379
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Probing for Arithmetic Errors in Language Models
Sun, Yucheng
Stolfo, Alessandro
Sachan, Mrinmaya
Computation and Language
Artificial Intelligence
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.
title Probing for Arithmetic Errors in Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2507.12379