TL;DR
Current graphical user interface (GUI) agents frequently fail when a minor mistake drives them into unfamiliar, "off-trajectory" states that lack training demonstrations. To solve this, Skill-Guided Continuation Distillation (SGCD) lets an agent intentionally make mistakes, uses a privileged skill-guided policy to complete the task from that error state, and then distills these successful recovery paths back into the agent. This iterative self-improvement framework dramatically improves agent robustness, boosting success rates on OSWorld-Verified from the low-30% range to over 50%.
What Problem Does This Paper Address?
Building AI agents that can navigate computer operating systems, websites, and software applications typically relies on Behavior Cloning (BC). Models are trained to mimic step-by-step expert trajectories.
However, during real-world deployment, an agent will inevitably make a small mistake or encounter an unexpected UI change. This creates a cascading problem known as covariate shift: the single error pushes the agent into a state that was never seen during expert training. Because the agent has no supervision data for these policy-induced, off-trajectory states—a gap the authors call the off-trajectory supervision deficit—it enters a tailspin. It might repeat the same failing action endlessly, hallucinate non-existent buttons, or prematurely declare the task "Done."
As shown in the failure analysis above, nearly 90% of failures originate within the first 20 steps of execution, meaning early deviations systematically derail the agent.
Methods
To bridge this supervision gap, the authors introduce Skill-Guided Continuation Distillation (SGCD), an iterative framework consisting of four main stages:
- Task Trajectories Sampling: The unassisted "plain" policy is run on training tasks to collect both successful and failed rollouts.
- Skill Construction: A powerful Multimodal Large Language Model (Gemini-3-Pro) analyzes these rollouts to extract compact, natural-language "skills." Rather than a rigid step-by-step replay, these skills are structured abstractions containing:
- Continuation Plans: High-level maneuvers to switch away from stalled strategies.
- Critical Targets: Salient UI anchors and functions.
- Failure Traps: Non-existent affordances or common dead ends to avoid.
- Success Criteria: Observable checks to verify task completion.
- Off-trajectory Continuation Construction: The framework forces the plain policy to run for $k$ steps to intentionally land in a realistic error state. Control is then handed over to a skill-guided policy (the same model, but prompted with the extracted skills) to successfully complete the task from that messy intermediate state.
- Mixed Trajectories Training: The successful post-handoff continuations are mixed with original expert data to fine-tune the agent. Crucially, the initial $k$-step faulty prefix is masked out during training so the agent only learns how to recover, not how to make the mistake.
Datasets
The authors evaluated their approach using:
- OSWorld-Verified: A rigorous benchmark reflecting real-world user desktop experiences across multiple applications.
- Constructed Training Pool ($\mathcal{X}$): To train the models without data contamination, the authors built a separate, OSWorld-compatible pool of 1,432 verified tasks spanning 10 applications across 5 domains (OS, Office, Daily, Professional, and Workflow). Every task was verified by a human annotator to ensure end-to-end solvability.
Key Insights and Ideas
- Failures are Systematic, Not Random: Policy errors aren't arbitrary noise; agents consistently fall into predictable traps (e.g., getting stuck on a certificate error in the terminal). Because these errors are systematic, they can be counteracted with structured, high-level guidance.
- Abstraction Beats Replay: GUI environments are highly dynamic (scroll positions change, pop-ups appear). Training an agent to copy an exact historical path is brittle. Providing an abstract "SOP" (Standard Operating Procedure) gives the agent the flexibility to figure out the exact mouse clicks itself.
- Prefix Masking is Essential: Simply training on the full recovery rollout harms performance. If the agent calculates gradients on the early steps that caused the error, it learns to associate bad actions with eventual success. Excluding the pre-handoff segment forces the model to focus purely on clean recovery behavior.
Key Results
The authors applied SGCD to three distinct vision-language backbones: Qwen3-VL-8B, Qwen3-VL-30B-A3B, and STEP3-VL-10B.
- Massive Success Rate Boosts: Across the board, SGCD elevated base models from the ~30% success rate range to over 50% on OSWorld-Verified. For instance, the Qwen3-VL-30B base model improved from 31.9% to 58.4%.
- Iterative Gains: Because each training round alters the agent's error distribution, repeating the SGCD process over multiple generations yielded compounding improvements.
- Intrinsic Recovery Capability: When evaluated on tasks where the baseline model failed, the SGCD-trained models achieved the highest "Continuation Success Rate" among open-weight models, proving that the ability to recover from off-trajectory states was successfully distilled directly into the deployment policy (which operates without any skill prompts at inference time).
Limitations and Future Work
While highly effective, the authors note two primary limitations:
- Difficulty with Hard Tasks: If a task is exceptionally complex, even the skill-guided policy struggles to find a successful continuation from an error state, meaning no high-quality training data can be synthesized.
- High Interaction Overhead: To generate an off-trajectory state at step $k$, the environment must currently be reset and the plain policy re-executed from scratch. Developing a robust state-caching infrastructure to instantly save and reload intermediate GUI states would drastically reduce training time and compute overhead.
Summary updated