Manuscript Offprint

arXiv:2610.36471

When to Intervene? An Empirical Study of Errors and Self-Recovery in LLM Agents

Chiming Duan, Tong Jia, Yingxi Chen, Minghua He, Lingzhe Zhang, Ying Li

Chiming Duan

duanchiming@stu.pku.edu.cn

Peking University

Beijing, China

Minghua He

hemh2120@stu.pku.edu.cn

Peking University

Beijing, China

Tong Jia

jia.tong@pku.edu.cn

Peking University

Beijing, China

Lingzhe Zhang

zhang.lingzhe@stu.pku.edu.cn

Peking University

Beijing, China

Yingxi Chen

chenyingxi@bupt.edu.cn

Beijing University of Posts and

Telecommunications

Beijing, China

Ying Li

li.ying@pku.edu.cn

Peking University

Beijing, China

Abstract

LLM agents interact with Web services to perform tasks on users' behalf. Errors during these interactions can disrupt execution and prevent task completion, motivating external intervention. However, agents may self-recover through continued execution, raising the question of when to intervene and when to wait for self-recovery. We present an empirical study of errors and self-recovery in LLM agents. We construct ReInBench, a dataset containing 1,259 agent traces and 1,403 error events across computer-use and Web tasks. Our study examines how often and how quickly agents self-recover, how self-recovery relates to subsequent execution and task completion, and whether self-recovery can be predicted when an error occurs. We find that 725 error events self-recover, often within a few steps, with self-recovery performance differing across Execution LLMs. Self-recovery can also help agents recover from subsequent errors of the same type and support overall task completion. Intervention should therefore prioritize errors unlikely to self-recover, while allowing agents to continue when self-recovery is likely. Building on these empirical findings, we propose ReCoF, a method that predicts whether an error will self-recover to inform whether additional intervention is needed. ReCoF achieves an average relative improvement of 9.02% in Macro-F1 over the strongest baseline on ReInBench. Our code and data can be found at https://method-notes.github.io/ReCoF/.

1 Introduction

LLM agents provide a means for users to delegate tasks to Web services through natural-language instructions [22]. They mediate users' interactions with Web services by translating goals into actions and interpreting feedback [4]. For example, computer-use agents (CUAs) can operate websites through graphical browser interfaces. Because an agent determines the actions performed on a user's behalf, its errors can result in incorrect requests to Web applications or incomplete task workflows [11]. Error detection is therefore important for enabling timely intervention so that agents' Web interactions satisfy users' goals.

Existing error detection methods inspect action validity and unfolding agent traces. These methods examine the agent's execution context to identify errors or anticipate failures [2, 21]. When a problem is identified, they trigger an intervention, such as requesting a replacement action or injecting corrective guidance into the agent's context [8, 10]. Such interventions aim to redirect execution and restore task progress. However, an agent may also self-recover through continued execution, raising the question of when external intervention is needed and when the agent should be allowed to self-recover.

Some studies examine when external intervention is beneficial by comparing execution with and without observation refresh [15]. These methods estimate when a specific recovery operation improves task outcomes, but do not explicitly characterize the agent's self-recovery process or its role in subsequent execution. External intervention may interrupt this process before the agent has an opportunity to self-recover. Self-recovery may also influence how agents handle later errors within the same task. Reflective feedback from unsuccessful attempts can improve performance in later trials [12], whereas stored experiences can also propagate earlier errors [17]. However, how naturally occurring self-recovery relates to subsequent error handling and overall task completion remains insufficiently understood. Understanding when to intervene therefore requires examining both the agent's ability to self-recover and the consequences of its self-recovery process.

To investigate these issues, we construct ReInBench, a dataset containing 1,259 agent traces and 1,403 error events, of which 725 self-recover within the observed execution. It includes computer-use and Web tasks covering browsing, document and spreadsheet editing, and workflows spanning multiple applications. ReInBench records error occurrence, recognition when observable, and recovery outcomes, together with the corresponding execution context. These records support analysis of self-recovery frequency and speed, its relationship with subsequent error handling and task completion, and self-recovery prediction to inform intervention decisions. We address three research questions.

RQ1 How often and how quickly do agents self-recover from errors, and how does this vary across LLMs?

RQ2 Does self-recovery help agents recover from subsequent errors and complete their tasks?

RQ3 When an error occurs, should we intervene or wait for self-recovery?

Together, these questions examine how agents self-recover, how recovery relates to subsequent execution, and how these findings can inform intervention decisions. Building on the results of these RQs, we design ReCoF, a method that predicts whether an error will self-recover to inform whether additional intervention is needed. On the one hand, ReCoF trains Recovery Pattern Experts on historical execution contexts and recovery outcomes to capture patterns in how agents understand and handle errors. On the other hand, it uses Conditional Decision Fusion to adjust expert contributions according to differences in recovery capability and the difficulty of the current error. Our study makes three contributions.

• We construct ReInBench, a dataset containing 1,259 agent traces and 1,403 error events across computer-use and Web tasks. It records error occurrence, observable recognition, recovery outcomes, and execution context, supporting the study of self-recovery and intervention decisions.

• We conduct an empirical study of errors and self-recovery in LLM agents, examining self-recovery frequency, speed, and variation across Execution LLMs. We further analyze how earlier self-recovery relates to subsequent recovery of same-type and different-type errors, and how local recovery relates to overall task completion.

• We propose ReCoF, a method that predicts whether an error will self-recover to inform whether additional intervention is needed. ReCoF achieves an average relative improvement of 9.02% in Macro-F1 over the strongest baseline on ReInBench.

References (7)