TL;DR
This paper challenges the assumption that the correctness of training data is paramount for language model reasoning. Surprisingly, fine-tuning models on synthetic "chain-of-thought" traces that lead to incorrect final answers can improve reasoning performance, sometimes even outperforming training on human-annotated, correct data. This suggests that the distributional similarity of training data to the model's own output distribution is a critical, often overlooked, factor in effective reasoning training.
What Problem Does This Paper Address?
Large language models (LLMs) have shown impressive progress in reasoning tasks, often by fine-tuning them on "chain-of-thought" (CoT) traces – step-by-step reasoning processes. A prevailing assumption in this field is that the quality of training data is directly proportional to the correctness of its final answers. Consequently, researchers have focused on curating datasets with highly accurate, human-annotated traces or filtering model-generated traces based on final answer correctness. This paper questions this assumption, investigating whether CoT traces that lead to incorrect final answers can still be valuable for training, and exploring the trade-off between data correctness and its distributional proximity to the model being trained.
Methods
The core of this research lies in a systematic study of supervised fine-tuning (SFT) on reasoning traces categorized into three types:
- Human-annotated (H): Fully correct and carefully verified, but potentially distributionally distant from the model.
- Synthetic, Correct (G): Generated by a stronger model, leading to correct final answers, often filtered by rule-based verifiers. These are closer to the model's distribution than human data.
- Synthetic, Incorrect (W): Generated by a stronger model, leading to incorrect final answers. These are typically discarded but are hypothesized to be even closer to the model's distribution.
The authors generate synthetic datasets (G and W) using stronger LLMs and then fine-tune smaller LLMs on these datasets, comparing performance against fine-tuning on human-annotated data (H). They also explore the effect of paraphrasing human traces to make them distributionally closer to the model and conduct experiments to understand LLM tolerance to errors by progressively introducing flawed reasoning steps.
Datasets
The study utilizes several standard reasoning benchmarks:
- MATH: A competition-level mathematics dataset.
- GSM8K: A grade-school level mathematics dataset.
- Countdown: A numerical reasoning task requiring reaching a target number using given operands and operators.
- MBPP: A dataset for code generation tasks.
Synthetic CoT traces (G and W) were generated using models like Gemma-2-27B-IT and Qwen-14B-IT, and then used to fine-tune models such as Gemma-2B, Llama-3.1-8B, and Qwen2.5-1.5B.
Key Insights and Ideas
- Distribution over Correctness: The most striking finding is that synthetic CoT traces leading to incorrect final answers (W) can significantly improve reasoning performance, often surpassing fully correct human-annotated traces (H). This highlights that distributional similarity is a crucial factor, potentially more so than final answer correctness.
- "Incorrect" Traces Aren't Entirely Wrong: The "incorrect" synthetic traces often contain valid intermediate reasoning steps or useful patterns, allowing models to learn valuable signals despite the flawed final outcome.
- Human Data Can Be "Too Good": Human-annotated data, while correct, might be distributionally too far from the model's own generation patterns, making it harder for the model to learn from. Paraphrasing human traces to align better with the model's distribution improves performance.
- LLMs Tolerate Errors: LLMs can tolerate a moderate amount of flawed reasoning steps in training data without significant performance degradation, especially if the data is distributionally close.
- Final Answer is Not Enough: The study suggests that relying solely on final answer correctness to evaluate CoT quality is insufficient. The internal structure and distribution of reasoning steps matter.
Key Results
- On MATH, GSM8K, and MBPP, fine-tuning with synthetic CoTs (both G and W) consistently outperformed fine-tuning with human-annotated CoTs (H).
- For GSM8K, W CoTs sometimes surpassed G CoTs in performance gains.
- On harder tasks like Countdown, where base performance is near zero, W CoTs still provided significant improvements.
- Paraphrasing human CoTs to better match the model's distribution led to improved performance, with paraphrased data sometimes outperforming even the original synthetic G traces.
- Controlled experiments showed that accuracy declines steadily as the proportion of completely flawed CoTs increases beyond 25%, but even 100% flawed synthetic data exhibited lower training losses than human data, indicating distributional closeness.
Limitations and Future Work
- SFT Focus: The study primarily focuses on Supervised Fine-Tuning (SFT). Future work should investigate if these findings extend to Reinforcement Learning (RL) settings.
- Evaluation Proxies: While perplexity and training losses are used as proxies for distributional closeness, more direct methods could be explored.
- Verifying Step-Level Correctness: The reliance on final answer accuracy for evaluation highlights a need for better methods to verify the step-level correctness of reasoning.
- Automated Distribution Matching: Developing principled algorithms to automatically align external data distributions with a model's native output is a promising direction.
- Scaling Beyond 9B: The paper acknowledges that scaling behavior for models larger than 9B might differ and warrants further investigation.
Summary updated