cs.AINov 20, 2026

CausalNTP: A World-Model Recipe for Causal Next-Token Prediction under Noisy Training-data

Authors: Devansh Arpit

Abstract

This paper shows that transformer networks trained with next-token prediction (NTP) and gradient descent do not learn to make predictions using only causally-relevant tokens in the left context, irrespective of the causal ordering of tokens during training, and identifies the learning deficiencies responsible. We introduce a causal world-model setup, for which, we characterize the Bayes-optimal predictor under the causal view of the data. We then prove that, a function that distills its predictions to non-causal views of data, when realized under Occam's Razor, recovers the true causal predictor. Based on this analysis we propose CausalNTP, a practical training algorithm that approximates this theoretical recipe and trains transformers to depend only the causally relevant tokens in left-context. Empirically in the world-model setup, CausalNTP achieves out-of-distribution generalization that vanilla NTP cannot due to its theoretical limits, regardless of data and model scale. We show similar gains and behavior in the natural language question-answering setting as a proof-of-concept.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Understanding the Emergence of Seemingly Useless Features in Next-Token Predictors

    Mar 14, 2026Mark Rofin, Jalal Naghiyev, Michael HahnTransformer InterpretabilityLLM Interpretability

  2. Universality and Generalization of Causal Transformers Across Context Lengths

    Sep 28, 2026Takashi Furuya, Maarten V. de Hoop, Gabriel PeyréNeural Network GeneralizationTransformer Expressivity

  3. How Transformers Learn to Plan via Multi-Token Prediction

    Apr 13, 2026Jianhao Huang, Zhanpeng Zhou, Renqiu Xia +3Multi-Token PredictionLLM Planning