2d ago

GoodfireAI researchers identify geometric addition module in Llama

0

Researchers at GoodfireAI identified an internal computation module in large language models that performs addition by rotating shapes in neural representation space. The mechanism acts as a general calculator in Llama and was detailed in a new blog post and paper from the GoodfireAI team. It extends to other domains using similar geometric structures in hidden layers.

Original post

The same calculator handles a wide range of tasks, including: - arithmetic (“7+9”) - weekdays (“nine days after Friday”) - months (“six months after August”) Llama built this mechanism from scratch in training, and uses it with striking elegance and flexibility. (4/6)

9:29 AM · May 14, 2026 View on X
Reposted by

One of the most fun results we've pulled together on the neural geometry research thread: Llama has a general computation module for performing addition, but uses geometry to map in and out of the domain! Check out some of the prettiest plots ever in the blog/paper haha.

GoodfireGoodfire@GoodfireAI

Neural networks do math by rotating shapes. We found a shape-rotating calculator hidden inside an LLM – and it’s used for more than just math! (1/6)

4:29 PM · May 14, 2026 · 786.7K Views
4:32 PM · May 14, 2026 · 3.5K Views
GoodfireAI researchers identify geometric addition module in Llama · Digg