arXiv AI

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

arXiv:2606. 03645v1 Announce Type: cross Abstract: Large Language Models exhibit paradoxical fragility in fundamental arithmetic, implying a disconnect between internal computation and discrete output.

arXiv AI
Oct 31

"Close enough?" An investigation into multiplication errors in LLMs

The paper investigates why large language models (LLMs) struggle with multi‑digit multiplication. By testing several small base LLMs on 16,991 multiplication problems, the authors find that errors do not follow the previously observed noisy‑quantisation pattern seen in addition. Instead, small Qwen models exhibit a new error regime: lower‑order column mistakes tend to preserve parity, while higher‑order digit errors are mainly off‑by‑one carry failures, indicating distinct internal representations for arithmetic in transformers.

By William Bolton, Bezawit Tilaye, Huw Day
arXiv Machine Learning
Sep 11

Why Does Post-Training Quantization Work?

Post‑training quantization compresses large language models by storing weights at reduced precision, introducing errors into hidden states that could accumulate with depth. However, pretrained models accumulate far less hidden‑state error than randomly initialized ones, largely preserving downstream performance. The study identifies two key mechanisms: (1) each layer’s new error tends to oppose inherited error, partially canceling it, and (2) the LM‑head geometry preserves high‑rank token scores, mitigating output changes.

By Yuxiang Chen, Michael Beyer, Jun Zhu, Jianfei Chen
arXiv Machine Learning
Oct 22

A Mechanistic Study of Algorithmic Generalization in Diffusion Models on Modular Arithmetic

The paper investigates how diffusion models learn and generalize algorithmically, focusing on a modular addition task with images. In a single‑image setting, the model encodes operands as periodic representations and combines them via self‑attention and feed‑forward layers that mirror trigonometric addition identities. In a diverse‑image setting, the sampling process separates into an arithmetic computation phase and a visual refinement phase, with the transition marked by an internal frequency‑entropy signal.

By Joon Hyeok Kim, Yong-Hyun Park, Mattis Dals{\ae}tra {\O}stby, Jiatao Gu
arXiv AI
Oct 31

The Role of Quantization in Loss Spikes

The paper investigates loss spikes that occur late in language model pretraining, attributing them to delayed, terminal divergences in output logits—termed time‑bomb spikes. It shows that these spikes are preceded by rapidly growing quantization error in the LM head, and that reducing numerical precision speeds up the spikes while increasing precision slows them. The authors propose replacing AdamW with SGD with momentum on the LM head to suppress logit growth, and find that various mitigation techniques reduce quantization error, indicating a common numerical cause for stability.

By Zaiqian Chen, Aditya Somasundaram, Sophie Li, Sean McLeish, John Kirchenbauer, Tom Goldstein, Micah Goldblum