arXiv:2610.06605cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06605

Separators Make Carry Propagation Learnable:The Geometry of Latent Carry in a Multiplication Transformer

Sama Satariyan, Raphael Cousin, G{é}rard Biau

Abstract

Transformers asked to multiply multi-digit numbers in a single forward pass often fail, and interpretability studies of pretrained language models find arithmetic solved by input-range heuristics rather than by an explicit carry. We train small Llama-style transformers from scratch on 4×44 \times 4 multiplication without chain of thought and find that the input format is decisive: inserting a space token between digits raises exact-match accuracy from 1% to 89%. Output positions are learned in carry-chain order, with the middle digits, which have the longest-range dependencies, learned last. Inside the model, the separator token that predicts each digit (its prediction slot) encodes the carry-in as an angle on a ring in the residual stream; examples with more distinct carry values fill more of the ring. Activation patching between examples matched on the column sum shows that this state is causally used before the last layer: patching the prediction slot alone transfers the source carry in up to 84% of cases after block 4 for one middle column of our best model, while for other columns the carry is first assembled at the neighboring answer slot before reaching its own. Remaining errors are almost always off by one, consistent with a small error on the carry or on the circular digit code.

1. Introduction

Multi-digit arithmetic is a useful testbed for studying what transformers learn: each problem has a verifiable answer, and failure modes are diagnostic. Small-operand arithmetic is solved easily, but multi-digit multiplication remains brittle even for frontier models (Saxton et al., 2019; Bai et al., 2025). The asymmetry with addition points to long-range carry propagation: each output digit depends on partial products from many input pairs, and the carries themselves can be much larger than one and span several columns.

Recent interpretability work suggests that transformers do not acquire a genuine carry-propagation mechanism. Nikankin et al. (2025) find that pretrained LLMs solve arithmetic through input-range MLP heuristics, with no subcircuit dedicated to carry routing; Qiu et al. (2024) report that, in small transformers trained on multiplication, the loss component associated with multi-digit carry propagation converges last and remains noisiest throughout training.

We revisit this picture by training small Llama-style transformers from scratch on 4×44 \times 4 multiplication, without chain of thought, and ask two questions: what makes the carry learnable in a single forward pass, and when a model succeeds, how is the carry represented and used?

Our contributions are: (i) the format matters: with a space token between digits, a 4.8M-parameter model reaches 89% exact match, and 1% without it; positions are learned in carry-chain order and the middle columns never converge in the compact format; (ii) in the models that learn the task, the carry-in of each column is encoded as an angle on a ring at the position that predicts its digit; (iii) matched activation patching shows this state is causally used at intermediate layers, and that for columns 4 and 5, the carry is first assembled at the neighboring answer slot; (iv) residual errors at convergence are almost always ±1\pm1.

References (20)