Skip to content
Goodfire Research·Indexed by this site · Originally published· Alignment →SelectedAttention31

Goodfire discovers a general-purpose addition module in Llama 3.1 8B

A Geometric Calculator Inside a Neural Network - Goodfire

AI summary

Goodfire Research discovered a general-purpose addition module in layer 18 of Llama 3.1 8B that simultaneously handles tasks with additive structure such as arithmetic, days of the week, and months. The module represents numbers as a set of circles in activation space, each circle corresponding to the remainder of a number modulo a certain modulus, similar to a Fourier decomposition; when computing 6+8, the module solves addition under each modulus in parallel and then combines the results to produce 14. The researchers localized the module by tracing information flow across layers and token positions, and used causal methods to verify its generality across tasks; additionally, steering along these circles can change the model's answers to month-related questions, indicating these manifolds are computational objects the network actually uses. The authors noted this finding builds on prior work showing LLMs represent numbers using Fourier features, and hope future research will complete the empirical evidence.

Why it was selected

The original source used causal intervention to verify a general-purpose addition module in layer 18 of Llama 3.1 8B, providing a transferable localization and verification methodology for mechanistic interpretability research.

Related papers
Read originalgoodfire.com