Latent Thought Models with Variational Bayes Inference-Time Computation

Deqian Kong, Minglu Zhao, Dehong Xu, Bo Pang, Shu Wang +6 more
2/3/2025
cs.CLcs.LGstat.ML

No official code found. Best implementation: mingluzhao/Latent-Thought-Language-Models (9 stars, last commit 2025-10-30).

Abstract

We propose a novel class of language models, Latent Thought Models (LTMs), which incorporate explicit latent thought vectors that follow an explicit prior model in latent space. These latent thought vectors guide the autoregressive generation of ground tokens through a Transformer decoder. Training employs a dual-rate optimization process within the classical variational Bayes framework: fast learning of local variational parameters for the posterior distribution of latent vectors (inference-time computation), and slow learning of global decoder parameters. Empirical studies reveal that LTMs possess additional scaling dimensions beyond traditional Large Language Models (LLMs), such as the number of iterations in inference-time computation and number of latent thought vectors. Higher sample efficiency can be achieved by increasing training compute per token, with further gains possible by trading model size for more inference steps. Designed based on these scaling properties, LTMs demonstrate superior sample and parameter efficiency compared to autoregressive models and discrete diffusion models. They significantly outperform these counterparts in validation perplexity and zero-shot language modeling tasks. Additionally, LTMs exhibit emergent few-shot in-context reasoning capabilities that scale with model size, and achieve competitive performance in conditional and unconditional text generation.

View on arXivView PDF

Code Implementations(1)

Source code for "Latent Thought Models with Variational Bayes Inference-Time Computation" In ICML 2025

92PythonMar 4, 202511 months ago

Similar Papers

Cite this paper

@article{kong2025latent,
  title  = {Latent Thought Models with Variational Bayes Inference-Time Computation},
  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},
  year   = {2025},
  eprint = {2502.01567},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.01567v2},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.01567.svg)](https://codeofpaper.com/paper/2502.01567)

Discussion