AgentOPSD: Recursive Self-Distillation for Agentic Reinforcement Learning

Zi-Han Wang, Zhengxi Lu, Zhiyuan Yao, Jinyang Wu, Jie Wu, Zhengzhou Cai, Yueqing Sun, Ziang Ye, Linji Hao, Qi Gu, Xunliang Cai, Yongliang Shen, Yujiu YangarXiv 2026

TL;DR

AgentOPSD introduces a novel, critic-free method for assigning credit to individual actions in long-horizon agentic tasks. By recursively updating a Bayesian belief state based on "self-distillation" signals, it identifies pivotal turns that drive success, significantly outperforming standard reinforcement learning methods like GRPO without requiring extra rollouts or a learned critic.

What Problem Does This Paper Address?

Training Large Language Model (LLM) agents to solve complex, multi-step tasks (like navigating a website or managing a household) is notoriously difficult due to the credit assignment problem.

Most interactive environments only provide a "verifiable reward" at the very end—a binary success or failure. If an agent takes 50 steps and succeeds, standard reinforcement learning algorithms like GRPO (Group-Relative Policy Optimization) typically spread that success signal evenly across all 50 steps. However, in reality, only a few "pivotal" decisions likely determined the outcome, while others might have been redundant or even slightly counterproductive.

Existing attempts to provide "denser" supervision often rely on token-level signals that don't align well with environment turns, or they require expensive additional model rollouts to estimate the value of intermediate states.

Methods

The authors propose AgentOPSD (Recursive Self-Distillation for Agentic Reinforcement Learning). The core idea is to transform sparse outcome rewards into precise, turn-level credit signals using a recursive Bayesian framework.

  1. Turn-Level Evidence ($e_k$): The method uses "Online Privileged Self-Distillation" (OPSD). During training, the model acts as both a student and a "self-teacher." The teacher is given "privileged" information (retrieved skills or subgoals) that the student doesn't have. The log-probability gap between the teacher's preferred action and the student's actual action serves as "evidence" for how much that turn contributed to a successful path.
  2. Recursive Bayesian Belief Update: Instead of treating each turn's evidence in isolation, AgentOPSD maintains a belief state ($B_k$) in log-odds space, representing the probability of eventual success. At each turn, it updates this belief based on the new evidence.
  3. Marginal Revision ($\Delta B_k$): The actual credit assigned to a turn is the change in the belief state. If a turn significantly increases the model's confidence in success, it receives high credit. If the model was already certain of success, a redundant "correct" action receives less credit.
  4. Advantage Reshaping: These turn-level credits are used to reshape the global trajectory-level advantage from GRPO. This amplifies the learning signal for pivotal turns while attenuating it for routine ones.
Overview of the AgentOPSD architecture, showing how token gaps are aggregated into turn-level evidence and then recursively updated to assign credit.

Crucially, this entire process happens within a single training pass. It requires no additional rollouts and no separate "critic" network, making it highly efficient.

Datasets

The researchers evaluated AgentOPSD across three diverse interactive environments:

  • ALFWorld: A text-based embodied environment where agents perform household tasks (e.g., "put a clean sponge in the cabinet").
  • WebShop: An e-commerce environment requiring agents to search, navigate, and purchase items based on specific user constraints.
  • Search-QA: A search-augmented question-answering task where agents must issue queries and synthesize information from retrieved documents.

Testing was conducted using the Qwen2.5 model family at 3B and 7B parameter scales.

Key Insights and Ideas

  • History Matters: A local "good" signal isn't enough for credit assignment. The value of an action depends on what happened before it. The recursive update ensures that credit is only given for new progress toward the goal.
  • Turn-Level Granularity is Key: In agentic RL, the environment only changes at turn boundaries. Aggregating token-level signals into turn-level evidence aligns the training signal with the actual causal structure of the task.
  • Bayesian Log-Odds Space: Updating in log-odds space allows for a principled way to combine a global "prior" (the average success rate of the group) with local, turn-specific evidence.
  • Robustness to Horizon: As tasks get longer, uniform credit assignment fails catastrophically. AgentOPSD's performance degrades much more slowly as the number of turns increases compared to baselines.

Key Results

AgentOPSD consistently outperformed GRPO and other strong self-distillation baselines (like SDAR and RLSD) across all benchmarks.

  • ALFWorld: Reached a 89.1% success rate with Qwen2.5-7B, a significant jump over the 81.2% achieved by standard GRPO.
  • Horizon Robustness: In Figure 1b, the authors show that AgentOPSD loses only 0.54 success points per extra turn, whereas GRPO loses 2.91 points. This demonstrates that the method is far more effective for long-duration tasks.
Comparison of success rate degradation as task length increases. AgentOPSD (purple) is significantly more robust than uniform-credit methods like GRPO.
  • Training Efficiency: The method shows faster and more stable convergence in validation success rates compared to GRPO.
Validation success rate over training steps, showing AgentOPSD's superior performance and faster convergence.

Limitations and Future Work

  • Retrieval Dependency: The quality of the "self-teacher" depends on the quality of the retrieved privileged skills. If the retrieval system provides irrelevant information, the credit signal could become noisy.
  • Binary Rewards: The current formulation is optimized for binary (success/failure) rewards. Extending this to continuous or multi-dimensional rewards is a potential area for future research.
  • Hyperparameter Sensitivity: While the authors found a single set of hyperparameters that worked across all tasks, the "reshaping weight" ($\lambda$) has a significant impact on performance and might require tuning for vastly different domains.

Summary updated

BibTeX
@misc{wang2026agentopsd,
  author = {Zi-Han Wang and Zhengxi Lu and Zhiyuan Yao and Jinyang Wu and Jie Wu and Zhengzhou Cai and Yueqing Sun and Ziang Ye and Linji Hao and Qi Gu and Xunliang Cai and Yongliang Shen and Yujiu Yang},
  title = {{AgentOPSD: Recursive Self-Distillation for Agentic Reinforcement Learning}},
  year = {2026},
  eprint = {2608.05987},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.05987},
}
Figure