Neural nets learn modular addition via a 'pizza algorithm' distinct from the 'clock', with phase transitions
burny_tech · x · 2026-12-02
Ziming Liu (MIT, KAN author) reports new interpretability findings: when networks learn modular addition, besides Neel Nanda's well-known 'clock algorithm' (tokens embedded on a circle, angle sum via multiplication), a distinct 'pizza algorithm' can emerge — averaging the two embedding vectors, then applying nonlinearities, with predictions spread over two slices of the circle. Plots show attention rate, gradient symmetricity and distance irrelevance separate the two mechanisms, and phase transitions can occur between pizza and clock solutions.
More from Research
- Three world models play a survival game, each predicting the ice and each other — yshan2u · 2026-12-06
- Open-source AV control guide adds kinematic bicycle model chapter with step-size error analysis — 4310sy · 2026-12-06
- How information flows through transformers: the residual stream and the K/V stream — repligate · 2026-12-06
- AI researcher: progress comes from finding which dimensions matter, not faster search — RileyRalmuto · 2026-12-06
- What building a GPT-style chatbot actually involves: five stages and one crucial distinction — jaspindersingh83 · 2026-12-06
- ANNA + Selective G-Bispectra lifts 4B LLM OOD length generalization from 0% to 35-56% — mayfer · 2026-12-06