atlas

Research map / Architectures and efficiency / Attention and transformers

Assign and Add: A Mechanistic Study of Compositional Arithmetic

NeurIPS 2026 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Mechanistically studies a 2-layer single-head transformer trained on variable assignment plus modular addition, showing it composes an induction-like variable-routing circuit with a Fourier-feature modular addition MLP and gives a one-step gradient analysis of how this composition emerges.

Problem

How transformers learn to compose variable binding (associative recall/induction-style) with modular arithmetic to generalize to unseen combinations, and how this composition emerges during training.

Approach

Uses a controlled synthetic task where addition operands can be variables assigned in context, withholding certain addition pairs and variable positions from training, and reverse-engineers the resulting circuit at the weight level, complemented by progress measures and a one-gradient-step theoretical analysis of the second-layer key-query matrix.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: synthetic variable-assignment and modular addition sequences (mod 59, 12 variables)

Benchmarks: held-out synthetic test sets (0-var, 1-var, 2-var, add-restricted, var-restricted)

Metrics: accuracy cosine similarity linear probe accuracy

Builds on: induction heads grokking Fourier features for modular addition TransformerLens AdamW

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy