RLKD: Distilling LLMs' Reasoning via Reinforcement Learning

Shicheng Xu, Liang Pang, Yunchang Zhu, Jia Gu, Zihao Wei +4 more
5/22/2025
11 citations
cs.CL
rldistillation

Official code: xsc1234/RLKD (0 stars, Python, last commit 2025-12-05).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

xsc1234/RLKDOfficial100%

Code for the paper "Distilling the Implicit Multi-Branch Structure in LLMs' Reasoning via Reinforcement Learning" (AAAI-2026)

00Python, ShellNov 15, 202512 months ago

Similar Papers

Cite this paper

@article{xu2025rlkd,
  title  = {RLKD: Distilling LLMs' Reasoning via Reinforcement Learning},
  author = {Shicheng Xu and Liang Pang and Yunchang Zhu and Jia Gu and Zihao Wei and Jingcheng Deng and Feiyang Pan and Huawei Shen and Xueqi Cheng},
  year   = {2025},
  eprint = {2505.16142},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.16142v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16142.svg)](https://codeofpaper.com/paper/2505.16142)

Discussion