atlas

Research map / Architectures and efficiency / Attention and transformers

On the Generalization Ability of Next-Token-Prediction Pretraining

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Language model pretraining and induction

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.

Derives Rademacher-complexity generalization bounds for next-token-prediction pretraining of decoder-only transformers, handling token dependence via φ-mixing and covering-number bounds that include the causal mask, and checks the scaling predictions on small MiniMind models.

Problem

Lacking theoretical understanding of how next-token-prediction (NTP) pretraining of decoder-only transformers affects generalization, especially with dependent tokens within sequences.

Approach

Decomposes Rademacher complexity of the composite (representation-learner, token-predictor) class, models intra-sequence token dependence with φ-mixing, and derives covering-number bounds under the Frobenius norm that explicitly incorporate the causal mask matrix, yielding a bound scaling as sqrt(Θ/Nm)+sqrt(1/m).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase training maximum sequence length from 64 to 512 (ablation)miniNTP, holding other parameters constant · DAMO NLP test (m=512)PPL: 316024.25 -> 1.49Helped
Increase training sequence count from 50% to 100% of the dataset (ablation)miniNTP with m=512 · DAMO NLP test (m=512)PPL: 3.17 -> 1.49Helped
Increase training sequence count from 75% to 100% of the dataset (ablation)miniNTP with m=512 · DAMO NLP test (m=512)PPL: 1.95 -> 1.49Helped
Increase model size from Θ=0.002B to Θ=0.09B (ablation)miniNTP with N=100% and m=512 · DAMO NLP test (m=512)PPL: 5.76 -> 1.13Helped
Increase model size from Θ=0.09B to Θ=0.31B (ablation)miniNTP with N=100% and m=512 · DAMO NLP test (m=512)PPL: 1.13 -> 1.05Helped

Surprising findings

Limitations

Experimental setup

Datasets: MiniMind dataset DAMO NLP lcsts test set (8,192 samples)

Benchmarks: DAMO NLP lcsts test set

Metrics: test perplexity train loss test loss generalization gap

Baselines: Edelman et al. 2022 Li et al. 2023 Zhang et al. 2023 Deng et al. 2024

Builds on: Bartlett et al. 2017 spectrally-normalized bounds Lin & Zhang 2019 covering numbers Deng et al. 2024 MAE pretraining generalization Mohri & Rostamizadeh 2010 phi-mixing Rademacher bounds

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