Preprint
Reinforcement Learning

LM-Guided Chain-of-Thought

Jooyoung Lee, Fan Yang, Thanh Tran, Qian Hu, Emre Barut, Kai-Wei Chang, C. Su
April 4, 2024International Conference on Language Resources and Evaluation27 citations

27

Citations

1

Influential Citations

International Conference on Language Resources and Evaluation

Venue

2024

Year

Abstract

We introduce a novel framework, LM-Guided CoT, that leverages a lightweight (i.e., <1B) language model (LM) for guiding a black-box large (i.e., >10B) LM in reasoning tasks. Specifically, the lightweight LM first generates a rationale for each input instance. The Frozen large LM is then prompted to predict a task output based on the rationale generated by the lightweight LM. Our approach is resource-efficient in the sense that it only requires training the lightweight LM. We optimize the model through 1) knowledge distillation and 2) reinforcement learning from rationale-oriented and task-oriented reward signals. We assess our method with multi-hop extractive question answering (QA) benchmarks, HotpotQA, and 2WikiMultiHopQA. Experimental results show that our approach outperforms all baselines regarding answer prediction accuracy. We also find that reinforcement learning helps the model to produce higher-quality rationales with improved QA performance.

Analysis

Why This Paper Matters

Large language models (LLMs) have demonstrated impressive reasoning abilities, but leveraging them effectively often requires costly fine-tuning or access to model internals. Many real-world deployments rely on black-box APIs, where only prompting is possible. Meanwhile, chain-of-thought (CoT) prompting has emerged as a powerful technique to elicit reasoning, but its quality depends heavily on the prompt and the model's inherent capabilities. This paper introduces LM-Guided CoT, a framework that bridges these gaps by using a lightweight language model to generate rationales that guide a frozen, black-box large LM. The approach is resource-efficient, requiring training only the small model, and addresses the practical need for improving reasoning without modifying the large model.

The significance lies in its potential to democratize access to high-quality reasoning. By training a small guide model, organizations can enhance the performance of proprietary LLMs they cannot fine-tune. Moreover, the use of reinforcement learning to optimize rationale generation directly for task performance is a promising direction, moving beyond imitation of rationales to optimizing for outcomes. This work also contributes to the growing interest in composing small and large models, a paradigm that balances cost, performance, and flexibility.

Technical Contributions

  • LM-Guided CoT framework: A lightweight LM (<1B parameters) generates a rationale for each input, which is then used to prompt a frozen large LM (>10B parameters) to produce the final answer. This decouples rationale generation from answer prediction, allowing the small model to be trained independently.
  • Resource-efficient training: Only the lightweight LM is trained, using knowledge distillation from a teacher model and reinforcement learning with two reward signals: rationale-oriented (e.g., similarity to reference rationales) and task-oriented (e.g., answer correctness). This avoids the need to fine-tune the large model.
  • Reinforcement learning for rationale optimization: The framework employs RL to directly optimize the lightweight LM's rationale generation for downstream task performance, rather than solely imitating rationales. This leads to higher-quality rationales and improved QA accuracy.
  • Evaluation on multi-hop QA: The method is validated on HotpotQA and 2WikiMultiHopQA, demonstrating consistent improvements over baselines in answer prediction accuracy.

Results

The paper reports that LM-Guided CoT outperforms all baselines on answer prediction accuracy for both HotpotQA and 2WikiMultiHopQA. While specific numbers are not provided in the abstract, the authors emphasize that reinforcement learning contributes to higher-quality rationales and improved QA performance. The experimental results confirm the effectiveness of combining distillation and RL to train a small guide model for a frozen large model.

Significance

This work has several implications for the AI field. First, it offers a practical method to enhance black-box LLMs' reasoning without requiring access to their weights, which is valuable for industry applications. Second, it demonstrates that a small model can effectively guide a much larger one, suggesting that parameter-efficient training can yield substantial gains. Third, the use of RL with task-oriented rewards for rationale generation opens avenues for optimizing intermediate reasoning steps directly for end-task performance. Overall, LM-Guided CoT contributes to the broader goal of making advanced reasoning more accessible and efficient.