SOD: Step-wise On-policy Distillation for Small Language Model Agents

Qiyong Zhong, Mao Zheng, Mingyang Song, Xin Lin, Jie Sun +3 more
5/8/2026
30 citations
cs.CLcs.AI
rldistillation

Official code: YoungZ365/SOD (166 stars, Python, Apache-2.0, last commit 2026-05-22).

Abstract

Tool-integrated reasoning (TIR) is difficult to scale to small language models due to instability in long-horizon tool interactions and limited model capacity. While reinforcement learning methods like group relative policy optimization provide only sparse outcome-level rewards.

Show full abstract

Recently, on-policy distillation (OPD) has gained popularity by supplying dense token-level supervision from a teacher on student-generated trajectories. However, our experiments indicate that applying OPD to TIR leads to a critical failure mode: erroneous tool calls tend to cascade across subsequent reasoning steps, progressively amplifying student-teacher divergence and rendering the teacher's token-level supervision increasingly unreliable. To address this, we propose SOD, a step-wise on-policy distillation framework for small language model agents, which adaptively reweights distillation strength at each step based on step-level divergence. Therefore, SOD can attenuate potentially misleading teacher signals in high-divergence regions while preserving dense guidance in well-aligned states. Experiments on challenging math, science, and code benchmarks show that SOD achieves up to 20.86% improvement over the second-best baseline. Notably, our 0.6B student achieves 26.13% on AIME 2025, demonstrating effective transfer of agentic reasoning to lightweight models. Our code is available at https://github.com/YoungZ365/SOD.

View on arXivView PDF

Code Implementations(1)

YoungZ365/SODOfficial100%
Apache-2.0

PyTorch-based open-source code for paper "SOD: Step-wise On-policy Distillation for Small Language Model Agents"

16611Python, ShellMay 8, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhong2026sod,
  title  = {SOD: Step-wise On-policy Distillation for Small Language Model Agents},
  author = {Qiyong Zhong and Mao Zheng and Mingyang Song and Xin Lin and Jie Sun and Houcheng Jiang and Xiang Wang and Junfeng Fang},
  year   = {2026},
  eprint = {2605.07725},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.07725v3}
}

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/2605.07725.svg)](https://codeofpaper.com/paper/2605.07725)

Discussion