Post · 10 min read· pp. 22–29

Next-Latent Prediction Transformers Learn Compact World Models

Jayden TeohManan TomarKwangjun AhnEdward S. HuTim PearcePratyusha SharmaAkshay KrishnamurthyRiashat IslamAlex LambJohn Langford

diagramMicrosoft Research

NeurIPS, 2026

arXiv🤗Hugging FacePostCode

TL;DR:

We introduce Next-Latent Prediction (NextLat), a simple auxiliary objective that augments next-token training with self-supervised predictions in the latent space. NextLat has three main benefits:

  1. Representation Learning: it encourages transformers to form compact belief states for reasoning and planning.
  2. Better Data Efficiency: predicting in latent space provides denser learning signal than predicting one-hot tokens.
  3. Faster Inference: it enables variable-length self-speculative decoding, allowing up to 3.3× faster inference.

Transformers are trained to predict the next token. What if transformers also learn to predict their own next hidden state?

Transformers are trained to predict the next token. What if transformers also learn to predict their own next hidden state?

Introduction

In this blog, I question two dominant components of sequence modeling today:

  1. The transformer architecture
  2. Next-token prediction

I then show how Next-Latent Prediction (NextLat) can address issues with each of these components.

Method

next-latent prediction

I'll describe our method in a high-level manner to set up the context for the subsequent sections. NextLat extends standard next-token training with a self-supervised auxiliary objective in the latent space. Specifically, we teach the transformer to encode tokens X1:tX_{1:t} into latent representations/hidden states ht\mathbf{h}_t such that it can:

  1. predict the next token Xt+1X_{t+1},
  2. predict its own next hidden state ht+1\mathbf{h}_{t+1} given the next token Xt+1X_{t+1}.

Our training objective combines standard next-token cross-entropy with a latent-prediction regression loss1.There is a complementary KL self-distillation component to the loss, but it is not immediately relevant — see the paper for the full objective.:

Lnext-h=∥h^t+1−sg[ht+1]∥22\mathcal{L}_{\text{next-h}} = \lVert \hat{\mathbf{h}}_{t+1} - \mathrm{sg}[\mathbf{h}_{t+1}] \rVert_2^2

where h^t+1\hat{\mathbf{h}}_{t+1} is the predicted next hidden state, and sg\mathrm{sg} is the stop-gradient operator.

Importantly, this objective retains the transformer's parallel training efficiency. At inference, the transformer decodes autoregressively as usual — there is no architectural change.

Motivation

the issue with transformers

Transformers replaced recurrence with a memory that grows with sequence length and self-attention that enables ad-hoc lookups over past tokens. Consequently, they lack an inherent incentive to compress history into compact latent summaries, and often learn solutions that generalize poorly1.Anil et al. (2022)Exploring Length Generalization in Large Language ModelsNeurIPS 20222.Dziri et al. (2023)Faith and Fate: Limits of Transformers on CompositionalityNeurIPS 20233.Liu et al. (2023)Transformers Learn Shortcuts to AutomataICLR 20234.Wu et al. (2024)Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual TasksNAACL 2024.

> how does NextLat fix this?

NextLat forces each latent state to store all information about the history necessary to predict the next hidden state.

NextLat ensures existence of a mapping from current latent state to the next latent state to the next next latent state... and so on.

ht→decode tokenpθXt+1→update statepψht+1→decode tokenpθXt+2→update statepψht+2  ⋯  →pθXT\begin{aligned} \mathbf{h}_t &\xrightarrow[\text{decode token}]{p_\theta} X_{t+1} \xrightarrow[\text{update state}]{p_\psi} \mathbf{h}_{t+1} \xrightarrow[\text{decode token}]{p_\theta} X_{t+2} \xrightarrow[\text{update state}]{p_\psi} \mathbf{h}_{t+2} \;\cdots\; \xrightarrow{p_\theta} X_T \end{aligned}

For these maps to exist, and be learned, ht\mathbf{h}_t must optimize toward a belief state—a compressed summary of the history necessary to predict the future.

Intuitively, this teaches the model to form a compact latent summary at every step. This prevents it from learning shortcut shortcuts that depend on lazy self-attention lookups over past tokens!

the issue with next-token prediction

Firstly, next-token prediction does not have an inherent incentive to learn belief states (see Hu et al. (2025)The Belief State TransformerICLR 2025).

Secondly, next-token prediction is inherently myopic. It is biased towards learning short-term dependencies in the data. For example, on Path-Star Bachmann et al. (2024)The Pitfalls of Next-Token PredictionICML 2024, a simple lookahead planning task, next-token predictors are unable to solve it .

> how does NextLat fix this?

Compression and planning are two sides of the same coin. To compress history into compact belief states, NextLat must anticipate which information from the past will matter downstream. Therefore, NextLat teaches the model to capture long-term dependencies and perform lookahead planning.

Later in the "Experiments" section, we show that NextLat is the only method capable of solving Path-Star!

connections to recurrent neural networks

Algorithmic reasoning requires capabilities most naturally understood through recurrent models of computation, like the Turing machine. However, recurrent neural networks (RNNs) are not parallelizable during training, which has led transformers to become the dominant architecture for sequence modeling.

> NextLat introduces a recurrent inductive bias without recurrence

NextLat introduces a recurrent inductive bias in transformers without the sequential training bottleneck. By teaching the model to compress history into belief state at every time step, NextLat effectively encourages the model to learn the underlying recurrent latent dynamics of the data, rather than exploit surface-level token patterns.

In fact, NextLat can be viewed as a method for training RNNs without recurrence (see Akarsh Kumar and Phillip Isola (2026)Pretraining Recurrent Networks without RecurrencearXiv 2026). We demonstrate this interesting connection in the "Experiments" section, where NextLat solves state-tracking tasks that are inexpressible for transformers, but solvable by RNNs.

What about "The Bitter Lesson"?

New methods of learning like NextLat can often repulse religious adherents to The Bitter Lesson. At first glance, adding yet another auxiliary objective to the well-established next-token prediction objective may seem like another attempt to inject human inductive bias, and another departure from the simple recipe of "scale the model, scale the data, scale the compute".

Richard Sutton's yearly reminder on The Bitter Lesson.

Richard Sutton's yearly reminder on The Bitter Lesson.

But NextLat is not in contention with The Bitter Lesson. In fact, I would argue that it is a direct application of the lesson from two viewpoints:

  1. NextLat brings us closer toward self-supervised learning rather than human supervised learning.
  2. NextLat improves data efficiency by extracting more learning signal from each training sequence

1. self-supervised learning

Self-supervised learning (SSL) is the ultimate realization of "The Bitter Lesson". Rather than relying on human-provided labels, SSL methods learn to generates its own learning signals from the structure of raw unlabeled inputs.

Next-token prediction is useful for bootstrapping the model with a core basis of human knowledge by leveraging the vast amount of human-written text on the internet. But then the model remains bounded by the way humans articulate and represent information. Human language and web text are riddled with useless syntax and inconsistencies. Here is an example:

Recipe says: add 2 tbsp sugar, stir untill dissolved, then put in the fridge for 30 mins lol

Human-written text tokenized by the GPT-2 tokenizer.

Next-token prediction has to work double time to model misspellings like "untill" (which gets tokenized differently from "until") and abbreviations like "tbsp". However, the underlying latent transition in semantics is clean: mix ingredients → dissolve sugar → refrigerate.

So the Bitter Lesson-pilled argument for NextLat is simple: if raw sequences contain more learnable structure than next-token prediction alone extracts, then NextLat helps direct more learning capacity towards the underlying latent transition (i.e., predicting in latent space), rather than focusing on superfluous syntax.

2. data efficiency and richer gradient signals

At the current rate, we will run out of web-text data for training models by 2028Villalobos et al. (2024)Will we run out of data? Limits of LLM scaling based on human-generated dataarXiv:2211.04325. There is a growing need for methods that can extract richer gradient signals from datasets, allowing efficient learning from less data.

Prior methods propose to extract richer gradient signals by predicting more tokens every step9.Gloeckle et al. (2024)Better & faster large language models via multi-token predictionarXiv:2404.1973710.Ahn et al. (2025)Efficient joint prediction of multiple future tokensarXiv:2503.218015.Hu et al. (2025)The belief state transformerICLR 202511.Shao et al. (2025)Beyond Next Token Prediction: Patch-Level Training for Large Language ModelsICLR 2025. However, these methods predict in token space, so the learning signal is sparse and only tied to the next one-hot token, or multiple tokens. In contrast, NextLat predicts in the latent space. This difference sets apart the richness of the learning signal it provides.

Firstly, NextLat is trained to predict the next hidden state ht+1\mathbf{h}_{t+1}, which itself parameterizes the entire distribution over the next-next token Xt+2X_{t+2}. This shifts supervision from individual token targets to distribution-level alignment. Secondly, ht+1\mathbf{h}_{t+1} is also trained to predict the next-next hidden state ht+2\mathbf{h}_{t+2}. This recursive latent dynamics, where every latent is predictive of the next, means that

ht\mathbf{h}_{t} predicts ht+1\mathbf{h}_{t+1} which predicts ht+2\mathbf{h}_{t+2} which predicts ht+3\mathbf{h}_{t+3} which predicts...

Therefore, ht+1\mathbf{h}_{t+1} encodes information about ht+2\mathbf{h}_{t+2}, ht+3\mathbf{h}_{t+3}, ht+4\mathbf{h}_{t+4}, …\dots

Predicting ht+1\mathbf{h}_{t+1} therefore provides learning signal about the future, not just the immediate next token.

As a result, next-latent supervision not only provides learning signals that are dense in the vocabulary distribution, but also provides information about all future tokens.

Experiments

We show that NextLat improves over next-token prediction, multi-token prediction, and other token-prediction baselines across benchmarks in world modeling, reasoning, planning, and language modeling.

World modeling

World modeling

We train the models on Manhattan taxi ride sequences. NextLat learns a world model that is not only more compact, but also more consistent with the real world!

Variable-length self-speculative decoding

Once the model has learned to predict its own next latent state, we get a free inference-time bonus: the lightweight latent dynamics model (i.e., the next-latent prediction head) can be recursively rolled out to predict future tokens entirely in latent space, without invoking the main transformer. This enables variable-length self-speculative decoding.

Self-speculative decoding with NextLat enables longer drafts and faster inference.

Self-speculative decoding with NextLat enables longer drafts and faster inference.

In our experiments, NextLat trained with only next-latent prediction (d=1d=1) can still draft long token sequences up to 10 tokens long, achieving up to 3.3× faster inference on language modeling benchmarks.

NextLat enables variable-length self-speculative decoding.

NextLat enables variable-length self-speculative decoding.

Multi-token prediction (MTP) has become the standard for open-source language model pretraining12.Liu et al. (2024)Deepseek-v3 technical reportarXiv:2412.1943713.Qwen Team (2025)Qwen3-Next: Towards Ultimate Training & Inference EfficiencyQwen Blog14.NVIDIA (2025)NVIDIA Nemotron 3: Efficient and Open IntelligenceWhite Paper15.Xiaomi MiMo Core Team et al. (2026)MiMo-V2-Flash Technical ReportarXiv:2601.0278016.Google (2026)Accelerating Gemma 4: faster inference with multi-token prediction draftersGoogle Blog. However, MTP is typically limited to the fixed speculative horizon it was trained on. Unlike MTP, NextLat allows for longer flexible-length drafts. This means that NextLat can achieve much faster inference than MTP!

Conclusion

NextLat is a simple modification to the training objective, but it has surprisingly far-reaching benefits for representation learning, data efficiency, and inference speed. We hope that our work will inspire future pretraining research.

BibTeX

If you find this work useful, please cite:

text
@inproceedings{teoh2026nextlatent,
title={Next-Latent Prediction Transformers Learn Compact World Models},
author={Jayden Teoh and Manan Tomar and Kwangjun Ahn and Edward S. Hu and Tim Pearce and Pratyusha Sharma and Akshay Krishnamurthy and Riashat Islam and Alex Lamb and John Langford},
booktitle={The Fortieth Annual Conference on Neural Information Processing Systems},
year={2026},
url={https://openreview.net/forum?id=325YSKkc2n}
}