atlas

Research map / Architectures and efficiency / Attention and transformers

The Pitfalls of Next-Token Prediction

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Language model pretraining and induction · 2 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.

Shows that teacher-forced next-token training can fail in-distribution on a minimal path-finding (path-star) lookahead task for Transformers and Mamba, and that teacherless training with dummy tokens partially fixes it.

Problem

Whether next-token prediction can learn planning/lookahead tasks: the paper argues the common criticism of snowballing errors conflates autoregressive inference with teacher-forced training, and that teacher-forcing itself can fail to learn an accurate next-token predictor.

Approach

Identifies two teacher-forcing failure mechanisms (the Clever Hans cheat, where revealed ground-truth prefixes allow shortcuts for later tokens, and the indecipherable token, where the first token loses supervision) and tests teacherless training (dummy-token inputs predicting all future tokens) and path reversal as interventions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with teacher forcing rather than a lookahead solutionGPT-Mini, GPT2-Large, and Mamba · Path-star graphsexact-match accuracyHurt
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT2-Large · G_{2, 5}exact-match accuracy: 48.9 -> 99.9Helped
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT2-Large · G_{5, 5}exact-match accuracy: 19.4 -> 99.0Helped
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT2-Large · G_{10, 5}exact-match accuracy: 10.3 -> 97.8Helped
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT2-Large · G_{2, 20}exact-match accuracy: 49.2 -> 0.0Hurt
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT2-Large · G_{20, 5}exact-match accuracy: 3.5 -> 0.0Hurt
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT-Mini · G_{2, 5}exact-match accuracy: 49.8 -> 99.9Helped
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)GPT-Mini · G_{2, 10}exact-match accuracy: 49.1 -> 0.0Hurt
Replace ground-truth response prefixes with dummy tokens during training and inference (ablation)Mamba · Path-star graphsexact-match accuracy: 48.5 -> 0.0; 48.7 -> 0.0; 20.2 -> 0.0; 9.3 -> 0.0; 0.0 -> 0.0Hurt
Reverse the target path (ablation)GPT2-Large · G_{2, 5}exact-match accuracy: 48.9 -> 99.9Helped
Reverse the target path (ablation)GPT2-Large · G_{5, 5}exact-match accuracy: 19.4 -> 99.6Helped
Reverse the target path (ablation)GPT2-Large · G_{10, 5}exact-match accuracy: 10.3 -> 99.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic path-star graphs G_{d,l}(N)

Benchmarks: path-star graph tasks (G_{d,l}) 3-digit addition

Metrics: exact-match accuracy first-token accuracy clever hans cheat accuracy snowball accuracy

Baselines: standard teacher-forcing reversed-target training teacherless training

Builds on: teacher forcing Mamba GPT-2 teacherless training

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