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

通过强化学习蒸馏LLM的推理能力:RLKD

RLKD: Distilling LLMs' Reasoning via Reinforcement Learning

State Key Laboratory of AI Safety, Institute of Computing Technology, CAS(人工智能安全国家重点实验室,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);Huawei Inc.(华为公司)

Shicheng Xu, Liang Pang, Yunchang Zhu, Jia Gu, Zihao Wei, Jingcheng Deng, Feiyang Pan, Huawei Shen, Xueqi Cheng

AI总结:

RLKD通过强化学习和生成结构奖励模型,有效蒸馏LLM的多分支推理结构,提升学生模型的推理能力。

摘要:

通过监督微调(SFT)从教师模型到学生模型蒸馏推理路径,为提高较小的大语言模型(LLM)的推理能力提供了一条捷径。然而,教师模型生成的推理路径往往只反映了其底层真实推理的表面痕迹。认知神经科学的见解表明,真实推理涉及元推理(从多个候选子问题中选择适当子问题)和解决问题(解决子问题)之间的复杂交织。这表明真实推理具有隐含的多分支结构。监督微调将这种丰富的结构压缩成教师推理路径中的扁平token预测序列,阻碍了这种结构的有效蒸馏到学生中。为了解决这一限制,我们提出了RLKD,一种基于强化学习(RL)的蒸馏框架,由新的生成结构奖励模型(GSRM)引导。我们的GSRM将推理路径转换为多个元推理-解决问题步骤,并计算奖励以衡量学生和教师推理之间的结构对齐。RLKD结合此奖励与RL,使学生LLM能够内化教师的隐含多分支推理结构,而不是仅仅模仿固定输出路径。实验表明,RLKD在仅训练0.1%的数据时,即使在纯RL环境下也优于标准SFT-RL流程,解锁了比SFT蒸馏更大的学生推理潜力。代码可在https://github.com/xsc1234/RLKD上获取。

英文摘要:

Distilling reasoning paths from teacher to student models via supervised fine-tuning (SFT) provides a shortcut for improving the reasoning ability of smaller Large Language Models (LLMs). However, the reasoning paths generated by teacher models often reflect only surface-level traces of their underlying authentic reasoning. Insights from cognitive neuroscience suggest that authentic reasoning involves a complex interweaving between meta-reasoning (which selects appropriate sub-problems from multiple candidates) and solving (which addresses the sub-problem). This implies authentic reasoning has an implicit multi-branch structure. Supervised fine-tuning collapses this rich structure into a flat sequence of token prediction in the teacher's reasoning path, preventing effective distillation of this structure to students. To address this limitation, we propose RLKD, a reinforcement learning (RL)-based distillation framework guided by a novel Generative Structure Reward Model (GSRM). Our GSRM converts reasoning paths into multiple meta-reasoning-solving steps and computes rewards to measure structural alignment between student and teacher reasoning. RLKD combines this reward with RL, enabling student LLMs to internalize the teacher's implicit multi-branch reasoning structure rather than merely mimicking fixed output paths. Experiments show RLKD surpasses standard SFT-RL pipelines even when trained on 0.1% of data under an RL-only regime, unlocking greater student reasoning potential than SFT-based distillation. Code is available at https://github.com/xsc1234/RLKD.

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

↑