Scalable Language Models with Posterior Inference of Latent Thought Vectors

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

Introduction

In the pursuit of more capable Large Language Models (LLMs), the industry has primarily focused on scaling data volume and parameter counts. However, as high-quality data becomes increasingly scarce, researchers are exploring a third axis: inference-time computation. The "Latent Thought Model" (LTM) represents a paradigm shift, moving beyond simple next-token prediction to a system that infers abstract "latent thought vectors" to guide generation.

Methods: The Latent Thought Architecture

The core of the LTM is a Transformer decoder enhanced with explicit latent vectors ($z$). Unlike standard autoregressive models that rely solely on attention over previous tokens, LTMs utilize these vectors as a global memory or "thought space" for the sequence.

Architecture of the Latent Thought Model showing the integration of latent vectors via cross-attention.

The model employs a Dual-Rate Optimization process:

  1. Fast Learning (Inference-Time): For each sequence, the model performs gradient descent (typically 16–64 steps) to optimize the latent vectors ($z$) to best explain the observed tokens.
  2. Slow Learning: The global Transformer parameters ($\beta$) are updated to improve the model's general generative capabilities conditioned on these inferred thoughts.

This approach uses a Variational Bayes framework to maximize the Evidence Lower Bound (ELBO), ensuring that latent thoughts are both structured and reconstructive.

Scaling and Performance

A defining characteristic of LTMs is their ability to scale performance through inference-time computation. By increasing the number of inference steps ($T_{fast}$) or the number of latent vectors ($N_z$), a relatively small model can achieve the performance of much larger traditional models.

Validation Perplexity vs. Inference Steps, demonstrating how LTMs improve with additional computation and outperform baselines like GPT-2 Large.

As shown in Figure 1, LTMs demonstrate a clear trend where more "thinking" time leads to lower validation perplexity. Notably, LTM-Medium (51M) achieves comparable perplexity to GPT-2 Large (762M), representing a nearly 15x improvement in parameter efficiency.

Key Results

  • State-of-the-Art Perplexity: LTM-Large (76M) achieved a validation perplexity of 3.05 on 3B tokens, outperforming both autoregressive and diffusion-based baselines.
  • Emergent Reasoning: Despite their small scale, LTMs exhibit emergent few-shot reasoning on benchmarks like GSM8K, a trait typically associated with models orders of magnitude larger.
  • Generation Efficiency: LTM-Large is approximately 5x faster than GPT-2 Large for unconditional generation while maintaining superior output quality as measured by MAUVE scores.

Conclusion and Future Work

Latent Thought Models offer a compelling path forward for efficient AI. By shifting the burden of information integration into a latent space optimized at inference time, they break the traditional dependency on massive parameter counts. Future research will focus on more structured priors for the "language of thoughts" and the integration of verifiers to guide latent inference toward specific goals like accuracy and safety.

Summary updated

BibTeX
@inproceedings{kong2025scalable,
  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 = {{Scalable Language Models with Posterior Inference of Latent Thought Vectors}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=xCWAcX4pNa},
}
Figure