Lost in Recovery: Resolving the Recovery Behavior of Computer-Use Agents via Goal-Oriented Action ReplayLost in Recovery: Demystifying Recovery Behavior of Computer-Use Agents via Goal-Oriented Action Replay
The authors propose the evaluation framework RETRACE to systematically study the recovery behavior of computer-use agents, stating that current agents lack autonomous recovery capability, but explicit recovery can bring end-to-end gains.
- Computer-use agents are prone to failure in long-horizon tasks due to the accumulation of early errors, while environment resets, action replay, and API rollback are all difficult to generalize. The authors focus on whether agents can autonomously recover to a previously intact state, and how recovery quality affects task completion.
- The authors propose RETRACE, which formalizes successful recovery as Transition-Consistent Recovery and evaluates recovery using goal-directed action replay. The pipeline first collects and filters deterministic successful trajectories, then injects controlled errors, and finally performs implicit or explicit recovery from the error state and replays the remaining actions to determine the result.
- On OSWorld and WindowsAgentArena, the authors state that current agents rarely recover spontaneously; explicit recovery averages 17.86% higher than implicit recovery. Qwen3.5-9B's end-to-end SR improves by an average of 2.12%, but UI-TARS-1.5-7B and EvoCUA-32B decrease.
- The authors state that RETRACE is used to measure and analyze recovery, not to directly improve recovery capability; explicit recovery can only elicit capabilities the model already has and cannot compensate for deficiencies in GUI understanding, state tracking, or planning. The experiments cover 5 models and 2 benchmarks, with some human evaluations using 50 samples per group.
- Evaluated models
- Claude-Sonnet-4.6GPT-5.4-Computer-UseEvoCUA-32BUI-TARS-1.5-7BQwen3.5-9B-Thinking
- Benchmarks
- OSWorldWindowsAgentArena
- Metrics
- Recovery Success RateSuccess@KEnd-to-end Success Rate (SR)Win RateCohen's kappa
The research team proposes the ReTrace evaluation framework, which systematically examines the ability of computer-use agents to recover from failures in long-horizon tasks. The framework defines recovery as transition consistency, that is, executing the same subsequent actions from the recovered state and the goal state must yield the same result, and tests this through goal-directed action replay after controlled error injection, thereby bypassing the cost and applicable-environment limitations of approaches such as environment reset, action replay and API rollback. The study finds that ideal recovery can unlock a model's latent task-completion capability, that current computer-use agents fail to exploit their own latent recovery capability, and that accurate model-based recovery can yield measurable end-to-end gains. The authors argue that recovery should be a foundational capability for building reliable computer-use agents, and the code and dataset are publicly available on GitHub.
Paper analysis
What problem does this paper attempt to solve?
The authors study whether computer-use agents can recover autonomously after errors, and how recovery quality affects task completion.
The core question is whether computer-use agents, after making an error in a long-horizon task, can autonomously recover to a previously intact state and continue completing the task without relying on environment resets or dedicated rollback interfaces.
- Problem scenario: the authors state that computer-use agents automate digital workflows through keyboard and mouse operations, but in long-horizon tasks early errors accumulate and propagate, and executed actions may leave side effects.
- Shortcomings of existing methods: the authors state that environment resets are often infeasible in proprietary settings such as production websites and operating systems; full action replay is costly in long-horizon tasks; and API-based rollback is mainly limited to web environments.
- Core observation: the authors believe that recovery capability may be a key lever for unlocking the model's latent task-completion capability, but whether current agents possess this capability, and whether it is latent or absent, still lacks systematic study.
- Paper's approach: the authors propose RETRACE, which formalizes recovery as Transition-Consistent Recovery and uses goal-directed action replay to evaluate whether recovery succeeds after controlled error injection.
- Research questions: the paper is organized around three points: RQ1 whether ideal recovery can unlock latent capability; RQ2 whether current agents possess recovery capability; RQ3 whether accurate model-level recovery can translate into end-to-end task gains.
What related research exists?
Related work is divided into computer-use agents, agent behavior under failure, and rollback mechanisms; the authors state that this paper's distinction is its systematic analysis of model-level recovery.
Computer-Use Agents
- Web, desktop, and mobile agents: The paper mentions that works such as WebArena, VisualWebArena, OSWorld, and WindowsAgentArena cover web, Linux/Windows desktop, and mobile environments; recent methods shift from HTML DOM to screenshot observations and enhance backbone capabilities with reinforcement learning or external memory.
- Gap noted by the paper: The authors state that these works mainly strengthen forward decision-making policies, and the problems of long-horizon fragility and error propagation remain unsolved.
Agent Behavior Under Failure
- Feedback and reflection: Lightman et al. (2024), Shinn et al. (2023), and Xi et al. (2024) use outcome and process-level feedback to improve test-time behavior in math and code tasks; Huang et al. (2022) and Wang et al. (2023a,b) use external rewards in embodied settings to revise plans or learn skills.
- Verifiers and reflection in computer-use: Wang et al. (2024), Chae et al. (2025b), and Wu et al. (2025b) use external verifiers to induce reflective behavior to improve user task completion.
Rollback and Recovery Mechanisms
- Action replay: Koh et al. (2024b) and He et al. (2025) return to a previous state after failure by resetting the environment and re-executing actions; Li et al. (2025) also perform rollback by resetting the environment and executing the same actions.
- Web rollback: Hu et al. (2025) and Zhang et al. (2026b) use the go-back operation in Playwright; Lu et al. (2026) introduce semantic actions in a DFS algorithm for state recovery.
- Shortcomings noted by the paper: The authors state that these mechanisms are mostly used as heuristic components in reasoning pipelines, rather than as objects of systematic analysis.
Baselines and Benchmarks
- Evaluation benchmarks: The experiments use OSWorld and WindowsAgentArena.
- Comparison methods: Recovery strategies compare implicit recovery with multiple explicit recovery context variants; the human consistency experiment for recovery judgments compares w/o RO, w/o RTC, and the GPT-5.4 evaluator.
The authors position this paper as a systematic analysis of model-level recovery behavior in computer-use agents, rather than proposing a new forward policy or treating rollback as a reasoning heuristic.
How does the paper address this problem?
RETRACE uses controlled error injection and goal-directed action replay to evaluate whether an agent can recover to a state from which it can continue to complete the original task.
The overall idea is to propose RETRACE: first construct "target state—error state" pairs in a deterministic controlled environment, then let a recovery policy act from the error state, and finally replay the remaining actions of the original trajectory from the recovered state to check whether the original task can still be completed.
Problem Setup and Recovery Determination
- Task formalization: the paper formulates a computer-use task as a POMDP, where the state st is decomposed into a hidden component ht and an observation ot; the forward policy selects actions based on the observation–action history.
- Recovery task: the recovery function f maps any state st back to a past target state starget = st−d, where d is the recovery distance; the recovery oracle R outputs binary success or failure.
- Core criterion: the authors define Transition-Consistent Recovery: executing the same subsequent actions from the recovered state and the target state should yield the same result. The single-step form is RTC=𝕀[TE(f(st),at−d)=st−d+1], meaning that after recovery, executing the next action of the original trajectory should reproduce the original next state.
- Joint oracle: the final determination is R = RTC ∧ RO; RO checks observation-level consistency, with the main experiments using an SSIM threshold of 0.99, and RTC uses goal-directed action replay to check whether the hidden state can continue to complete the task.
Evaluation Set Construction
- On-Policy Trajectory Rollout: each policy under test is first rolled out on each user query, keeping only trajectories that the oracle judges successful; the same action sequence is then replayed consecutively N times, keeping only trajectories that succeed all N times. Appendix A.1 states that the short-horizon setting uses N=3 and retains 64.4% of recovery trajectories.
- Trajectory Drift via Perturbation: a seed step is selected from the trajectory as starget, and a perturbation policy with the same backbone as the forward agent is used to make the trajectory deviate from the original task; in the short-horizon setting the perturbation budget equals the recovery distance d, with all models using 1 except GPT-5.4-CUA, which uses 2.
- Final samples: only perturbed trajectories that the benchmark oracle judges as failed are kept, and samples with environment crashes, validation failures, meaningless perturbations, or error states too similar to or duplicated with the target state are removed; the short-horizon OSWorld samples 120 instances per model, and 60 for UI-TARS-1.5-7B.
Recovery Policies
- Implicit recovery: directly reuse the forward policy πθR = πθ, with no recovery-specific instructions or parameter updates, to test whether the agent spontaneously produces recovery behavior.
- Explicit recovery: use an external recovery policy πθR(at | otarget, C, history), where C is the recovery context; variants include 0-E, 0-R, w/o History, and Recovery Target Contextualization, which uses an LLM summarizer to compress the target state and transition history.
- Recovery budget: the main experiments vary the maximum number of recovery steps r ∈ {1, 3, 10}; the short-horizon recovery distance is d=1 and the long-horizon one is d=5.
Success Determination and End-to-End Evaluation
- Recovery success: continue executing the remaining actions of the original ground-truth trajectory from the recovered state; if the benchmark oracle Φq judges the original task complete, the latent state recovery is successful; RO is also used to prevent the visible interface from deviating from the target.
- End-to-end setting: the forward agent and the recovery agent use the same backbone model, differing only in prompts and step budgets; both the error-step detector and the recovery-step detector use Qwen3.6-Plus as the backbone.
- Ideal recovery experiment: on EvoCUA-32B failure samples, compare R=0, R=E-1, R=E-random, and R=RLLM, measuring Success@K over 5 independent continuations.
What experiments did the paper conduct?
The experiments cover 5 agents, 2 benchmarks, recovery success rate, human consistency, end-to-end SR, and qualitative failure modes.
Experimental Setup
- Models under test: Claude-Sonnet-4.6, GPT-5.4-CUA, Qwen3.5-9B-Thinking, UI-TARS-1.5-7B, EvoCUA-32B; the end-to-end experiments use Qwen3.5-9B, UI-TARS-1.5-7B, and EvoCUA-32B, and the ideal recovery experiment uses EvoCUA-32B.
- Benchmarks: OSWorld and WindowsAgentArena; Table 5 reports that their non-web task proportions are 87.34% and 78.72% respectively.
- Sample sizes: short-horizon OSWorld uses 120 instances per model, and 60 for UI-TARS-1.5-7B; in WindowsAgentArena, Claude-Sonnet-4.6 and GPT-5.4-CUA each have 70, and Qwen3.5-9B and EvoCUA-32B each have 50; in long-horizon OSWorld, Qwen3.5-9B and EvoCUA-32B each have 80, and Claude-Sonnet-4.6 and UI-TARS-1.5-7B each have 60.
- Metrics: Recovery Success Rate, Success@K, end-to-end SR, human-judged win rate, Cohen's kappa.
- Determination method: the recovery oracle is R = RTC ∧ RO; RO uses an SSIM threshold of 0.99; the state validation model is GPT-5-Mini; the error-step and recovery-step detectors use Qwen3.6-Plus.
- Number of repetitions: Table 2 uses 3 independent runs; Table 3 uses 2 independent runs; Table 8 reports means over 3 independently sampled evaluation sets.
Main Results
Most of the paper's main results are given as bar charts; the numbers explicitly stated in the text are as follows; the bar heights for each model in the figures are not given in text and cannot be checked item by item.
Swipe horizontally to read the table
Experiment Condition Number Source Explicit vs. implicit recovery Average difference across Linux and Windows environments 17.86% 5.4.2 EvoCUA-32B implicit recovery Average recovery rate below 1% 5.4.2 RETRACE human agreement Average win rate vs. w/o RO 82.0% Table 1 RETRACE human agreement Average win rate vs. w/o RTC 63.0% Table 1 RETRACE human agreement Average win rate vs. GPT-5.4 Evaluator 54.0% Table 1 Human annotation agreement Average agreement rate / Cohen's kappa 82% / 0.45 5.4.2 - Lack of recovery capability: the authors state that even Claude-Sonnet-4.6 and GPT-5.4-CUA have only limited recovery capability, and EvoCUA-32B can hardly recover previous states.
- Explicit recovery is stronger: the authors state that explicit model-level recovery outperforms implicit recovery, with larger gains for Claude-Sonnet-4.6, GPT-5.4-CUA, and Qwen3.5-9B; the authors therefore consider recovery capability to be latent rather than entirely absent.
- Low recovery intent: Figure 6 compares the cosine similarity between agent rationales and recovery prompts in implicit and explicit recovery; the authors state that the similarity is lower in implicit recovery, indicating that agents rarely attempt recovery.
Ideal Recovery and End-to-End Gains
- Ideal recovery: Figure 3 on OSWorld uses EvoCUA-32B as the forward policy and compares Success@K for R=0, R=E-1, R=E-random, and R=RLLM; the authors state that all non-zero recovery steps outperform a full environment reset, with the advantage largest in the low-K range, but the figure does not give specific values.
- Qwen3.5-9B end-to-end: in Table 2, Baseline SR is 39.38 ± 1.17, Contextualizer is 41.06 ± 3.05, 0∼R is 44.26 ± 1.90, 0∼E is 40.49 ± 0.95, and w/o History is 40.2 ± 1.84; the authors report an average improvement of 2.12%.
- Cross-model end-to-end: Table 3 uses Recovery Target Contextualization; Sonnet-4.6 goes from 70.27 ± 0.70 to 71.81 ± 1.51, and Qwen3.5-9B from 38.76 ± 0.64 to 41.56 ± 4.14; UI-TARS-1.5-7B drops from 17.25 ± 1.55 to 15.74 ± 0.65, and EvoCUA-32B drops from 54.88 ± 4.39 to 51.55 ± 2.54.
- Authors' interpretation: the authors believe that accurate recovery can bring end-to-end gains, whereas weak recovery may drive the trajectory into a more erroneous state; Figure 8 shows that more recovery iterations bring further gains for Qwen3.5-9B and UI-TARS-1.5-7B, while EvoCUA-32B is more prone to deviation.
Human Agreement and Oracle Ablation
- Human evaluation design: Appendix B.3 samples, from the recovery results of Claude-Sonnet-4.6, Qwen3.5-9B, and EvoCUA-32B, 50 samples with inconsistent judgments for each of the three variants w/o RO, w/o RTC, and GPT-5.4, totaling 150; there are 12 annotators, each annotating 25.
- Oracle ablation: Table 12, on samples where RO and RTC judgments disagree and two annotators agree, reports that RTC agrees with humans 38.8% of the time, RO 61.2%, and RETRACE 81.2%.
- SSIM threshold: Table 13 reports that the agreement rate between RO and human judgments is 56.9%, 33.9%, and 26.6% at thresholds 0.99, 0.95, and 0.91 respectively; the authors therefore choose 0.99.
- Effect of environment dynamics: Table 11 reports that 86.0% of RETRACE judgments are unaffected by random environment dynamics; the authors note that this analysis uses only the harder subset where the oracles disagree.
Other Ablations and Analyses
- Recovery budget: Table 8 compares Max 2/4/5/10 in OSWorld implicit recovery; for example, Claude-Sonnet-4.6 gives 26.98, 13.34, 8.76, 6.37, and GPT-5.4-CUA gives 17.85, 6.30, 5.81, 5.15.
- Hyperparameters: Table 9 varies the temperature and max tokens of EvoCUA-32B and UI-TARS-1.5-7B under Recovery Target Contextualization; EvoCUA-32B ranges from 0.00–4.39 in the short horizon and 4.76–20.63 in the long horizon.
- Windows hyperparameters: in Table 10, EvoCUA-32B's success rate on WindowsAgentArena is 14.00–20.00.
- Dataset robustness: Figure 10 takes a macro average over 3 randomly sampled recovery evaluation sets; the authors state that the trend is consistent with Figure 4.
- Qualitative failures: Table 4 and Table 14 classify behavior after imperfect restoration into Spurious Perception and State Tracking Failure; the authors state that the former manifests as getting stuck on the wrong UI element, and the latter as mistaking the recovered state for the target state.
What are some points that can be further explored?
The authors state that RETRACE only measures recovery and cannot compensate for fundamental capability deficiencies, and that future work can do recovery-aware training and state tracking objectives.
Limitations and Future Directions Noted by the Authors
- Cannot directly improve recovery: The Limitations section states that RETRACE aims to measure and analyze recovery capability and behavior, not to directly improve them.
- Can only elicit existing capabilities: The Limitations section states that explicit recovery settings can only elicit capabilities the underlying model already possesses, and cannot compensate for fundamental deficiencies in GUI understanding, state tracking, or action planning.
- Weak recovery may be harmful: The Limitations section states that specialist agents with weaker recovery capability, if recovery is inaccurate, may introduce additional trajectory drift and reduce task success rate.
- Recovery-aware training: The Limitations section proposes recovery-aware post-training on error states, goal states, and corresponding corrective action trajectories.
- Auxiliary objectives: The Limitations section proposes adding auxiliary objectives that track latent environment states and predict transitions caused by actions.
- Method validation out of scope: The Limitations section states that RETRACE can provide an evaluation protocol and controlled recovery scenarios, but designing and validating the above improvement methods is beyond the scope of this paper.
Experimental Coverage
- Models tested: Recovery evaluation covers 5 models in total: Claude-Sonnet-4.6, GPT-5.4-CUA, Qwen3.5-9B-Thinking, UI-TARS-1.5-7B, and EvoCUA-32B; end-to-end experiments cover 3 of the open-source models.
- Evaluation environments: The experiments use OSWorld and WindowsAgentArena; Appendix A.1 states that tasks requiring proxy or Google Drive setup were excluded.
- Recovery settings: Short-horizon recovery distance d=1, long-horizon d=5; explicit recovery contexts include 0-E, 0-R, w/o History, and Recovery Target Contextualization.
- Human evaluation scale: Each human evaluation variant in Table 1 samples 50 instances, 150 in total; 12 annotators, each annotating 25.
- Not reported in the paper: The paper does not report the total number of queries or time cost for each recovery strategy comparison in the recovery evaluation; nor does it report the specific values of each bar in Figure 4, Figure 5, and Figure 7.
Summarize the main content of the paper
The authors systematically evaluate recovery behavior with RETRACE, stating that current agents rarely recover spontaneously, and that accurate explicit recovery can translate into end-to-end gains.
This paper studies the model-level recovery capability of computer-use agents, i.e., after a task error, the agent returns on its own to a previously reached state from which it can continue to complete the task, without relying on environment resets or web-specific rollback interfaces.
- Problem: The authors state that in long-horizon desktop tasks, errors accumulate and produce side effects, while environment resets, full action replay, and API-based rollback are limited by feasibility, cost, and web environments, respectively.
- Method: RETRACE defines recovery as Transition-Consistent Recovery and evaluates it through a three-stage process: collecting deterministic successful trajectories, injecting controlled errors, and replaying the remaining actions from the recovered state; judgments use both RTC and RO.
- Recovery capability: On OSWorld and WindowsAgentArena, the authors state that current agents lack the tendency and capability for autonomous recovery; EvoCUA-32B's average recovery rate is below 1%, and explicit recovery averages 17.86% higher than implicit recovery.
- Evaluation reliability: In human evaluations with 50 samples per group, RETRACE's average win rates against w/o RO, w/o RTC, and the GPT-5.4 Evaluator are 82.0%, 63.0%, and 54.0%, respectively; annotators' average agreement rate is 82%, with a Cohen's kappa of 0.45.
- End-to-end impact: In Table 2, Qwen3.5-9B improves by an average of 2.12% under different recovery settings; in Table 3, UI-TARS-1.5-7B and EvoCUA-32B instead show decreased SR after using Recovery Target Contextualization, based on which the authors suggest that weak recovery may push trajectories further off course.
- Authors' conclusion: The authors consider accurate model-level recovery and reliable continued execution from the recovered state to be key steps toward building reliable computer-use agents; future directions include recovery-aware post-training and latent state tracking auxiliary objectives.