The Shape of Addition: Geometric Structures of Arithmetic in Large Language Models

Hugging Face Daily Papers Papers

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.

Large Language Models exhibit paradoxical fragility in fundamental arithmetic, implying a disconnect between internal computation and discrete output. By analyzing the residual stream geometry during multi-operand addition, we identify the Iso-Raw-Sum Trajectory (IRST), a geometric structure where representations are anchored by semantic digits and modulated by continuous carry fibers. We propose the Noisy Quantization Model to explain this geometry, framing arithmetic errors as Geometric Slippages caused by internal neural noise pushing a continuous, latent Carry Potential across quantization thresholds. This geometric framework further elucidates Probe Versatility, explaining how lightweight probes can disentangle coexisting latent signals (such as ground truth versus hallucination) from a single activation vector. Finally, we validate these insights through a geometric consistency check method that effectively detects and corrects these quantization failures during inference. Our code is available at https://github.com/RL-MIND/Shape-of-Addition.
Original Article
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

Are Arithmetic Heuristic Neurons Form-Invariant? A Mechanistic Analysis of Symbols, Text, and Code in LLMs

arXiv cs.CL

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.

Eliminating Nondeterminism in LLM Inference with Integer-Only Arithmetic (15 minute read)

TLDR AI

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

Hugging Face Daily Papers

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.