cs.AIAug 29, 2026

Localizing Emergent Failures in Agentic AI: Recovering Minimal Repair Families via Counterfactual Replay

Authors: Bingjie Li, Yumeng Song, Zhongming Yao, Tianyi Li

Organizations: School of Computer Science and Engineering, Northeastern University, Shenyang, China · Department of Computer Science, Aalborg University, Aalborg, Denmark · College of Computer Science and Technology, Zhejiang University, Hangzhou, China

Abstract

Failures in agentic AI systems can arise from interactions among messages exchanged by multiple large language model (LLM) agents. Pointwise attribution cannot distinguish a jointly necessary repair from alternative singleton repairs. We formulate Minimal Repair Family Recovery (MRFR): recovering all inclusion-minimal event sets whose counterfactual replay restores task success within a declared size bound. We propose Graph-Constrained Joint Replay (GCJR), which slices failure-relevant events from an execution dependency graph, constructs graph-feasible singleton and pair candidates, and verifies them by replay with paired clean counterparts. For fixed replay outcomes, GCJR is exact within its declared graph domain. On 90 in-scope cases from a 120-DAG controlled benchmark, GCJR achieves 1.000 Family Exact Match while reducing mean replay calls from 56.3 to 25.3 (55.1%) relative to exhaustive search. On a 24-case, four-agent LLM pilot, it again achieves 1.000 Family Exact Match and reduces mean model calls from 21.0 to 10.0 (52.4%); single-event replay misses jointly necessary repairs.

Figures & tables

Explore similar work

CardsList
  1. Who&When Pro: Can LLMs Really Attribute Failures in AI Agents?

    Jul 10, 2026Jiale Liu, Huajun Xi, Shaokun Zhang +6Agent Failure AnalysisLLM Agent Evaluation

  2. A Mechanistic Study of Automated Failure Attribution in LLM-based Agentic Systems

    Oct 20, 2026Wendy Zheng, Liang Wu, Yinhan He +3Failure Attribution for LLM Agents

  3. CausalFlow: Causal Attribution and Counterfactual Repair for LLM Agent Failures

    May 25, 2026Akash Bonagiri, Devang Borkar, Gerard Janno Anderias +2Agent Failure AnalysisCausal Interventions in Language Models