SDAR: Gated Self-Distillation Steadies RL Training for LLM Agents
Researchers from Zhejiang University, Meituan and Tsinghua add token-level teacher guidance to agent reinforcement learning, but gate it so unreliable signals don't derail training.
TL;DR
- SDAR adds token-level guidance from a skill-informed copy of the model to RL training for LLM agents, gating each token's weight to avoid instability [^1].
- On Qwen2.5-3B it lifted ALFWorld success from 75.0 to 84.4 percent over plain GRPO, while naive distillation setups collapsed or degraded [^1].
Background
Reinforcement learning trains LLM agents on tasks such as household text games, web shopping or search-based question answering, but its reward arrives once per trajectory, a coarse signal for long interactions [^1]. On-policy self-distillation, or OPSD, adds dense token-level guidance: the same model, given privileged context available only in training, acts as a teacher for the tokens the student generates [^1]. Here that context is retrieved skills, compact demonstrations such as sub-goal breakdowns or action templates [^1].
What happened
Researchers from Zhejiang University, Meituan and Tsinghua University report that OPSD does not carry over cleanly to multi-turn agents [^1]. Once the student drifts away from trajectories the teacher supports, the token-level supervision grows unreliable, the divergence between the two surges and task performance degrades sharply. The teacher's signals are also lopsided. When it rates a student's token higher, the skill endorses something the student can already do. When it rates it lower, that may be a real correction, or just an irrelevant skill, a teacher failing to use it, or drift across turns. In a preliminary study on Qwen2.5-3B-Instruct, such negative-gap tokens made up more than half of all tokens [^1].
Their method, SDAR, keeps GRPO reinforcement learning as the main objective and adds distillation as an auxiliary loss with a weight of 0.01 [^1]. Each token's distillation weight passes through a sigmoid gate driven by the teacher-student gap: tokens the teacher endorses get stronger distillation, tokens it rejects are softly damped. Because distillation is a separate loss, the RL advantage itself stays untouched [^1]. Of three gate designs tested, the gap-based one beat gates built on student entropy or a mix of both [^1].
The team trained Qwen2.5 and Qwen3 models for 150 steps on 8 H800 GPUs and tested them on ALFWorld, WebShop and a set of search-based QA benchmarks [^1]. On Qwen2.5-3B, SDAR raised ALFWorld success from 75.0 to 84.4 percent compared with GRPO, Search-QA accuracy by 7.0 points and WebShop accuracy by 4.7. On Qwen2.5-7B, WebShop accuracy rose from 72.6 to 82.8 [^1]. Standalone OPSD collapsed to near zero on Search-QA, and simply adding OPSD to GRPO cut ALFWorld success on Qwen3-1.7B to 32.0 percent, against 46.1 for GRPO alone. SDAR reached 53.9 there [^1].
Why it matters
The agent does not need the skills at test time. Skill-GRPO, which puts retrieved skills into the training prompt, fell from 80.5 to 60.2 percent on ALFWorld with the 3B model when tested without them, below plain GRPO. SDAR uses skills only during training and still reached 84.4 [^1]. The authors read this as the knowledge moving into the model's weights instead of staying in the prompt. The gate also blunts bad retrieval: in the robustness test, even skills picked at random beat plain GRPO, by 1.9 points on ALFWorld, while keyword matching added 4.7 [^1].
The evidence has limits. The tests cover three benchmark suites, models up to 7B parameters and 150 training steps [^1]. SDAR does not win everywhere: on Qwen2.5-3B it trailed GRPO+OPSD, Skill-SD and RLSD on Search-QA, scoring 43.4 against 44.6, 44.1 and 43.8. The headline gains in the abstract also mix model sizes, with the ALFWorld and Search-QA figures from the 3B model and the 10.2-point WebShop figure from the 7B [^1]. Tuning matters too: raising the distillation weight to 0.1 let the teacher's often weaker signal dominate and caused a severe decline [^1].
Practical example
Say Kenji's team trains a shopping agent that browses an online store to find products matching a customer's request, much like WebShop. With GRPO alone, the agent gets one reward at the end: right item bought or not [^1].
Kenji has a library of skill files, such as notes on breaking a purchase into sub-goals. Putting them into the training prompt is risky: in the paper, Skill-GRPO dropped from 80.5 to 60.2 percent on ALFWorld once the skills were taken away [^1]. Plain self-distillation is risky too. The same model reads the skill file and acts as a teacher, but once the agent wanders onto the wrong product page, that guidance becomes unreliable, and naive combinations degraded training in the paper [^1].
With SDAR, the reward still drives training. When the teacher, reading the skill, rates the agent's next token higher than the agent did, that token gets stronger distillation. When the teacher rates a token lower, perhaps because the retrieved note is about a different product category, the gate softens that signal instead of forcing it on the agent [^1]. Kenji keeps the distillation weight small, at the paper's 0.01, since 0.1 caused a severe decline [^1]. At deployment, the agent runs without any skill files at all [^1].
Related gear
We recommend this book because it explains reward signals, credit assignment and policy-gradient methods from the ground up, the foundation SDAR builds on.