Abstract
Chain-of-Thought (CoT) prompting has significantly enhanced the reasoning capabilities of Large Language Models (LLMs). However, fine-tuning models to generate these reasoning steps typically requires expensive human-annotated rationales. This paper introduces TRICE (Tuning Rationales with Independence-Chain Expectation-maximization), a framework that treats CoT rationales as latent variables. By utilizing an MCMC-based expectation-maximization algorithm, TRICE enables models to bootstrap reasoning steps from datasets containing only questions and answers. Our results on GSM8K and BIG-Bench Hard demonstrate that TRICE significantly outperforms existing bootstrapping methods like STaR, providing a more principled and effective approach to training reasoning models.
Introduction
Chain-of-Thought (CoT) prompting—asking a model to "think step-by-step"—has revolutionized LLM performance on complex reasoning tasks. While prompting alone is powerful, the highest performance is achieved by fine-tuning models on these intermediate reasoning steps. The primary bottleneck in this process is the scarcity of high-quality, human-written rationales, which are expensive and difficult to scale.
Existing "bootstrapping" methods, such as the Self-Taught Reasoner (STaR), attempt to solve this by having the model generate its own rationales for known correct answers and then fine-tuning on those successes. However, STaR possesses several limitations: it relies on greedy decoding which limits diversity, it often fails to learn from difficult problems the model cannot solve early in training (the "give up" problem), and it lacks a rigorous probabilistic foundation. This paper proposes TRICE as a more principled method for treating reasoning as a hidden (latent) process connecting a question to an answer.
Methodology
TRICE treats the rationale ($z$) as an unobserved latent variable between the question ($x$) and the answer ($y$). The objective is to maximize the marginal log-likelihood of the correct answer, effectively averaging over all possible reasoning paths that could lead to it.
MCMC-EM Algorithm
The core of TRICE is a specialized Expectation-Maximization (EM) algorithm using Markov Chain Monte Carlo (MCMC). The framework maintains a "memory" of the best rationale found so far for each training example. During each training step, the model proposes a new rationale. If this new rationale leads to the correct answer, it replaces the previous entry in memory. This approach encourages the model to explore different ways to solve a problem rather than overfitting to a single "lucky" path.
Variance Reduction and Efficiency
To stabilize training, the authors introduced a novel control-variate technique. This mathematical anchor helps the model learn not just from correct paths, but also by actively reducing the probability of incorrect reasoning paths generated during sampling. Furthermore, to ensure computational efficiency, the researchers utilized soft prompt tuning. Instead of updating billions of parameters, they tuned specific vector sequences prepended to the input, allowing for effective learning with significantly lower resource requirements.
Experimental Evaluation
The researchers evaluated TRICE on two major reasoning benchmarks:
- GSM8K: A dataset of 8,500 grade-school math word problems requiring multi-step reasoning.
- BIG-Bench Hard (BBH): A collection of 27 challenging tasks, including logical deduction and navigation, where standard LLMs typically struggle without CoT.
Key Results
TRICE demonstrated substantial improvements over baseline methods across both benchmarks:
- GSM8K Performance: TRICE achieved 77.7% accuracy using greedy decoding, vastly outperforming STaR (53.5%) and standard CoT prompt tuning (58.6%). When employing "self-consistency" (sampling multiple answers and taking the majority), TRICE reached 86.6%.
- BIG-Bench Hard: TRICE averaged 72.8% across 27 tasks, beating STaR (62.0%) and even outperforming direct prompt tuning on the answers alone (70.4%).
- Convergence: The control-variate technique significantly accelerated training, allowing the model to reach high accuracy much faster than simple rejection sampling methods.
Discussion and Insights
A significant finding of the study was the failure of Reweighted Wake-Sleep (RWS), a common latent-variable method. The authors found that RWS caused the model to collapse into generating "empty" or zero-length rationales. Because shorter sequences naturally receive higher weights in RWS, the model learned a degenerate shortcut to bypass reasoning entirely. TRICE’s objective function avoids this by ensuring that even difficult problems contribute to the learning signal as soon as a single valid reasoning path is discovered.
Limitations
While TRICE represents a significant advancement, several limitations remain:
- Model Scaling: The study focused on PaLM 2-M; further research is needed to see if these benefits scale to much smaller or larger architectures.
- Gradient Access: As a gradient-based algorithm, TRICE requires access to model weights, making it incompatible with "black-box" API-only models like GPT-4.
- Logical Soundness: While TRICE improves answer accuracy, the authors did not formally evaluate the logical soundness of the generated rationales, noting that models may occasionally reach the right answer through flawed logic.
Conclusion
TRICE offers a robust, probabilistic framework for training LLMs to reason without the need for human-annotated rationales. By treating reasoning as a latent variable and employing an MCMC-based EM approach, it provides a scalable and effective alternative to existing bootstrapping methods, setting a new standard for self-taught reasoning in large language models.
Summary updated