Variational Latent Reasoning Guided by Rendered Chain-of-Thought

Fanmeng Wang, Haotian Liu, Guojiang Zhao, Hongteng Xu, Zhifeng Gao

TL;DR

This paper introduces ReGuLaR, a novel method for latent reasoning in Large Language Models (LLMs) that significantly improves computational efficiency and reasoning effectiveness. By rendering explicit reasoning chains as images and using their visual representations to guide a Variational Auto-Encoding (VAE) framework, ReGuLaR achieves efficient compression with minimal information loss, even outperforming standard Chain-of-Thought (CoT) methods and supporting multi-modal reasoning.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown remarkable capabilities, especially with Chain-of-Thought (CoT) prompting, which breaks down complex problems into intermediate reasoning steps. However, this explicit, token-by-token generation of reasoning is computationally expensive and slow, limiting scalability. While "latent reasoning" methods aim to compress these reasoning processes into a lower-dimensional latent space, they often suffer from performance degradation because the compression lacks proper guidance. This leads to information loss and semantic drift, making the reasoning process unreliable. The core challenge is to compress reasoning effectively without sacrificing accuracy.

Methods

ReGuLaR tackles this by framing latent reasoning within a Variational Auto-Encoding (VAE) framework. The key innovation is how it guides the learning of the latent reasoning process. Instead of relying solely on text, ReGuLaR renders the explicit reasoning chains (the "CoT") into images. These images are then processed by a visual encoder to extract dense visual-semantic representations. These representations are used to regularize the posterior distribution of the latent reasoning states during training. This visual-semantic guidance helps ensure that the compressed latent representations retain crucial information from the original reasoning process, leading to more effective and efficient reasoning. The method uses a trainable adapter to map visual representations to the latent reasoning space and leverages a pretrained visual encoder for efficient processing.

Datasets

The paper evaluates ReGuLaR on several math reasoning datasets:

  • GSM8K-Aug: An augmented version of GSM8K, with reasoning steps formalized as mathematical expressions.
  • GSM8K-Aug-NL: Similar to GSM8K-Aug but preserves natural language explanations, leading to longer reasoning chains.
  • GSM-Hard: A harder version of GSM8K, designed as an out-of-domain test.
  • SVAMP: A dataset of elementary math word problems.
  • MultiArith: A dataset of multi-step arithmetic problems.
  • AQUA-RAT: Algebraic word problems with step-by-step explanations.
  • MATH: Challenging mathematics competition problems.
  • Molecular Captioning Benchmark: Used to demonstrate multi-modal reasoning capabilities.

Key Insights and Ideas

  • Visualizing Reasoning for Guidance: The core idea that rendering explicit reasoning chains into images can provide a richer, more structured signal for guiding latent reasoning is a significant departure from purely text-based approaches. This visual representation acts as a more robust "anchor" for the compressed latent states.
  • VAE for Latent Reasoning: Applying the VAE framework to model latent reasoning is a principled approach that allows for probabilistic sampling of reasoning states and regularization through KL divergence, leading to more stable and effective learning.
  • Minimal Information Loss through Rendering: The rendering process is described as "lossless" in terms of information preservation, and the subsequent visual-semantic extraction is designed to capture dense information, minimizing the loss typically associated with compression.
  • Multi-modal Reasoning Capability: The ability to render non-textual elements (like molecular graphs) alongside text opens up ReGuLaR to multi-modal reasoning tasks, a significant advantage over methods limited to textual inputs.
  • Robustness to Compression: ReGuLaR demonstrates remarkable performance even under extreme compression rates (e.g., compressing an entire reasoning chain into a single latent state), highlighting its efficiency and information preservation capabilities.

Key Results

  • State-of-the-Art Performance: ReGuLaR consistently outperforms existing latent reasoning methods (iCoT, CODI, Coconut, CoLaR) across multiple math reasoning datasets, achieving higher accuracy.
  • Significant Efficiency Gains: It reduces the average reasoning length by approximately 35% compared to the strongest baseline (CoLaR), demonstrating substantial computational efficiency. For example, on GSM-Hard, ReGuLaR achieves higher accuracy with only 3.1 steps compared to CoLaR's 12.8 steps.
  • Multi-modal Advantage: In molecular captioning tasks, ReGuLaR surpasses both explicit CoT and CoLaR, showcasing its ability to leverage multi-modal information for improved reasoning.
  • Scalability: The method shows strong positive scaling behavior across different LLM backbone sizes (1B to 8B parameters), maintaining its performance advantage.
  • Robustness: ReGuLaR is shown to be robust to variations in rendering configurations like font size and DPI, and even the "Tiny" visual encoder mode performs comparably to larger modes.

Limitations and Future Work

  • Dataset Limitations: The authors note that current standard benchmarks like GSM8K might limit the assessment of advanced reasoning capabilities due to their limited data size and simple reasoning chains.
  • Future Work:
  • Develop a large-scale, high-quality reasoning dataset to better evaluate latent reasoning methods in more demanding settings.
  • Further explore latent reasoning and its theoretical advantages over explicit CoT.
  • Investigate the potential for ReGuLaR to outperform explicit CoT in theory.

Summary updated

BibTeX
@inproceedings{wang2026variational,
  author = {Fanmeng Wang and Haotian Liu and Guojiang Zhao and Hongteng Xu and Zhifeng Gao},
  title = {{Variational Latent Reasoning Guided by Rendered Chain-of-Thought}},
  booktitle = {LIT @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=m797EiKdL9},
}
Figure