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

Devansh ArpitarXiv 2026

It’s late, you’re tired, and you’ve probably spent a good chunk of your day interacting with an LLM that occasionally hallucinates or gets tripped up by a simple distractor in your prompt. You might wonder: Why is this incredibly powerful model so easily fooled?

A new paper, "CausalNTP: A World-Model Recipe for Causal Next-Token Prediction under Noisy Training-data," suggests the problem lies in the very way we train these models. Standard Next-Token Prediction (NTP) is essentially a "lazy" learner—it will take any shortcut it can find to lower its training loss, even if those shortcuts violate the laws of cause and effect.

TL;DR

Standard LLMs are like students who memorize the patterns in an answer key instead of learning the actual math. They latch onto any correlation in the text—even "hints" that shouldn't logically be there—to predict the next word. This paper introduces CausalNTP, a training recipe that uses clever data augmentation and consistency checks to force models to ignore these "shortcuts" and focus only on the actual causal drivers of an answer.

What Problem Does This Paper Address?

The engine of modern AI is Next-Token Prediction (NTP). We feed a Transformer billions of sequences and ask it to guess the next word. The issue is that NTP doesn't care about causality; it only cares about correlation.

Imagine a training sample where a "descendant" of the answer (a hint or a result caused by the answer) accidentally appears in the text before the answer itself. A standard model will "cheat" by using that hint to predict the answer, achieving a very low training loss. However, when you take that model into the real world where those hints don't exist, it falls apart. This "non-causal exploitation" is a major source of hallucinations, bias, and the fragile "chain-of-thought" reasoning we see in today's LLMs.

Methods

The authors propose a two-pronged approach to fix this:

  1. The Synthetic World Model: They first prove their point using a controlled environment—a Directed Acyclic Graph (DAG) where nodes represent variables with values. This allows them to precisely define "parents" (causes), "children" (effects), and "unrelated" nodes.

    Figure 1: The Proposed Causal World-model Setup: See section 3.1 for details.
  2. CausalNTP Algorithm: Instead of just standard NTP, they use a two-term objective function:

  3. Term 1 (Standard NTP): Predict the next token given a "causal" view (where causes come before effects).
  4. Term 2 (Consistency Loss): They create an "augmented" view where non-causal tokens (like effects or unrelated info) are shuffled into the context. They then force the model to make the same prediction it made in the clean, causal view. This teaches the model to actively ignore the noise.

The theory relies on Occam’s Razor: the idea that among many ways to solve a problem, gradient descent tends to find the "simplest" one (the smallest "circuit size"). By providing the right mix of data, the authors show that the "simplest" solution for the model becomes the causal one.

Datasets

  • Synthetic DAGs: 100,000 samples generated from random graphs to test theoretical limits.
  • GSM8K: A standard benchmark of grade-school math word problems.
  • GSM-IC: A version of GSM8K specifically designed with "Irrelevant Context" (distractors) to see if models get confused.
  • Custom Distractors: The authors created their own "descendant" and "ancestor" distractors for GSM8K, such as injecting wrong answer hints or irrelevant background stories.

Key Insights and Ideas

  • Ordering isn't everything: Simply putting tokens in "causal order" during training isn't enough. Models still don't learn to ignore non-causal information if it appears during inference.
  • The "Descendant" Trap: Information that is an effect of the answer (a descendant) is the most dangerous distractor. It provides a massive shortcut during training that ruins the model's ability to reason independently.
  • Counterfactuals are mandatory: To learn to be truly causal, a model needs to see "counterfactual" versions of the data—scenarios where the distractors change but the causal parents (and thus the answer) stay the same.

Key Results

The researchers found that standard Transformers (Model 2 in the charts below) naturally try to "cheat" by using descendants, which leads to lower training loss but much higher error when those descendants are removed or changed at test time.

Figure 2: Bayes-predictor-like behavior under NTP training: Both Model 2 and Model 2R are trained and evaluated on permuted data with the constraint pa(q) ≺q. Model 2 training allows attending to the full left-context for predicting q while Model 2R training enforces not using descendants of q present in its left-context for predicting q. Empirically, attending to descendants leads to lower training loss but higher eval loss, similar to the prediction of theorem 3.1.
  • GSM8K Performance: On math problems with distractors, CausalNTP improved accuracy by ~10 percentage points over standard fine-tuning.
  • Robustness to Noise: In "noisy" settings where 10% of the training answers were intentionally wrong, CausalNTP2 remained significantly more robust, while standard NTP's performance plummeted.
  • Out-of-Distribution (OOD) Success: CausalNTP achieved near-perfect generalization on OOD synthetic data where vanilla NTP failed completely, regardless of how much the model was scaled up.

Limitations and Future Work

The authors acknowledge a few hurdles:

  • The "Missing Parent" Problem: The current method assumes all "parents" (necessary information) are present in the prompt. It doesn't yet teach the model to say "I don't know" if a crucial piece of info is missing.
  • Manual Injection: For natural language, the "distractors" currently have to be somewhat manually designed or templated. Automating this for general-purpose pre-training is the next big challenge.
  • Scope: The natural language tests were limited to question-answering; applying this to open-ended generation is still an open question.

In short, CausalNTP is a "recipe" for building models that don't just parrot patterns, but actually understand the "why" behind the "what."

Summary updated

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.
BibTeX
@misc{arpit2026causalntp,
  author = {Devansh Arpit},
  title = {{CausalNTP: A World-Model Recipe for Causal Next-Token Prediction under Noisy Training-data}},
  year = {2026},
  eprint = {2611.28369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28369},
}
Figure