atlas

Research map / Architectures and efficiency / Attention and transformers

From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformers

NeurIPS 2025 · 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.

Theoretically analyzes how pretraining sequence-length diversity (measured by a max-sum ratio) steers a one-layer transformer trained by a single gradient step toward an induction head (OOD-generalizing) or a positional shortcut.

Problem

Understanding when a pretrained transformer learns a generalizable induction-head mechanism versus a positional shortcut that fails out-of-distribution, as a function of pretraining data structure.

Approach

Introduces a max-sum ratio of trigger-distance length probabilities as a diversity measure that determines which mechanism gradient-based training selects; shows a Theta(1/N_trg) threshold in both population and finite-sample regimes, and derives a linear-in-length optimal pretraining distribution minimizing compute.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Broaden the pretraining distribution over trigger distances to lower the max-sum ratioSingle-layer transformer on trigger-output copying · OOD trigger-output sequencesOOD generalizationHelped
Use a pretraining distribution with a large max-sum ratioSingle-layer transformer on trigger-output copying · OOD trigger-output sequencesOOD generalization: Θ(N_\mathrm{trg}^{-1})Hurt
Increase the maximum pretraining context length while keeping the minimum fixedSingle-layer transformer on trigger-output copying · OOD trigger-output sequencesOOD accuracyHelped
Increase the number of trigger typesSingle-layer transformer on trigger-output copying · OOD trigger-output sequencesOOD accuracyHurt
Increase pretraining-distribution diversityThree-layer transformer trained with AdamW · OOD trigger-output sequencesOOD accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic trigger-output copying sequences

Benchmarks: synthetic OOD trigger-output test sets

Metrics: OOD accuracy pseudo accuracy rate leftmost rate

Builds on: induction heads early-phase gradient dynamics 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