Abstract
Chain-of-Thought (CoT) prompting has successfully enhanced the reasoning capabilities of Large Language Models (LLMs) with at least 100 billion parameters. However, it is ineffective, or even detrimental, to the performance on reasoning tasks in Smaller Language Models (SLMs) with less than 10 billion parameters. In this paper, we propose Dialogue-guided Chain-of-Thought (DialCoT) to improve the reasoning capabilities of SLMs, with the aim of generating intermediate reasoning steps in a dialogue format to guide the model to the final answer. Furthermore, we optimize the model to choose the optimal reasoning path through the Proximal Policy Optimization (PPO) algorithm, further enhancing its reasoning capabilities. Compared to previous methods, our advantages lie in: 1) We transform the process of solving complex reasoning problems into decomposing problems and solving a series of simpler sub-questions, significantly reducing task difficulty and making it more suitable for SLMs. 2) We optimize the model to choose the optimal reasoning path through the PPO algorithm. Comprehensive experiments on four arithmetic reasoning datasets show that our method can achieve significant performance gains over state-of-the-art competitors.
Introduction
Chain-of-Thought (CoT) prompting—asking a model to "show its work"—has revolutionized how Large Language Models (LLMs) like GPT-4 handle logic. However, there is a "scaling law" catch: CoT usually only works for models with over 100 billion parameters. For Smaller Language Models (SLMs) under 10B parameters, CoT is often ineffective or even detrimental, as these models lack the "emergent" ability to maintain long, coherent reasoning chains in a single go.
The authors identify that SLMs struggle with the sheer complexity of generating an entire reasoning path at once. They set out to bridge this gap by transforming reasoning from a long monologue into a structured dialogue, making the task manageable for smaller architectures.
Methodology: Dialogue-guided Chain-of-Thought (DialCoT)
The researchers propose Dialogue-guided Chain-of-Thought (DialCoT). Instead of one prompt, they assign the model two distinct roles that interact:
- The Decomposer: Breaks the original complex question into simpler sub-questions.
- The Solver: Answers each sub-question sequentially to reach the final answer.
They experimented with three interaction styles:
- DialCoT-A (All at once): The Decomposer lists all sub-questions, and the Solver answers them all in one block.
- DialCoT-M (Mixed): The Decomposer lists all sub-questions, but the Solver answers them one by one.
- DialCoT-S (Step-by-step): A true dialogue where the Decomposer asks one question, the Solver answers it, and then the Decomposer asks the next based on that answer.
Optimization with PPO
To further enhance performance, they introduced DialCoT-S-PPO. Using Proximal Policy Optimization (PPO), they trained the model to choose the "optimal reasoning path." By generating multiple candidate steps via beam search, the PPO policy network learns to pick the intermediate steps most likely to lead to a correct final answer.
Experimental Setup
The model was trained on a subset of GSM8K (7,000 training instances) and evaluated on four primary arithmetic reasoning benchmarks: GSM8K (grade school math), MultiArith (multi-step arithmetic), ASDiv (diverse math word problems), and SVAMP (robustness testing). The method was tested on both Encoder-Decoder (Flan-T5) and Decoder-only (LLaMA-7B) architectures.
Key Results and Insights
The results show that DialCoT-S-PPO consistently outperforms standard CoT and other fine-tuning methods. On the FlanT5-XXL (11B) backbone, DialCoT-S-PPO reached an average accuracy of 47.0% across the four datasets, outperforming the previous best competitor (SpecialFT) by 6.2%. Remarkably, DialCoT-S-PPO (11B) outperformed the much larger LaMDA-137B on average across the benchmarks.
Key insights include:
- Decomposition as an Equalizer: Breaking a problem down reduces task difficulty for SLMs, removing the need to hold a complex global state.
- Sequential Superiority: The "Step-by-step" (DialCoT-S) variant performed best, suggesting SLMs benefit from seeing previous answers before generating the next sub-question.
- Data Efficiency: DialCoT achieved state-of-the-art results using only 1/20th of the training data required by previous methods.
Conclusion and Limitations
DialCoT demonstrates that the format of reasoning is crucial for SLMs. However, limitations remain. The current reward function is tuned for arithmetic, making expansion to commonsense reasoning a future challenge. Additionally, the multi-turn dialogue increases inference latency compared to single-prompt methods. Future work will explore scaling these benefits to larger models and broader domains.
Summary updated