Latent Chain-of-Thought for Visual Reasoning

Guohao Sun, Hang Hua, Jian Wang, Jiebo Luo, Sohail A. Dianat, Majid Rabbani, Raghuveer Rao, Zhiqiang Tao · OpenReview

Abstract

Chain-of-thought (CoT) reasoning is critical for improving the interpretability and reliability of Large Vision-Language Models (LVLMs). However, existing training algorithms such as SFT, PPO, and GRPO may not generalize well across unseen reasoning tasks and heavily rely on a biased reward model. To address this challenge, we reformulate reasoning in LVLMs as posterior inference and propose a scalable training algorithm based on amortized variational inference. By leveraging diversity-seeking reinforcement learning algorithms, we introduce a novel sparse reward function for token-level learning signals that encourage diverse, high-likelihood latent CoT, overcoming deterministic sampling limitations and avoiding reward hacking. Additionally, we implement a Bayesian inference-scaling strategy that replaces costly Best-of-N and Beam Search with a marginal likelihood to efficiently rank optimal rationales and answers. We empirically demonstrate that the proposed method enhances the state-of-the-art LVLMs on seven reasoning benchmarks, in terms of effectiveness, generalization, and interpretability.

Introduction

Large Vision-Language Models (LVLMs) have demonstrated impressive capabilities in breaking down complex visual tasks into step-by-step logic, a process known as Chain-of-Thought (CoT) reasoning. Despite this progress, current training methodologies face significant hurdles. Supervised Fine-Tuning (SFT) often results in "parroting," where models mimic specific teacher traces without internalizing the underlying logic. Reinforcement Learning (RL) methods like PPO or GRPO frequently fall into the "diversity trap," where KL penalties constrain the model to its starting point, stifling the exploration of novel reasoning paths. Furthermore, these models are prone to "reward hacking," finding shortcuts to high scores without truly solving the problem. Finally, traditional search methods at inference time, such as "Best-of-N," are computationally expensive and dependent on potentially biased critic models.

The LaCoT Framework

To overcome these limitations, we introduce LaCoT (Latent Chain-of-Thought), which reformulates visual reasoning as Amortized Variational Inference (AVI). Instead of seeking a single deterministic reasoning path, LaCoT treats reasoning as a probabilistic inference problem, aiming to approximate the entire distribution of logical paths $Z$ that lead to a correct answer $Y$ given a visual instruction $X$.

Comparison of PPO policy vs. the proposed AVI policy for visual reasoning.

Reference-Guided GFlowNet (RGFN)

Central to LaCoT is the Reference-Guided GFlowNet (RGFN). Unlike standard RLHF which is often "handcuffed" by KL penalties, RGFN utilizes a "better-than-reference" filter. This allows the model to learn from reasoning chains that outperform a baseline (e.g., GPT-4o generated traces), acting as a "safety floor" rather than a "leash." This encourages the discovery of diverse, high-quality reasoning paths while preventing the model from collapsing into gibberish.

Token-level Reward Approximation

Calculating rewards for every token in long-form CoT (often exceeding 1,000 tokens) is computationally prohibitive. LaCoT addresses this with a linear interpolation strategy: exact rewards are calculated every $\lambda$ steps, and the intermediate token rewards are estimated. This makes training feasible for complex, long-form reasoning tasks.

Bayesian Inference-Scaling (BiN)

At test time, LaCoT replaces traditional, costly search methods with Bayesian Inference-Scaling (BiN). Instead of relying on a separate "critic" model to judge the best answer, BiN uses a length-normalized marginal likelihood.

The Bayesian Inference-Scaling (BiN) strategy for ranking answers.

As shown in the figure above, the model samples multiple reasoning paths $Z_1, ..., Z_N$ and mathematically ranks the potential answers $Y_1, ..., Y_N$ based on how well the evidence (the rationales) supports the conclusion. This strategy is more theoretically grounded and consistently outperforms "Best-of-N" sampling across benchmarks.

Experimental Results

We evaluated LaCoT using Qwen2.5-VL (3B and 7B) base models across seven rigorous benchmarks covering mathematical reasoning (MathVista, MathVision, MathVerse) and general logic (MMMU, MMVet, MME).

  • State-of-the-Art Performance: The LaCoT-Qwen-7B model achieved 68.4% on MathVista, narrowing the gap to GPT-4o to less than 3 points.
  • Efficiency in Small Models: The 3B model showed a remarkable 13.9% improvement over its base version, outperforming larger models like LLaVA-CoT-11B.
  • Robustness: On the vision-only subset of MathVerse, which requires precise diagram comprehension, the 3B model's accuracy increased by 14 points.

Our findings suggest that "thinking longer" (sampling more paths) effectively reduces the variance of the model's logic, leading to more robust internal reasoning and better generalization to unseen tasks.

Conclusion

LaCoT represents a significant step forward in visual reasoning by moving beyond simple imitation. By treating reasoning as a probabilistic inference problem and leveraging GFlowNets with Bayesian scaling, we enable models to discover diverse and robust logical paths. This approach not only improves performance across a wide range of benchmarks but also enhances the interpretability and reliability of LVLMs. Future work will explore scaling these methods to larger models and further refining reward functions for multi-modal tasks.

Summary updated

BibTeX
@inproceedings{sun2025latent,
  author = {Guohao Sun and Hang Hua and Jian Wang and Jiebo Luo and Sohail A. Dianat and Majid Rabbani and Raghuveer Rao and Zhiqiang Tao},
  title = {{Latent Chain-of-Thought for Visual Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=0i8ClSr3kQ},
}
Figure