arXiv(opens in a new tab)cs.AISep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.40111

Agent Error Dataset: Scaling 50,000 Error--Diagnosis Pairs for Failure Analysis and Error-Aware Post-Training

Kunlun Zhu, Xuyan Ye, Yibo Li, Cheng Qian, Beibin Li, Heng Ji

Kunlun Zhu, Xuyan Ye, Yibo Li, Cheng Qian, Beibin Li, Heng Ji †^{\dagger}

Apodex

An unsuccessful LLM agent rollout contains more information than its final reward: the observations available to the agent, the actions it chose, and the environment's responses. Reusing this experience for learning requires identifying a decision to revise and testing a concrete alternative. We introduce the Agent Error Dataset (AED), comprising 50,228 error–diagnosis pairs from 9,961 source tasks across 33 environments, 19 harness families and 23 policy models in text-based agent systems. We retain source traces and execution metadata to support cross-setting failure analysis and re-diagnosis without repeating the original rollout. Our five-stage Agentic Error-to-Training (AET) pipeline collects natural failures, generates diagnoses and proposed corrections, and checks them against recorded evidence. Where replay is supported, we compare corrections with original-action retries from the same checkpoint under matched execution settings. We then construct separate training views for diagnosis and actor recovery.

Across 3,062 matched replay pairs, first-proposal corrections raise verifier pass rates from 18.4% to 51.1%, a gain of 32.7 percentage points. Using a separately frozen diagnosis release, full-diagnosis fine-tuning on 1,656 source tasks raises Qwen3-8B's exact-step agreement with internal teacher labels from 47.2% to 63.6%, averaged over three seeds on a 943-case holdout. The strongest prompted reference in this comparison scores 54.7%; mean agreement improves at each of four increasing training-set sizes. In a single-seed comparison of actor-training recipes, action-only repair training scores 6.67 percentage points higher on WebShop-lite than success-only training.

Code and data will be released at agenterrordata.apodex.com.

Figure

a Test corrections

Figure

b Learn to diagnose

Teacher-label exact step (%)

Figure

943 teacher-labeled cases

C Assist recovery

Recovery success (%)

Figure 1: Failure reuse: correction, diagnosis learning and recovery. (a) Executed corrections outperform their matched original-action controls. (b) AED-trained Qwen3-8B leads the shown references in internal exact-step teacher-label agreement. (c) Supplied-location assistance improves recovery over replay. Panels use separate cohorts; protocols and uncertainty: Section 5 and Appendices J, H.2.

†^{\dagger} Corresponding author: Heng Ji (heng@apodex.com). We also gratefully acknowledge Mr. Tianqiao Chen for the guidance and support throughout this work.

1. Introduction

Recent frontier large language models (LLMs), including GPT-6 Astra and Claude Fable 5.1, support complex reasoning, coding and long-horizon agentic work (OpenAI, 2026; Anthropic, 2026). These capabilities renew interest in how far language-model systems can generalize beyond their training tasks (Feng et al., 2024). Open-weight Qwen3.8-Flash-Next, DeepSeek-V4.1-Flash and Kimi K3 broaden access to capable agent models (Qwen Team, 2026; DeepSeek-AI, 2026; Moonshot AI, 2026).

These advances extend language-model capabilities (Zhao et al., 2026) to interactive software and web tasks (Jimenez et al., 2024; Yao et al., 2022). Agent harnesses connect these models to executable tools and persistent state. OpenHands provides a composable software-agent SDK (Wang et al., 2026c); π\pi agent combines a terminal agent loop with extensible tools, model-provider interfaces and resumable sessions (Earendil Works, 2026). Through these systems, agents inspect repositories, run commands and revise solutions using tool feedback (Qin et al., 2024; Liu et al., 2025). Understanding failures therefore requires examining the model together with the execution system in which it acts.

Agent post-training improves task performance by learning from interaction. AgentTuning uses reward-filtered trajectories for supervised fine-tuning (Zeng et al., 2024), while RAGEN and AgentRL extend policy optimization to multi-turn environment feedback (Wang et al., 2025; Zhang et al., 2025a). Yet an outcome reward alone does not specify which decision to revise or what action should replace it. Failed rollouts preserve what the agent observed, which actions it chose, and how the environment responded. We can turn these rollouts into training examples by identifying where the agent went wrong, explaining why, and proposing what it should do instead. This motivates a dataset of agent failures with diagnoses and corrections across diverse execution settings.

How should we analyze and transform failed agent experience so that models can learn to recognize, avoid, and repair errors across execution settings?

Existing work has advanced several aspects of learning from agent failures. MAST (Cemri et al., 2026b) characterizes failure modes, and Who&When (Zhang et al., 2025b) identifies responsible agents and decisive error steps. These annotations support failure analysis, but do not directly specify the actions an agent should learn instead. AgentTracer (Zhang et al., 2026a) goes further by constructing attribution data and training a diagnostic model, while AgentDebug (Zhu et al., 2025) uses corrective feedback to recover from failures. Their principal learning and recovery objectives, however, differ from training an acting policy on corrected behavior. Across these resources, differences in execution settings, annotation targets, and correction evidence also make it difficult to study diagnosis and action learning on a common collection of failures. A broader resource is therefore needed to connect natural failures with explanations, proposed corrections, and execution evidence, and to support training for both diagnosis and action.

We introduce the Agent Error Dataset (AED), a collection of 50,228 error–diagnosis pairs spanning 33 environments, 19 harness families and 23 policy models. This breadth supports failure analysis across text-based execution settings; stored traces also support re-diagnosis without new rollouts. Our Agentic Error-to-Training (AET) pipeline links diagnoses and proposed corrections to matched replay outcomes where supported, then constructs objective-specific training views (Figure 2). The collection counts pairs, while experiments use a separately frozen diagnosis release and distinct replay and actor cohorts (Section 3.3).

Our contributions connect failure analysis, correction testing and post-training. (i) A scaled collection of natural agent failures retains provenance across execution settings, supporting analysis of how failures vary with the model and harness (Section 3.3). (ii) AET, a pipeline for reusing failed experience, links diagnoses, corrections and optional controlled replay to separate training views. First-proposal corrections improve matched-replay pass rates by 32.7 percentage points over original-action retries (Section 5.1). (iii) An empirical study of error-aware post-training shows that full-diagnosis SFT on 1,656 source tasks raises internal exact-step teacher-label agreement from 47.2% to 63.6% across three seeds.

References (44)