研究如何有效将大模型的思维链能力蒸馏到小模型中
Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning
- 根据学生模型强弱选择不同粒度的思维链监督
- 强模型适合细粒度思维链,弱模型反而需简单提示
- 教师模型多样性比单纯准确更重要,适合优化小模型蒸馏
大型语言模型通过思维链(CoT)提示在推理任务中表现优异,但该方法显著增加计算开销,促使人们关注将CoT能力蒸馏到小型语言模型(SLMs)中。本研究系统考察了影响CoT蒸馏的关键因素,包括粒度、格式和教师模型的选择。在四个教师模型与七个学生模型、七种数学与常识推理数据集上的实验揭示三个关键发现:(1)与大模型不同,小模型的性能随粒度变化呈非单调关系——强模型受益于更细粒度的推理,弱模型则在简单提示下表现更好;(2)CoT格式对大模型影响显著,但对小模型几乎无影响,可能因其依赖微调而非预训练偏好;(3)更强的教师模型并不总能生成更好的学生模型,因为思维链的多样性与复杂性可能超过单一准确性。研究强调应针对特定学生模型定制蒸馏策略,为优化小模型的思维链蒸馏提供可操作指导。代码与数据集见 https://github.com/EIT-NLP/Distilling-CoT-Reasoning。
原文摘要 · Abstract (English)
Large Language Models (LLMs) excel in reasoning tasks through Chain-of-Thought (CoT) prompting. However, CoT prompting greatly increases computational demands, which has prompted growing interest in distilling CoT capabilities into Small Language Models (SLMs). This study systematically examines the factors influencing CoT distillation, including the choice of granularity, format and teacher model. Through experiments involving four teacher models and seven student models across seven mathematical and commonsense reasoning datasets, we uncover three key findings: (1) Unlike LLMs, SLMs exhibit a non-monotonic relationship with granularity, with stronger models benefiting from finer-grained reasoning and weaker models performing better with simpler CoT supervision; (2) CoT format significantly impacts LLMs but has minimal effect on SLMs, likely due to their reliance on supervised fine-tuning rather than pretraining preferences; (3) Stronger teacher models do NOT always produce better student models, as diversity and complexity in CoT supervision can outweigh accuracy alone. These findings emphasize the need to tailor CoT strategies to specific student model, offering actionable insights for optimizing CoT distillation in SLMs. The code and datasets are available at https://github.com/EIT-NLP/Distilling-CoT-Reasoning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。