Papers › OPID: On-Policy Skill Distillation for Agentic Reinforcement Learning

OPID: On-Policy Skill Distillation for Agentic Reinforcement Learning

25 Jun 2026arXiv:2606.26790added by Syntology

Shuo Yang, Jinyang Wu, Zhengxi Lu, Yuhao Shen, Fan Zhang, Lang Feng, Shuai Zhang, Haoran Luo, Zheng Lian, Zhengqi Wen, Jianhua Tao

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Outcome-based reinforcement learning provides a stable optimization backbone for language agents, but its sparse trajectory-level rewards provide little guidance on which intermediate decisions should be reinforced or suppressed. On-policy self-distillation offers dense token-level supervision, yet existing skill-conditioned variants often rely on external skill memories or retrieved privileged context, which are costly to maintain and can be mismatched with the state distribution induced by the current policy in multi-turn interaction. We propose \textbf{OPID} (\textbf{O}n-\textbf{P}olicy Sk\textbf{i}ll \textbf{D}istillation), a framework that extracts skill supervision directly from completed on-policy trajectories. OPID represents trajectory hindsight as hierarchical skills: episode-level skills capture global workflows or failure-avoidance rules, while step-level skills capture local decision knowledge at critical timesteps. A critical-first routing mechanism uses step-level skills when critical decisions are identified and falls back to episode-level skills as default guidance otherwise. The selected skill is injected into the interaction history, allowing the old policy to re-score the same sampled response under both original and skill-augmented contexts. The resulting log-probability shift yields a token-level self-distillation advantage, which is combined with the outcome advantage for policy optimization. OPID thus preserves RL as the primary training objective while introducing dense, distribution-matched hindsight supervision. Experiments on ALFWorld, WebShop and Search-based QA demonstrate that OPID generally improves agent performance, sample efficiency, and robustness over outcome-only RL and existing skill-distillation baselines. Our code is available at https://github.com/jinyangwu/OPID/tree/main.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.26790")

Code

Syntology Ran 16 of 18 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 14 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jinyangwu/OPID found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 16 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
14ran
2unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jinyangwu/OPID. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_episode_records jinyangwu/OPID/opid/analysis.py found in paper text by Syntology ran MIT (permissive) · c4b95f8ac11b9792 · report
build_group_size_summary jinyangwu/OPID/gigpo/core_gigpo.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 8b27d7fff6474834 · report
build_message jinyangwu/OPID/utils/prompt_builder.py found in paper text by Syntology ran MIT (permissive) · d20db4e6b7e60238 · report
build_messages jinyangwu/OPID/utils/prompt_builder.py found in paper text by Syntology ran MIT (permissive) · d5573e2aaa360199 · report
build_prompt_dict jinyangwu/OPID/utils/prompt_builder.py found in paper text by Syntology ran MIT (permissive) · 87c2f22727432999 · report
build_traj_step_indices jinyangwu/OPID/opid/analysis.py found in paper text by Syntology ran MIT (permissive) · 60822cb885a1efba · report
compute_ce_dpo_loss_rm jinyangwu/OPID/recipe/prime/prime_core_algos.py found in paper text by Syntology ran MIT (permissive) · f220595adfc5e83c · report
compute_detach_dpo_loss_rm jinyangwu/OPID/recipe/prime/prime_core_algos.py found in paper text by Syntology ran MIT (permissive) · 4d91e4383716e42c · report
compute_group_size_distribution_metrics jinyangwu/OPID/gigpo/core_gigpo.py found in paper text by Syntology ran MIT (permissive) · 31933b7ca2497b7f · report
compute_online_dpo_loss jinyangwu/OPID/recipe/spin/core_algos.py found in paper text by Syntology ran MIT (permissive) · f19825983a523003 · report
compute_onlinedpo_pref jinyangwu/OPID/recipe/spin/core_algos.py found in paper text by Syntology ran MIT (permissive) · 7a988deb09f43a64 · report
extract_message_text jinyangwu/OPID/utils/openai_api.py found in paper text by Syntology ran MIT (permissive) · 1a9de33642d4c7c7 · report
get_kl_controller jinyangwu/OPID/recipe/spin/core_algos.py found in paper text by Syntology ran MIT (permissive) · 757d109d90121142 · report
reward_func jinyangwu/OPID/recipe/r1/reward_score.py found in paper text by Syntology ran MIT (permissive) · c30b2a96103abd2c · report
to_hashable jinyangwu/OPID/gigpo/core_gigpo.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 862de021e4c430ca · report
unpad_dataproto jinyangwu/OPID/verl/protocol.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 25f0ea3f460f6ce1 · report
get_weight_loader jinyangwu/OPID/verl/models/weight_loader_registry.py found in paper text by Syntology unverified MIT (permissive) · acf240079d434746 · report
get_weight_saver jinyangwu/OPID/verl/models/weight_loader_registry.py found in paper text by Syntology unverified MIT (permissive) · 55f217ce71432b58 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.26790, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections