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 OPID (On-Policy Skill Distillation), 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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 18 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 1 honoured, 0 violated, 6 with no contract checked; 9 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 9 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 16 ran (7 with no instrument failure; 9 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

jinyangwu/OPID found in paper text by SyntologySyntology: 18 samples, 16 ran (9 instrument-failed) · 2 unverified 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 (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 1 honoured, 0 violated, 6 with no contract checked; 9 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
9ran · our draft was wrong
6ran
2unverified

Licence: 4 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. For 4 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. 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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

jinyangwu/OPID found in paper text by Syntology 18 samples, 16 ran (9 instrument-failed) · 2 unverified
build_episode_records opid/analysis.py ran MIT (permissive) · c4b95f8ac11b9792 · report fixture: signature tokenizer:MinimalTokenizer/0/?, obs_texts:list/1/str, responses:Tensor/2/int, response_mask:Tensor/2/int, traj_index:list/1/str, step_indices:list/1/int, step_rewards:Tensor/1/float, obs_raws:list/1/str · returned defaultdict · level recorded 2026-09-24
build_group_size_summary gigpo/core_gigpo.py ran · our draft was wrong fingerprinted MIT (permissive) · 8b27d7fff6474834 · report fixture: signature group_size:list/1/int · returned dict · level recorded 2026-09-24
build_message utils/prompt_builder.py ran · our draft was wrong MIT (permissive) · d20db4e6b7e60238 · report fixture: signature role:str/0/str, content:str/0/str, extra_fields:dict/0/? · returned dict · level recorded 2026-09-24
build_messages in 17 papers utils/prompt_builder.py ran MIT (permissive) · d5573e2aaa360199 · report fixture: signature system_prompt:str/0/str, user_prompt:str/0/str, assistant_prompt:str/0/str, history:list/1/dict · returned list · level recorded 2026-09-24
build_prompt_dict utils/prompt_builder.py ran MIT (permissive) · 87c2f22727432999 · report fixture: signature system_prompt:str/0/str, user_prompt:str/0/str, assistant_prompt:str/0/str, history:list/1/dict, model:str/0/str, temperature:float/0/float, max_tokens:int/0/int · returned dict · level recorded 2026-09-24
build_traj_step_indices opid/analysis.py ran · honoured contract fingerprinted MIT (permissive) · 60822cb885a1efba · report fixture: signature traj_index:list/1/str · returned ndarray · level recorded 2026-09-24
compute_ce_dpo_loss_rm in 48 papers recipe/prime/prime_core_algos.py ran MIT (permissive) here; the stored copy is pointer only · f220595adfc5e83c · report fixture: signature token_level_scores:Tensor/2/float, acc:Tensor/1/float, response_mask:Tensor/2/float, beta:float/0/float · returned Tensor · level recorded 2026-09-24
compute_detach_dpo_loss_rm in 49 papers recipe/prime/prime_core_algos.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · 4d91e4383716e42c · report fixture: signature token_level_scores:Tensor/2/float, acc:Tensor/1/float, Q_bc:list/1/Tensor, acc_bc:Tensor/2/float, response_mask:Tensor/2/float, beta:float/0/float, bon_mode:str/0/str · returned Tensor · level recorded 2026-09-24
compute_group_size_distribution_metrics gigpo/core_gigpo.py ran · our draft was wrong MIT (permissive) · 31933b7ca2497b7f · report fixture: signature group_size:list/1/int, prefix:str/0/str · returned dict · level recorded 2026-09-24
compute_online_dpo_loss in 39 papers recipe/spin/core_algos.py ran MIT (permissive) here; the stored copy is pointer only · f19825983a523003 · report fixture: signature policy_chosen_logps:Tensor/1/float, policy_rejected_logps:Tensor/1/float, reference_chosen_logps:Tensor/1/float, reference_rejected_logps:Tensor/1/float, beta:float/0/float, label_smoothing:float/0/float, loss_type:str/0/str, reference_free:bool/0/bool · returned Tensor · level recorded 2026-09-24
compute_onlinedpo_pref in 39 papers recipe/spin/core_algos.py ran · our draft was wrong MIT (permissive) · 7a988deb09f43a64 · report fixture: signature token_level_rewards:Tensor/2/float, response_mask:Tensor/2/float · returned Tensor · level recorded 2026-09-24
extract_message_text utils/openai_api.py ran · our draft was wrong MIT (permissive) · 1a9de33642d4c7c7 · report fixture: signature response:MockResponse/0/? · returned str · level recorded 2026-09-24
get_kl_controller in 53 papers recipe/spin/core_algos.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · 757d109d90121142 · report fixture: signature kl_ctrl:KLControlConfig/0/? · returned AdaptiveKLController · level recorded 2026-09-24
reward_func in 49 papers recipe/r1/reward_score.py ran MIT (permissive) · c30b2a96103abd2c · report fixture: signature data_source:str/0/str, solution_str:str/0/str, ground_truth:str/0/str, extra_info:NoneType/0/? · returned MagicMock · level recorded 2026-09-24
to_hashable in 8 papers gigpo/core_gigpo.py ran · our draft was wrong fingerprinted MIT (permissive) · 862de021e4c430ca · report fixture: signature x:list/1/int · returned tuple · level recorded 2026-09-22
unpad_dataproto in 102 papers verl/protocol.py ran · our draft was wrong MIT (permissive) · 25f0ea3f460f6ce1 · report fixture: signature data:DataProto/0/?, pad_size:int/0/int · returned DataProto · level recorded 2026-09-22
get_weight_loader in 93 papers verl/models/weight_loader_registry.py unverified MIT (permissive) · acf240079d434746 · report
get_weight_saver in 69 papers verl/models/weight_loader_registry.py 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.

Placed on leaderboards by Syntology Syntology

Syntology's extractor, the model Claude Sonnet 4.5, judged this paper's tables to report on 2 leaderboards (a model's judgement, not a result) and has not placed the paper on any of them: Question Answering · Bamboogle (refused by a rule: the table does not name the leaderboard's dataset); Question Answering · PopQA (refused by a rule: the table does not name the leaderboard's dataset). What is not shown.

Syntology has checked 8,886 of the 18,637 papers on this site that are newer than the archive (for 3,717 of them no archive leaderboard matched the paper's tables, so there was nothing further to check); 733 were read and have nothing to place (arXiv has no HTML version of the paper, or that version has no tables), 41 could not be read (the extractor's reply could not be parsed), and results from the other 8,977 appear after they are checked.

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