Transfer RL-discovered policy shifts from weak teachers to stronger students.
Shiyuan Feng* · Huan-ang Gao*‡ · Haohan Chi* · Hanlin Wu · Zhilong Zhang · Zheng Jiang · Bingxiang He · Wei-Ying Ma · Ya-Qin Zhang · Hao Zhou†
1SIA-Lab of Tsinghua AIR and ByteDance Seed
2Institute for AI Industry Research (AIR), Tsinghua University
3Department of Computer Science and Technology, Tsinghua University
4Peking University
* Equal contribution · ‡ Project Lead · † Corresponding author
Direct-OPD transfers the policy shift learned by a small RL teacher to a stronger student, instead of asking the student to imitate the teacher's final distribution. Given a pre-RL teacher reference
The student remains on-policy: rollouts come from the current student, while the teacher/reference log-ratio scores the candidate tokens the student actually considers. This repository contains the training code used for the JustRL-to-Qwen Direct-OPD experiment, built on a patched verl codebase. Model releases and related artifacts are collected on Hugging Face.
- Weak RL teachers can improve stronger students by transferring the direction learned during RL.
- Direct-OPD avoids matching the post-RL teacher endpoint, which can import the weak teacher's capacity ceiling.
- Small-model RL followed by Direct-OPD reduces the need to rediscover credit assignment on larger models.
- Policy shifts learned by different RL processes can be applied sequentially to the same student.
Install dependencies:
conda create -n direct-opd python=3.12
conda activate direct-opd
cd verl
USE_MEGATRON=0 bash scripts/install_vllm_sglang_mcore.sh
pip install math-verify pyarrow transformers
cd ..Place or symlink model weights and the training parquet under the default paths described in docs/setup.md, then launch:
bash scripts/train_justrl_qwen.shFor custom model paths, logging, and launch options, see docs/setup.md.
datasets/eval/ validation parquets used by the training script
scripts/ experiment launch scripts
verl/ patched verl source tree
docs/setup.md setup, path, and launch notes
@misc{feng2026directopd,
title = {Weak-to-Strong Generalization via Direct On-Policy Distillation},
author = {Shiyuan Feng and Huan-ang Gao and Haohan Chi and Hanlin Wu and Zhilong Zhang and Zheng Jiang and Bingxiang He and Wei-Ying Ma and Ya-Qin Zhang and Hao Zhou},
year = {2026},
eprint = {2607.05394},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2607.05394}
}