paper-with-me

홈 › Papers

Training Chain-of-Thought via Latent-Variable Inference

2023-11-28 · NeurIPS 2023 11 · Du Phan, Matthew D. Hoffman, David Dohan, Sholto Douglas, Tuan Anh Le, Aaron Parisi, Pavel Sountsov, Charles Sutton, Sharad Vikram, Rif A. Saurous

Large language models (LLMs) solve problems more accurately and interpretably when instructed to work out the answer step by step using a ``chain-of-thought'' (CoT) prompt. One can also improve LLMs' performance on a specific task by supervised fine-tuning, i.e., by using gradient ascent on some tunable parameters to maximize the average log-likelihood of correct answers from a labeled training set. Naively combining CoT with supervised tuning requires supervision not just of the correct answers, but also of detailed rationales that lead to those answers; these rationales are expensive to produce by hand. Instead, we propose a fine-tuning strategy that tries to maximize the \emph{marginal} log-likelihood of generating a correct answer using CoT prompting, approximately averaging over all possible rationales. The core challenge is sampling from the posterior over rationales conditioned on the correct answer; we address it using a simple Markov-chain Monte Carlo (MCMC) expectation-maximization (EM) algorithm inspired by the self-taught reasoner (STaR), memoized wake-sleep, Markovian score climbing, and persistent contrastive divergence. This algorithm also admits a novel control-variate technique that drives the variance of our gradient estimates to zero as the model improves. Applying our technique to GSM8K and the tasks in BIG-Bench Hard, we find that this MCMC-EM fine-tuning technique typically improves the model's accuracy on held-out examples more than STaR or prompt-tuning with or without CoT.

📄 PDF Abstract BibTeX arXiv:2312.02179

Code (0)

등록된 구현이 없습니다.

Tasks

GSM8K

Similar Papers 제목 키워드 기반

Chain-of-Thought Prompting for Out-of-Distribution Samples: A Latent-Variable Study

2025-04-17 · Yu Wang, Fu-Chieh Chang, Pei-Yuan Wu

Chain-of-Thought (CoT) prompting has emerged as a powerful technique to improve in-context learning (ICL) in large language models (LLMs) by breaking complex reasoning into intermediate steps. However, the ability of CoT…

In-Context Learning

Pretraining with Token-Level Adaptive Latent Chain-of-Thought

2026-02-09 · Boyi Zeng, Yiqin Hao, He Li, Shixiang Song 외 arxiv

Scaling large language models by increasing parameters and training data is increasingly constrained by limited high-quality corpora and rising communication costs. This work explores an alternative axis: increasing per-…

Parallel Continuous Chain-of-Thought with Jacobi Iteration

2025-06-23 · HaoYi Wu, Zhihao Teng, Kewei Tu

Continuous chain-of-thought has been shown to be effective in saving reasoning tokens for large language models. By reasoning with continuous latent thought tokens, continuous CoT is able to perform implicit reasoning in…

Learning to chain-of-thought with Jensen's evidence lower bound

2025-03-25 · Yunhao Tang, Sid Wang, Rémi Munos

We propose a way to optimize chain-of-thought with reinforcement learning, but without external reward function. Our algorithm relies on viewing chain-of-thought as latent variable as part of a probabilistic inference pr…

Mathematical Reasoningreinforcement-learningReinforcement Learning

CoLT: Teaching Multi-Modal Models to Think with Chain of Latent Thoughts

2026-06-30 · Lianyu Hu, Shengqian Qin, Zeqin Liao, Qing Guo 외 arxiv

Chain-of-thought (CoT) reasoning has enabled multi-modal large language models (MLLMs) to tackle complex visual reasoning tasks by generating explicit intermediate reasoning steps in natural language. However, this text-…

Visual Reasoning