Manuscript Offprint

arXiv:2609.40285

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

Yinghui He, Yapei Chang, Khushi Bhardwaj, Daniele Molinari, Tugrul Konuk, Jan Kautz, Ali Hatamizadeh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yinghui He 1,2∗†^{1,2*\dagger} Yapei Chang 2,3^{2,3} Khushi Bhardwaj 2^{2} Daniele Molinari 2^{2}

Tugrul Konuk 2^{2} Jan Kautz 2^{2} Ali Hatamizadeh 2†^{2\dagger}

1^{1}Princeton University 2^{2}NVIDIA 3^{3}University of Maryland

yh0068@princeton.edu, ahatamizadeh@nvidia.com

Project page: https://research.nvidia.com/labs/lpr/pivotopd/

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 our preliminary experiments across three Qwen3 models (8B–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%.

(a) Pivotal turns appear early in the rollouts

Figure

(b) Pivotal turns often determine the outcome

(c) On-policy distillation does not repair pivotal turns

Figure 1 | Failed rollouts trace back to an early pivotal mistake, and standard on-policy distillation does not repair it. (a) Pivotal turns arrive early; the remaining optimal trajectory is short, yet students waste the turns until the end. (b) Correcting the pivotal turn or guiding recovery turns both restore success effectively. (c) OPD eliminates most incomplete-trajectory failures, but pivotal-turn failures persist across training.

1. Introduction

Language agents are increasingly capable of solving complex tasks through multi-turn interactions [1, 2, 3, 4, 5, 6, 7, 8]. To improve their performance, recent work has adopted on-policy distillation (OPD) as an effective training paradigm [9, 10], since it provides dense, token-level teacher supervision on trajectories that the student generates itself [11, 12, 13]. However, OPD is more challenging in multi-turn settings because each action changes the external environment, which then returns new observations and determines which actions are available in later turns [14, 15]. A single incorrect action can lead to error accumulation, in which the student ends up in states created by its own mistake and diverges further from the teacher over the turns that follow [14, 15, 16, 17]. Existing multi-turn OPD methods address error

  • Work done during an internship at NVIDIA. † Corresponding authors. © 2026 NVIDIA. All rights reserved.

Figure

Figure 2 | Overview of PIVOTOPD. (1) Pivot detection. A teacher model reads each rollout with its outcome, selects candidate turns, and names a gold action at each. A candidate turn is pivotal when the student's committed action differs from the gold action. After each pivotal turn, the teacher names a recovery action at each of the next few turns. (2) Preventive distillation trains the student to avoid the pivotal mistake. The frozen student hinted with the gold action serves as a privileged self-teacher that re-scores the student's recorded response, and a reverse KL loss moves the student toward the gold action. (3) Recovery distillation trains the student to recover after the mistake. The self-teacher is instead hinted with the recovery action and writes a recovery response, on which the student is trained without the hint through a forward KL loss. Later recovery turns start from the state reached by executing its action in a copy of the environment that replays all preceding actions. Both terms are combined with group-based RL in a single PPO update.

accumulation by reweighting turns or restricting which turns receive the distillation signal [10, 15, 17, 18], but leave open whether such failures hinge on a single decisive mistake and whether the student can still recover from it.

To answer these questions, we analyze failed rollouts in ALFWorld [6], where the agent completes household goals, such as heating an egg, through textual actions (Appendix D.5), and summarize the results in Figure 1. Its symbolic oracle reads the full environment state and computes the remaining optimal trajectory, i.e., the shortest action sequence that completes the task, at every turn. Across three Qwen3 models (8B–235B) [19], more than half of the failed rollouts contain a pivotal mistake: an action that lengthens the remaining optimal trajectory or makes the task unsolvable. We call the turn where it is committed a pivotal turn. The first one typically arrives early, and all three models waste most of the remaining turns without recovering (Figure 1a). In counterfactual replays of Qwen3-8B's failures, correcting the pivotal turn with the oracle action raises the replayed success from 8% to 59% (Figure 1b). To test whether a failure can be repaired after the mistake, we keep the mistake and apply the oracle action at the next two turns, which still reaches 58%. Therefore, pivotal mistakes are largely recoverable.

Existing training methods rarely teach this recovery, because they learn mostly from the student's own trajectories, and these rarely contain a recovery. Outcome-based RL rewards a recovery only when a rollout happens to find one, and its group-relative advantage is zero whenever every rollout of a task fails [20]. Methods that assign credit to individual turns or focus on the turns that decide the outcome share this limitation [21, 22, 23], and so does OPD. In our analysis, standard OPD lowers the failure rate from 79% to 56% of held-out tasks, while failures after a pivotal turn only fall from 51% to 49% (Figure 1c). Although OPD reduces the probability of the committed mistake, the oracle action still has less than 1% probability at every evaluated pivotal turn (Appendix A). The student therefore lacks a direct learning signal at the states its own mistakes create.

To provide this signal, we introduce PIVOTOPD, which augments group-based RL with dense token-level supervision concentrated at pivotal turns and the turns that follow them (Figure 2). Since most environments offer no oracle, PIVOTOPD estimates pivotal turns through pivot detection: a teacher model, a larger LLM in our main setting, reads each rollout in hindsight, selects a few candidate turns where the student may have gone wrong, and names a gold action at each. We treat a candidate turn as pivotal when the student’s committed action differs from the gold action. On ALFWorld, at least one detected pivotal turn falls within one turn of the oracle-labeled one in 77.8% of failed rollouts on average, at least twice the rate of randomly chosen turns (Table S.1).

PIVOTOPD obtains its token-level targets from a privileged self-teacher, the frozen student conditioned on a hint that names the teacher model's action, so the teacher only names actions [9, 24]. At each pivotal turn, preventive distillation re-scores the student's recorded response with the self-teacher hinted with the gold action and minimizes a reverse KL loss, which shifts the student toward the gold action and away from the committed mistake. After each pivotal turn, recovery distillation has the teacher model name a recovery action at each of the next few turns and trains the student, without the hint, on the responses that the hinted self-teacher writes toward them. Its mass-covering forward KL loss raises the probability of recovery actions that the student rarely samples [25].

Our contributions are as follows:

• Diagnosis. Using ALFWorld’s oracle, we show that more than half of the failed rollouts contain a recoverable pivotal mistake, which standard OPD does not repair (Section 2).

• Method. We propose PIVOTOPD, which uses a privileged self-teacher to train the student both to avoid pivotal mistakes and to recover from them (Section 3).

• Results. Against 13 baselines, PIVOTOPD achieves the best average performance on ALFWorld, WebShop, and Search-based QA for both Qwen3 students (Table 1), and at 8B it recovers from pivotal mistakes more than three times as often as standard OPD (Figure 5b). With a Nemotron-3.5 student on SWE-Bench Verified, it also raises the resolve rate by +3.2%, versus +0.2% for standard OPD (Figure 4).

References (80)