The Shape of Addition: Geometric Structures of Arithmetic in Large Language Models
Summary
This paper investigates why LLMs fail at basic multi-operand addition by probing residual-stream activations, revealing geometric structures called Iso-Raw-Sum Trajectories (IRSTs) and explaining off-by-one errors as geometric slippages due to noisy latent carry representations.
View Cached Full Text
Cached at: 06/05/26, 06:10 PM
Paper page - The Shape of Addition: Geometric Structures of Arithmetic in Large Language Models
Source: https://huggingface.co/papers/2606.03645 We introduceThe Shape of Addition, a mechanistic interpretability study of why LLMs can still fail at basic multi-operand addition.
By probing residual-stream activations at each generated digit, we find that arithmetic states are organized intoIso-Raw-Sum Trajectories (IRSTs): continuous raw-sum fibers passing through digit basins and further stratified by carry states. This geometry explains common off-by-one arithmetic errors asgeometric slippages, where noisy latent carry representations cross quantization thresholds before discrete token output.
We further propose aNoisy Quantization Modelto characterize these failures, and validate the framework with a dual-stream consistency check that can detect and correct some quantization errors during inference. The results suggest that LLMs may internally retain correct arithmetic components even when the final token prediction is wrong.
Similar Articles
Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms
This paper investigates how large language models perform arithmetic operations by analyzing internal mechanisms through early decoding, revealing that proficient models exhibit a clear division of labor between attention and MLP modules in reasoning tasks.
Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs
This paper investigates whether arithmetic heuristic neurons in LLMs are form-invariant across symbolic arithmetic, natural language word problems, and Python code. Using activation patching, they find a shared circuit of neurons that is necessary and sufficient for arithmetic computation, and that cross-format failures arise from activation states rather than distinct circuits.
Improved Accuracy Scaling with Problem Complexity in LLM Arithmetic Reasoning Using Executable Symbolic Representations
This Neurocomputing paper introduces the GSM Arithmetic Benchmark (GSM-AB) and shows that executable symbolic representations like Lean and Python Program-of-Thought improve LLM arithmetic accuracy and slow its decline as operand digit length and operation count increase.
Eliminating Nondeterminism in LLM Inference with Integer-Only Arithmetic (15 minute read)
The post explains why LLM inference is nondeterministic due to non-associative floating-point addition and batch-dependent kernel selection, then presents DetLLM, a system that runs all LLM operations (matmuls, softmax, normalization, RoPE) in integer-only arithmetic to achieve bit-identical outputs across any GPU, CPU, or batch size. DetLLM became a paper accepted at two NeurIPS 2026 workshops.
Multiplication in Multimodal LLMs: Computation with Text, Image, and Audio Inputs
This paper investigates the arithmetic limitations of multimodal LLMs on multi-digit multiplication across text, image, and audio modalities, introducing a controlled benchmark and a novel 'arithmetic load' metric (C) that better predicts model accuracy than traditional step-counting methods. Results show accuracy collapses as C grows, and that performance degradation is primarily computational rather than perceptual.