TL;DR
This paper introduces a novel framework for "difficulty-aware" Chain-of-Thought (CoT) reasoning in Large Language Models (LLMs). By training models to adjust the length and depth of their reasoning based on problem complexity, they achieve significant reductions in token usage (up to 30%) without sacrificing accuracy, making LLM reasoning more efficient and adaptable.
What Problem Does This Paper Address?
Chain-of-Thought (CoT) prompting has revolutionized LLM reasoning, enabling complex problem-solving by generating intermediate steps. However, a major drawback is the "over-thinking" problem: LLMs often produce excessively verbose CoT traces, even for simple problems. This verbosity leads to increased latency, computational cost, and energy consumption, which is particularly problematic for real-time applications and large-scale deployment. The paper addresses this by proposing a method to make LLMs reason "proportionally" to problem difficulty, mimicking human cognitive effort where simpler tasks require less intensive thought.
Methods
The core of the proposed framework involves a two-stage training process:
- Data Generation (Difficulty-Aware Compression):
- Difficulty Estimation: A teacher LLM (GPT-4o-mini) is used to assign a difficulty score (1-10) to each math problem, aligned with the AoPS standard.
- CoT Compression: The original, verbose CoT traces from a high-capacity teacher model are compressed into shorter, difficulty-aligned versions. This compression is guided by the estimated difficulty, ensuring simpler problems get concise reasoning and complex ones get more detailed traces. This is achieved using prompt-based summarization with GPT-4o-mini.
- Model Training (Distillation):
- Supervised Fine-Tuning (SFT): Student models are trained to imitate the compressed, difficulty-aligned CoT traces. This stage primarily teaches the model the style and format of concise reasoning.
- Direct Preference Optimization (DPO): This stage further refines the model's behavior by using pairwise preferences. The compressed trace is treated as the preferred response, and the original long trace as the rejected one. DPO explicitly teaches the model to favor accurate and efficient reasoning.
- Hybrid Training (SFT + DPO): The paper finds that combining SFT followed by DPO yields the best results, leveraging SFT for learning concise styles and DPO for preserving accuracy.
Datasets
- Unimodal Data: Approximately 125K unique math problems from the OpenMathReasoning dataset (CoT split), with long reasoning traces generated by DeepSeek-R1 and Qwen-QwQ-32B.
- Multimodal Data: A subset of LLaVA-CoT-100K, comprising about 60,000 examples.
Key Insights and Ideas
- "Thinking Proportionally": The central idea is that LLMs should adapt their reasoning depth to problem complexity, just like humans. This is achieved by training on difficulty-aligned CoT traces.
- SFT vs. DPO for CoT: SFT is effective at learning the format and brevity of reasoning, but can sacrifice accuracy. DPO, on the other hand, excels at preserving accuracy and correctness but offers less efficiency gain. Their combination is crucial.
- No Architectural Changes Needed: The framework achieves dynamic reasoning pathways without modifying the LLM's architecture, relying solely on data curation and post-training.
- Multimodal Reasoning is Less Optimized Initially: The paper observes that initial CoT traces for multimodal problems are already more optimized than unimodal ones, leading to lower compression ratios for multimodal data.
Key Results
- Token Reduction: The proposed SFT+DPO approach achieves up to 30-35% reduction in reasoning token usage compared to baseline models. For instance, the 1.5B SFT+DPO model uses 8.5% fewer tokens than its base counterpart on AIME while maintaining comparable performance.
- Accuracy Maintained or Improved: Despite significant token reduction, the models either maintain or improve their final answer accuracy.
- Competitive Performance: The SFT+DPO models achieve competitive or superior accuracy compared to stronger baselines on various benchmarks. For example, the 7B SFT model on multimodal tasks attains 28% on MathVerse, outperforming LLaVA-CoT-11B (22%).
- Qualitative Improvements: LLM-as-Judge evaluations show that SFT+DPO models score higher in clarity, completeness, and correctness, while maintaining low redundancy, compared to baseline models.
Limitations and Future Work
- Dataset Size: The training dataset is smaller than those used in prior large-scale distillation efforts, which might limit generalization.
- Evaluation Metric: The evaluation primarily uses the pass@1 metric, which doesn't fully account for generation variability.
- Parameter-Efficient Fine-Tuning: The use of LoRA fine-tuning, while efficient, might underutilize the model's full capacity.
- Difficulty Estimation Proxy: The difficulty estimation relies on GPT-4o-mini as a proxy for human assessment, and potential errors could propagate.
The authors suggest future work could explore larger datasets, more robust evaluation metrics, and full model fine-tuning to further enhance the framework's capabilities.
Summary updated