LaDiR: Latent Diffusion Enhances LLMs for Text Reasoning (2 minute read)
A new framework uses diffusion models to help language models reason better by allowing them to revise their thinking process holistically instead of generating responses token-by-token.
Deep dive
- LaDiR addresses a fundamental limitation of autoregressive LLMs: they generate chain-of-thought reasoning token-by-token without ability to holistically revise earlier steps
- The framework uses a Variational Autoencoder (VAE) to create a structured latent reasoning space that encodes text reasoning steps into compact "blocks of thought tokens"
- These latent representations preserve semantic information and interpretability while being more expressive than discrete tokens
- A latent diffusion model learns to denoise blocks of latent thought tokens using blockwise bidirectional attention masks
- This architecture enables parallel generation of multiple diverse reasoning trajectories instead of sequential generation
- The iterative refinement process allows for adaptive test-time compute allocation
- Models can plan and revise the reasoning process holistically rather than committing to each token immediately
- Evaluated on mathematical reasoning and planning benchmarks
- Results show consistent improvements in accuracy, diversity, and interpretability compared to autoregressive, diffusion-based, and latent reasoning baselines
- Represents a paradigm shift from next-token prediction to iterative latent reasoning refinement
Decoder
- Chain-of-thought (CoT): A technique where LLMs show their reasoning process step-by-step in text form
- Autoregressive decoding: Generating text one token at a time, where each token depends on previous tokens
- Latent representation: A compressed, continuous numerical encoding of information in a hidden space
- Variational Autoencoder (VAE): A neural network that learns to encode data into a compact latent space and decode it back
- Diffusion model: A generative model that learns to iteratively denoise random noise into structured outputs
- Bidirectional attention: Attention mechanism that can look at both past and future context, unlike autoregressive models
Original article
LaDiR: Latent Diffusion Enhances LLMs for Text Reasoning
Large Language Models (LLMs) demonstrate their reasoning ability through chain-of-thought (CoT) generation. However, LLM's autoregressive decoding may limit the ability to revisit and refine earlier tokens in a holistic manner, which can also lead to inefficient exploration for diverse solutions. In this paper, we propose LaDiR (Latent Diffusion Reasoner), a novel reasoning framework that unifies the expressiveness of continuous latent representation with the iterative refinement capabilities of latent diffusion models for an existing LLM. We first construct a structured latent reasoning space using a Variational Autoencoder (VAE) that encodes text reasoning steps into blocks of thought tokens, preserving semantic information and interpretability while offering compact but expressive representations. Subsequently, we utilize a latent diffusion model that learns to denoise a block of latent thought tokens with a blockwise bidirectional attention mask, enabling longer horizon and iterative refinement with adaptive test-time compute. This design allows efficient parallel generation of diverse reasoning trajectories, allowing the model to plan and revise the reasoning process holistically. We conduct evaluations on a suite of mathematical reasoning and planning benchmarks. Empirical results show that LaDiR consistently improves accuracy, diversity, and interpretability over existing autoregressive, diffusion-based, and latent reasoning methods, revealing a new paradigm for text reasoning with latent diffusion.