# PivotOPD: Learning to Recover from Pivotal Mistakes in Multi-Turn Agents

- **ID:** 832
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.40285
- **Authors:** Yinghui He, Yapei Chang, Khushi Bhardwaj, Daniele Molinari, Tugrul Konuk, Jan Kautz, Ali Hatamizadeh
- **Venue:** NVIDIA LPR lab (arXiv technical report, 2026-09-30; CC BY 4.0)
- **Published:** 2026
- **Source:** paper
- **Language:** en
- **Access:** public
- **Tags:** agents, on-policy-distillation, multi-turn-interaction, error-recovery, language-agents
- **Topics:** agents, on-policy distillation, multi-turn interaction, error recovery, language agents
- **Added:** 2026-10-01
- **Verified:** 2026-10-07
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/832

## Summary

On-policy distillation (OPD) for training language agents with dense teacher supervision on student trajectories. In multi-turn interaction an incorrect action changes the states the student encounters later, so errors compound. Across three Qwen3 models (8B-235B), more than half of failed rollouts contain an early "pivotal mistake" -- an action that moves the agent farther from task completion -- and these are often recoverable: a few guided turns after the pivotal turn can restore task success. PivotOPD jointly trains the student to prevent pivotal mistakes and to recover from the states they create: at each pivotal mistake the teacher provides a gold action plus recovery actions for the next few turns. Preventive distillation uses the gold action with reverse KL to steer the student away from the mistake; recovery distillation uses the recovery actions with forward KL to transfer recovery behaviors the student rarely samples. Strongest average performance vs 13 baselines on ALFWorld, WebShop, and Search-based QA for Qwen3-1.7B and Qwen3-8B students (+5.5% over the strongest baseline on ALFWorld with the 1.7B student); gains transfer to SWE-Bench Verified, raising a Nemotron-3.5 student's resolve rate by +3.2%.

## From the source (fetched 2026-10-03)

- **Published:** Sep 30, 2026 (arXiv)
- **arXiv categories:** cs.AI (arXiv)
- **Author comment:** PivotOPD technical report; Project page: https://research.nvidia.com/labs/lpr/pivotopd/ (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 55 (Semantic Scholar)

## Abstract

On-policy distillation (OPD) is a promising approach for training language agents, providing dense teacher supervision on student-generated trajectories. However, in multi-turn interaction, an incorrect action changes the states the student encounters later, so errors compound across turns. In preliminary experiments across three Qwen3 models (8B to 235B), we find that more than half of the failed rollouts contain a pivotal mistake, an action that moves the agent farther from completing the task, and this mistake typically occurs early. These pivotal mistakes often remain recoverable: guiding the model for only a few turns after the pivotal turn can restore task success. We therefore propose PivotOPD, an on-policy distillation framework that jointly trains the student to prevent pivotal mistakes and to recover from the states they create. At each pivotal mistake, a teacher model provides a gold action and then names a recovery action at each of the next few turns. Preventive distillation uses the gold action with reverse KL to steer the student away from the pivotal mistake, while recovery distillation uses the recovery actions with forward KL to transfer recovery behaviors that the student rarely samples. Against 13 baselines on ALFWorld, WebShop, and Search-based QA, PivotOPD achieves the strongest average performance for both Qwen3-1.7B and Qwen3-8B students, improving over the strongest baseline on ALFWorld by +5.5% with the 1.7B student. The gains also transfer to another model family on the software engineering domain, where PivotOPD raises the resolve rate of a Nemotron-3.5 student on SWE-Bench Verified by +3.2%. Project page: https://research.nvidia.com/labs/lpr/pivotopd/

## Research notes

- Discovery: shared directly in chat (2026-10-01)
- Project page: https://research.nvidia.com/labs/lpr/pivotopd/
- No code repo, dataset, or model checkpoint linked on the arXiv page.
- Connects to the collection's agent-training/distillation entries.
[2026-10-07] Re-shared by co-author Ali Hatamizadeh (@ahatamiz1, NVIDIA LLM Tech Lead & Staff Research Scientist, co-creator of Gated DeltaNet/Gated DeltaNet-2; X post ~4:34 PM ET, 326 views) quote-posting @NVIDIAAI's announcement (~4:19 PM ET, ~4.2K views). Hatamizadeh's framing: "Post-training agents with OPD or GRPO? One early mistake decides most rollouts, and the student never samples the fix. PivotOPD plugs into your PPO loop, needs no bigger teacher, and lifts recovery from 8.3% to 72.7%."

Enrichment from the NVIDIA research page (research.nvidia.com/labs/lpr/pivotopd):
- Diagnosis (ALFWorld symbolic oracle, Qwen3-8B/30B/235B): 59% of failed rollouts contain a pivotal mistake (action lengthening remaining optimal trajectory or making the task unsolvable); first pivot lands at median turn 8-12 of 30, agent wastes the rest of the episode. Correcting the pivotal turn lifts replayed success 8%->59%; guiding just the two turns after it still reaches 58%. Standard OPD lowers overall failure rate 79%->56%, but failures after a pivotal turn only fall 51%->49%: the recovery action stays below 1% probability, so a group of eight rollouts never samples it and there is no learning signal.
- Method: three components added to group-based RL. (1) Pivot detection: teacher reads each rollout in hindsight, names a gold action per candidate turn; a turn is pivotal when the student's committed action disagrees; teacher then names a recovery action at each of the next K turns. (2) Preventive distillation (reverse KL): student's recorded response re-scored against a "privileged self-teacher" — the frozen student conditioned on a hint naming the gold action — steering away from the committed mistake. (3) Recovery distillation (forward KL): hinted self-teacher writes recovery responses, unhinted student trained on them; mass-covering forward KL puts probability on recovery actions the student rarely samples. Teacher only ever names actions; self-teacher renders them in the student's own reasoning style. Both terms enter a single PPO update as per-token distillation advantages. Later recovery turns start from the state reached by executing the recovery action in a copy of the environment replaying all preceding actions.
- Recovery budget: one recovery turn enough on WebShop and Search-based QA; ALFWorld needs two (longer chained sequences after a mistake). Selected budget raises best validation score over preventive-only variant by +5.4 (ALFWorld), +21.5 (WebShop), +2.4 (Search QA).
- Main results: best average vs 13 baselines on ALFWorld, WebShop, Search-based QA for both Qwen3-1.7B and 8B students; +5.5% over strongest baseline on ALFWorld with 1.7B (+5.9% on Search QA); largest gains where successful rollouts are scarcest. WebShop: beats RLSD by only +1.2% score but +14.1% success rate (partial progress -> completed tasks).
- Recovery rate: replayed from same 72 oracle-labeled pivotal mistakes: PivotOPD recovers 72.7% (base model 8.3%, standard OPD 20.3%, preventive-only 45.8%), fewest turns; improves on 60 of 72, worsens none.
- No bigger teacher needed: with Qwen3-8B as its own teacher (self-distillation, all teacher-using baselines given same treatment), PivotOPD remains best on all three benchmarks, >=+1.5% over strongest baseline each, +3.9% avg — gains come from where/how the teacher intervenes, not teacher capacity.
- SWE-Bench Verified transfer: curated bug-fix curriculum, Nemotron-3-Super teacher, Nemotron-3.5-SFT student gains +3.2% resolve rate (62.8%->66.0%, ~third of gap to teacher's 73.0); standard OPD only +0.2%. Long containerized episodes: audits final committed action, preventive distillation alone.
- Relevance to user's RL post-training: plugs into PPO loop; recovery distillation via mass-covering forward KL fixes the "student never samples the fix" problem in multi-turn agent rollouts.
- Caveats: no code repo, dataset, or checkpoint linked on arXiv at catalog time; standard OPD results show the baseline class already struggles precisely on post-pivot recovery.

## Cites, within this collection

- [Training Language Models to Self-Correct via Reinforcement Learning](https://papers.projxon.ai/entries/915) (paper 2024, #915)

## Similar entries

- [Multi-Turn On-Policy Distillation with Prefix Replay](https://papers.projxon.ai/entries/472) (paper, #472)
- [Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation](https://papers.projxon.ai/entries/798) (paper, #798)
- [SFT, RL, and On-Policy Distillation Through a Distributional Lens](https://papers.projxon.ai/entries/1095) (post, #1095)
- [Context Language Models](https://papers.projxon.ai/entries/793) (paper, #793)
- [Trajectory-Refined Distillation](https://papers.projxon.ai/entries/1121) (paper, #1121)
- [ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results](https://papers.projxon.ai/entries/830) (benchmark, #830)
