atlas

Research map / Architectures and efficiency / Attention and transformers

Unveiling Induction Heads: Provable Training Dynamics and Feature Learning in Transformers

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 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.

Proves gradient flow on a two-attention-layer transformer (RPE, multi-head softmax attention, normalized FFN) trained for ICL on n-gram Markov chains converges to a generalized induction head mechanism, with copier, selector, and classifier roles per component.

Problem

Theoretical understanding of how the full transformer architecture (not just attention) enables in-context learning on n-gram Markov chains, and how gradient training yields that mechanism.

Approach

Shows that a two-layer transformer with RPE copier heads, a polynomial-kernel FFN with normalization acting as a feature selector (via a modified chi-squared mutual information), and an exponential-kernel softmax classifier jointly implement a generalized induction head; a three-stage gradient flow analysis proves convergence to it.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train all parameters simultaneously instead of using three-stage trainingTF(M=3, H=3, d=3, D=2) · Synthetic bigram Markov-chain ICLconvergence to the GIH-like stateNo clear effect
Remove query and key projection weights from the first attention layer (ablation)Full transformer model · Synthetic bigram Markov-chain ICLfirst-layer attention behaviorNo clear effect

Limitations

Experimental setup

Datasets: synthetic n-gram Markov chains (Dirichlet alpha=0.01 transition kernels)

Metrics: cross-entropy loss attention weight concentration feature coefficient ratio

Builds on: induction head disentangled transformer Chen et al. latent causal graph ICL analysis

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