Kantamneni, Tegmark: LLMs add by rotating a number 'helix'
TL;DR
- Three mid-sized LLMs represent numbers as a 'generalized helix' that is causally implicated for addition and subtraction, the paper finds.
- The authors propose a 'Clock' algorithm: helices for a and b are manipulated to produce the a+b answer helix, then read out to logits.
- The same helical representation is 'also causally relevant for integer division, multiplication, and modular arithmetic,' the abstract states.
Numbers live inside large language models as a 'generalized helix,' according to a new arXiv paper by Subhash Kantamneni and Max Tegmark that reverse-engineers how three mid-sized LLMs do addition.
The authors call the mechanism the 'Clock' algorithm. They write that 'to solve a+b, the helices for a and b are manipulated to produce the a+b answer helix which is then read out to model logits.' They verify the account by modeling MLP outputs, attention head outputs and 'even individual neuron preactivations' with these helices, then running causal interventions.
The helical representation does not stop at addition. The paper reports it 'is also causally relevant for integer division, multiplication, and modular arithmetic.' Kantamneni and Tegmark position the work as 'the first representation-level explanation of an LLM's mathematical capability.'
The abstract does not name the three LLMs or publish per-model accuracy numbers.
Shared on Bluesky by 1 AI expert
Originally reported by arxiv.org
Read the original article →Original headline: Language Models Use Trigonometry to Do Addition