arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.31048cs.LGcs.AIcs.CL
收藏

从大型推理模型到紧凑学生模型的知识蒸馏:以约翰·O·布莱恩数学竞赛为例

Knowledge Distillation from Large Reasoning Models to Compact Student Models: A Case Study on the John O Bryan Mathematics Competition

Northern Kentucky University(北肯塔基大学)

Gaurab Baral, Aaditya Khanal, Yangyang Tao, Junxiu Zhou

AI总结:

本文研究从大型推理模型DeepSeek-R1向紧凑学生模型Qwen2.5-7B的知识蒸馏,通过构建思维链训练语料库微调,使学生在竞赛数据集上准确率提升4.76个百分点,并发现响应长度对数学推理质量至关重要。

摘要:

本文研究了从大型推理模型(DeepSeek-R1)到紧凑学生模型(Qwen2.5-7B)的知识蒸馏。利用北肯塔基大学约翰·O·布莱恩数学竞赛(2011-2025)的历史问题,我们通过双智能体框架构建了思维链(CoT)训练语料库。该数据集用于在Apple Silicon硬件上使用MLX框架通过低秩适配(LoRA)微调学生模型。基础Qwen2.5-7B模型在竞赛问题上的准确率为64.67%,而DeepSeek-R1教师模型达到91.40%。初始的1,000次迭代训练显示出严重的过拟合,验证损失在第200次迭代达到最小值后持续上升。基于这一发现,我们进行了五次独立的训练运行,每次限制为200次迭代,并使用不同的随机种子以评估结果的稳定性。在这五次运行中,微调后的学生模型在竞赛数据集上的平均准确率为69.43%(标准差0.17%),比基础模型提高了4.76个百分点,并在MATH-500基准上泛化到73.1%(标准差0.18%)。我们进一步研究了响应长度如何影响六个推理级别(R1-R6)的答案质量:准确率从R1(平均220词)的69.43%持续下降到R6(平均31.2词)的41.9%,其中两人速度部分对令牌减少最为敏感。这些结果表明,CoT蒸馏改进了紧凑学生模型,并且响应长度是数学推理质量的关键因素。

英文摘要:

This paper investigates knowledge distillation from a large reasoning model (DeepSeek-R1) to a compact student model (Qwen2.5-7B). Using historical problems from the John O'Bryan Mathematics Competition at Northern Kentucky University (2011-2025), we build a Chain-of-Thought (CoT) training corpus through a dual-agent framework. The dataset is used to fine-tune the student model with Low-Rank Adaptation (LoRA) on Apple Silicon hardware using the MLX framework. The base Qwen2.5-7B model achieves 64.67% accuracy on competition problems, while the DeepSeek-R1 teacher achieves 91.40%. An initial 1,000-iteration training run revealed severe overfitting, with validation loss reaching a minimum at iteration 200 before rising steadily. Based on this finding, we ran five independent training runs each limited to 200 iterations with varied random seeds to assess result stability. Across these five runs, the fine-tuned student model achieves a mean accuracy of 69.43% (std dev 0.17%) on the competition dataset, a 4.76 percentage-point improvement over the base model, and generalizes to 73.1% (std dev 0.18%) on the MATH-500 benchmark. We further study how response length affects answer quality across six reasoning levels (R1-R6): accuracy declines consistently from 69.43% at R1 (mean 220 words) to 41.9% at R6 (mean 31.2 words), with the two-person speed section most sensitive to token reduction. These results demonstrate that CoT distillation improves compact student models and that response length is a critical factor in mathematical reasoning quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑