NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Latent Thought Models with Variational Bayes Inference-Time Computation

Deqian Kong, Minglu Zhao, Dehong Xu, Bo Pang, Shu Wang, Edouardo Honig, Zhangzhang Si, Chuan Li, Jianwen Xie, Sirui Xie, Ying Nian Wu

TL;DR

Latent Thought Models (LTMs) introduce explicit "thought vectors" into the Transformer architecture, optimized via a dual-rate Variational Bayes process. By shifting a portion of the model's computational effort to inference time, LTMs can achieve the performance of models ten times their size. This introduces a powerful new scaling dimension beyond simply adding more parameters or training data.

The "Data Wall" and the Need for New Scaling Dimensions

Traditional Large Language Models (LLMs) rely heavily on scaling laws: performance improves predictably as you increase model parameters, training data, or total compute. However, the industry is rapidly approaching a "data wall" where high-quality, untapped text is becoming scarce. Furthermore, standard autoregressive models lack an explicit, abstract representation of a sequence; they simply predict the next token based on local context.

To address this, the authors ask: Can we find new dimensions to scale model performance? Drawing inspiration from cognitive science—specifically the "Declarative-Procedural" model—they propose separating fast, episodic adaptation (learning the "thought" behind a specific sentence) from slow, structural learning (learning the fundamental rules of language).

Methods: Introducing Latent Thought Models

The core innovation is the Latent Thought Model (LTM), which posits that a sequence of text is generated by a set of latent "thought vectors" ($z$).

LTM Architecture
  1. Architecture: Unlike standard decoders that only attend to previous tokens, LTMs utilize a Transformer decoder where each layer cross-attends to specific latent thought vectors. This mechanism allows high-level "thoughts" to guide the generation of every token in the sequence.
  2. Dual-Rate Optimization: The model employs a two-speed training process based on Variational Bayes:
  3. Fast (Inference-Time): For every input sequence, the model performs a few steps of gradient descent to find the best local variational parameters (mean and variance) for the thought vectors. This acts as the model "thinking" about the specific input.
  4. Slow (Global): The global weights of the Transformer decoder are updated slowly across the entire dataset, akin to standard pre-training.
  5. Short Context Window: The authors intentionally restrict the context window (e.g., 256 tokens) to force the latent vectors to act as the primary information carriers across the sequence.

Datasets

  • Pre-training: Models were trained on OpenWebText (OWT), an ~8B token open-source replication of the GPT-2 dataset.
  • Zero-shot Evaluation: Evaluated on standard benchmarks including PTB, Wikitext, LM1B, LAMBADA, AG News, PubMed, and Arxiv.
  • Reasoning: Tested on GSM8K, a benchmark for grade-school math word problems.

Key Insights and Efficiency Trade-offs

The paper demonstrates that performance isn't solely a function of parameter count ($N$) and data volume ($D$). It also scales significantly with inference steps ($T_{fast}$) and the number of latent vectors ($N_z$).

Validation Perplexity vs. Inference Steps
  • Efficiency Trade-offs: As shown in the figure above, you can achieve "GPT-2 Large" levels of performance with a model that has 93% fewer parameters (e.g., LTM-Medium at 51M parameters) simply by increasing the amount of compute spent "thinking" (optimizing $z$) at inference time.
  • Hierarchical Synthesis: Probing experiments reveal that LTMs process information hierarchically. Lower layers capture scattered, disconnected terms, while top layers act as "synthesis layers," integrating these fragments into coherent text.
  • Emergent Reasoning: Even at very small scales (38M parameters), LTMs demonstrate emergent few-shot reasoning capabilities on math tasks (GSM8K) that typically only appear in much larger standard LLMs.

Key Results

  • Parameter Efficiency: LTM-Medium (51M parameters) achieved a validation perplexity comparable to GPT-2 Large (762M parameters) while using equivalent training compute per token.
  • State-of-the-Art Perplexity: LTM-Large (76M parameters) reached a validation perplexity of 3.05 on OWT after training on only 3B tokens, significantly outperforming autoregressive and diffusion baselines.
  • Generation Speed: In unconditional generation tasks, LTM-Large achieved quality comparable to GPT-2 Large but was 5x faster in terms of sampling speed.
  • Zero-Shot Superiority: LTMs consistently outperformed existing autoregressive and discrete diffusion models (like SEDD and MDLM) across all evaluated zero-shot language modeling tasks.

Limitations and Future Work

  • Simple Prior: The current model assumes a simple Gaussian prior for the thought vectors. A more structured, learnable "Language of Thought" (LOT) prior could further enhance reasoning capabilities.
  • Lack of Verifiers: The current inference-time computation is unsupervised (minimizing reconstruction error). Adding a "reward" or "verifier" model in the latent space could guide the model toward more logical or factual reasoning.
  • Context Scaling: While the short context window was a deliberate choice to test the latent vectors, future work must explore how LTMs handle very long-form document generation where both $z$ and long-range attention are active.

Summary updated

BibTeX
@inproceedings{kong2025latent,
  author = {Deqian Kong and Minglu Zhao and Dehong Xu and Bo Pang and Shu Wang and Edouardo Honig and Zhangzhang Si and Chuan Li and Jianwen Xie and Sirui Xie and Ying Nian Wu},
  title = {{Latent Thought Models with Variational Bayes Inference-Time Computation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=xCWAcX4pNa},
}
Figure