Papers
arxiv:2607.17247

Distilled Reinforcement Learning for LLM Post-training

Published on Jul 19
· Submitted by
Chen Wang
on Jul 21
Authors:
,
,
,
,
,
,

Abstract

Large language model (LLM) post-training is essential for improving reasoning, adaptation, and alignment. Existing methods mainly follow two paradigms: reinforcement learning (RL) and on-policy distillation (OPD). However, RL relies on coarse-grained outcome supervision, resulting in difficult credit assignment and limited capability to acquire new knowledge. OPD, meanwhile, unconditionally matches teacher logits through KL divergence, which creates a dilemma: similar teachers provide little new knowledge, while substantially different teachers often yield ineffective guidance, largely restricting OPD to within-family distillation. We propose Distilled Reinforcement Learning (Distilled RL), which integrates teacher supervision into the RL objective to provide fine-grained guidance, selectively transfer new knowledge and avoid unconditional imitation. Distilled RL contains three components: reverse importance sampling with clipping, negative sample reset, and sequence-level geometric normalization. Through a concise and interpretable case study, we demonstrate that Distilled RL can effectively transfer previously unavailable knowledge from a teacher model to a student model. Extensive experiments across both within-family and cross-family distillation settings show that Distilled RL substantially outperforms standard RL and OPD in terms of both pass@1 and pass@k. Our code is available at https://github.com/597358816/Distilled-RL.

Community

Paper submitter
edited 1 day ago

Distilled Reinforcement Learning for LLM Post-Training

arXiv GitHub

Standard reinforcement learning relies on coarse-grained outcome rewards, while on-policy distillation usually encourages the student to imitate the teacher distribution unconditionally. Distilled RL instead uses the teacher to redistribute the policy-gradient signal at the token level, providing selective and fine-grained guidance while preserving reward-driven optimization.

Overview

distilled-RL-main

Distilled RL consists of three components:

  1. Reverse importance sampling, which measures the teacher's relative preference for each student-generated token.
  2. Negative sample reset, which disables teacher reweighting on negative-advantage trajectories.
  3. Sequence-level geometric normalization, which removes sequence-level scale bias while preserving relative token preferences.

Method

Given a prompt $q$ and a response $o_i$ sampled from the old student policy, the standard policy ratio is

ri,t(θ)=πθ(oi,tq,oi,1:t1)πold(oi,tq,oi,1:t1)
r_{i,t}(\theta)
=
\frac{
\pi_{\theta}(o_{i,t} \mid q, o_{i,1:t-1})
}{
\pi_{\mathrm{old}}(o_{i,t} \mid q, o_{i,1:t-1})
}

The response-level advantage is estimated using group-normalized rewards:

Ai=Rimean({Rj}j=1G)std({Rj}j=1G).
A_i
=
\frac{
R_i - \mathrm{mean}(\{R_j\}_{j=1}^{G})
}{
\mathrm{std}(\{R_j\}_{j=1}^{G})
}.

Reverse Importance Sampling

We measure the teacher's relative preference for each student-generated token using

ρi,t=πteacher(oi,tq,oi,1:t1)πθold(oi,tq,oi,1:t1).
\rho_{i,t}
=
\frac{
\pi_{\mathrm{teacher}}(o_{i,t} \mid q, o_{i,1:t-1})
}{
\pi_{\theta_{\mathrm{old}}}(o_{i,t} \mid q, o_{i,1:t-1})
}.

To prevent extreme teacher–student likelihood ratios, we apply symmetric clipping:

ρˉi,t=clip(ρi,t,ϵρ1,ϵρ).
\bar{\rho}_{i,t}
=
\mathrm{clip}
\left(
\rho_{i,t},
\epsilon_{\rho}^{-1},
\epsilon_{\rho}
\right).

Sequence-Level Geometric Normalization

The clipped ratios are normalized within each response:

ρ~i,t=ρˉi,texp(1ois=1oilogρˉi,s).
\widetilde{\rho}_{i,t}
=
\frac{
\bar{\rho}_{i,t}
}{
\exp
\left(
\frac{1}{|o_i|}
\sum_{s=1}^{|o_i|}
\log \bar{\rho}_{i,s}
\right)
}.

The normalized ratios satisfy

(t=1oiρ~i,t)1/oi=1.
\left(
\prod_{t=1}^{|o_i|}
\widetilde{\rho}_{i,t}
\right)^{1/|o_i|}
=
1.

This normalization removes the sequence-level mean shift in log importance ratios while preserving the teacher's relative preferences across tokens.

Negative Sample Reset

Teacher guidance is applied only to positive-advantage responses:

wi,t={ρ~i,t,Ai>0,1,Ai0.
w_{i,t}
=
\begin{cases}
\widetilde{\rho}_{i,t}, & A_i > 0, \\
1, & A_i \leq 0.
\end{cases}

For negative-advantage responses, the update reduces to the original RL objective.

Distilled RL Objective

For responses sampled from the old student policy, the final policy optimization objective is

JDistilledRL(θ)=E[1Gi=1G1oit=1oimin(ri,t(θ)wi,tAi,r^i,t(θ)wi,tAi)],
\mathcal{J}_{\mathrm{DistilledRL}}(\theta)
=
\mathbb{E}
\left[
\frac{1}{G}
\sum_{i=1}^{G}
\frac{1}{|o_i|}
\sum_{t=1}^{|o_i|}
\min
\left(
r_{i,t}(\theta) w_{i,t} A_i,
\hat{r}_{i,t}(\theta) w_{i,t} A_i
\right)
\right],

where the clipped policy ratio is

r^i,t(θ)=clip(ri,t(θ),1ϵlow,1+ϵhigh).
\hat{r}_{i,t}(\theta)
=
\mathrm{clip}
\left(
r_{i,t}(\theta),
1-\epsilon_{\mathrm{low}},
1+\epsilon_{\mathrm{high}}
\right).

Unlike KL-based on-policy distillation, Distilled RL does not treat the teacher as an unconditional imitation target. Instead, the teacher selectively redistributes the reward-driven policy-gradient signal at the token level.

Main Results

We evaluate Distilled RL on three student models using Qwen3-8B-GRPO as the teacher. The table below reports the average Pass@1 over ten mathematical reasoning benchmarks.

Student Model Base OPD RL OPD+RL Distilled RL
DeepSeek-R1-Distill-Qwen-1.5B 31.70 35.27 36.86 36.54 40.00
Qwen3-1.7B 39.86 45.21 44.76 44.89 46.37
Qwen3-4B 46.33 55.97 57.40 56.38 58.96

Distilled RL consistently improves over standard RL, OPD, and their direct combination across different student scales and teacher–student settings.

Requirements

Software

Clone the repository:

git clone https://github.com/597358816/Distilled-RL.git
cd Distilled-RL

Install the required dependencies:

pip install torch==2.6.0 torchaudio==2.6.0 torchvision==0.21.0 vllm==0.8.3 transformers==4.51.2
pip install ray==2.48.0 tensordict==0.9.1 pydantic==2.11.7
pip install flash-attn
pip install -e .
pip install tensorboard
cd examples
bash XX.sh

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2607.17247
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2607.17247 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2607.17247 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2607.17247 in a Space README.md to link it from this page.

Collections including this paper 3