AgentForesight: Online Auditing for Early Failure Prediction in Multi-Agent Systems
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM-based multi-agent systems are increasingly deployed on long-horizon tasks, but a single decisive error is often accepted by downstream agents and cascades into trajectory-level failure. Existing work frames this as post-hoc failure attribution, diagnosing the responsible agent and step after the trajectory has ended. However, this paradigm forfeits any opportunity to intervene while trajectory is still unfolding. In this work, we introduce AgentForesight, a framework that reframes this problem as online auditing: at each step of an unfolding trajectory, an auditor observes only the current prefix and must either continue the run or alarm at the earliest decisive error, without access to future steps. To this end, we curate AFTraj-2K, a corpus of agentic trajectories across Coding, Math, and Agentic domains, in which safe trajectories are retained under a strict curation pipeline and unsafe trajectories are annotated at the step of their decisive error via consensus among multiple LLM judges. Built on that, we develop AgentForesight-7B, a compact online auditor trained with a coarse-to-fine reinforcement learning recipe that first equips it with a risk-anticipation prior at the failure boundary on adjacent safe/unsafe prefix pairs, then sharpens this prior into precise step-level localization under a three-axis reward jointly targeting the what, where, and who of an audit verdict. Across AFTraj-2K and an external Who&When benchmark, AgentForesight-7B outperforms leading proprietary models, including GPT-4.1 and DeepSeek-V4-Pro, achieving up to +19.9% performance gain and 3× lower step localization error, opening the loop from post-hoc failures detection to enabling deployment-time intervention. Project page: https://zbox1005.github.io/agent-foresight/
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 60 of its 70 references that are in the map. First posted on arXiv 9 May 2026.
Builds on
60 of 70 references.
Closest ancestors · 8
Same direction, newest first
- 2026The Why Behind the Action: Unveiling Internal Drivers via Agentic Attribution21 Jan
- 2025Where LLM Agents Fail and How They can Learn From Failures29 Sep
- 2025AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?3 Sep
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr
- 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
- 2024Defining and Detecting the Defects of the Large Language Model-based Autonomous Agents24 Dec
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug
Other references · 52
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023Let's Verify Step by Stepcited by 3,789
38 more
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2025Gemma 3 Technical Reportcited by 1,824
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,395
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023GAIA: a benchmark for General AI Assistantscited by 1,128
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,017
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 928
- 2023ChatEval: Towards Better LLM-based Evaluators through Multi-Agent Debatecited by 742
- 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 497
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 384
- 2024ProcessBench: Identifying Process Errors in Mathematical Reasoningcited by 292
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 238
- 2023SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoningcited by 159
- 2023LM-Polygraph: Uncertainty Estimation for Language Modelscited by 131
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2024Language Agents as Optimizable Graphscited by 89
- 2025Stress Testing Deliberative Alignment for Anti-Scheming Trainingcited by 86
- 2025AgentPRM: Process Reward Models for LLM Agents via Step-Wise Promise and Progresscited by 77
- 2025AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learningcited by 72
- 2025In-the-Flow Agentic System Optimization for Effective Planning and Tool Usecited by 72
- 2025SHADE-Arena: Evaluating Sabotage and Monitoring in LLM Agentscited by 71
- 2025Robin: A multi-agent system for automating scientific discoverycited by 62
- 2025Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agentscited by 62
- 2025LLM Collaboration With Multi-Agent Reinforcement Learningcited by 49
- 2025Reliable Weak-to-Strong Monitoring of LLM Agentscited by 31
- 2025CoT-UQ: Improving Response-wise Uncertainty Quantification in LLMs with Chain-of-Thoughtcited by 23
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
- 2024From Commands to Prompts: LLM-based Semantic File System for AIOScited by 14
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Delayed Verification Destabilizes Multi-Agent LLM Belief: Instability Thresholds and Optimal Corrector Placementcited by 4
- 2026Beyond Corrected Memory: Execution Consistency in Multi-Agent Systemscited by 2
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 1
- 2026Before the Rollout Ends: Early Terminal Reward Prediction for Long-horizon Coding Agentscited by 1
- 2026Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Studycited by 0
- 2026StateGuard: Analytical-State Management with Validity-Aware Intervention for Long-Horizon Data Agentscited by 0
- 2026EvoSteer: Online Self-Evolving Graph Orchestration via Reference-Anchored Credit Assignmentcited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
- 2026Sentry: Learning to Recover from LLM Agent Failures at Test Timecited by 0
- 2026ReCast: Attribution-Oriented Step Representation Learning for LLM-Based Agent Systemscited by 0
- 2026Dream2Discern: Learning from Hard Latent Variants for Runtime Failure Prediction in Multi-Agent Systemscited by 0
- 2026Dream2Discern: Learning from Hard Latent Variants for Runtime Failure Prediction in Multi-Agent Systems12 Oct 2026
- 2026ReCast: Attribution-Oriented Step Representation Learning for LLM-Based Agent Systems8 Oct 2026
- 2026Beyond Corrected Memory: Execution Consistency in Multi-Agent Systems6 Oct 2026
- 2026Sentry: Learning to Recover from LLM Agent Failures at Test Time2 Oct 2026
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agents30 Sep 2026
- 2026EvoSteer: Online Self-Evolving Graph Orchestration via Reference-Anchored Credit Assignment29 Sep 2026
- 2026StateGuard: Analytical-State Management with Validity-Aware Intervention for Long-Horizon Data Agents28 Sep 2026
- 2026Before the Rollout Ends: Early Terminal Reward Prediction for Long-horizon Coding Agents25 Sep 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Study27 Jul 2026
- 2026Delayed Verification Destabilizes Multi-Agent LLM Belief: Instability Thresholds and Optimal Corrector Placement25 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026BLADE: Auditing Information Use for Failure Attribution in LLM Multi-Agent Systems
- 2026Early Diagnosis of Wasted Computation in Multi-Agent LLM Systems via Failure-Aware Observability
- 2026Automata from Agent Traces: Failure and Next-Step Prediction
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
- 2026Adaptive Influence Graphs for Failure Attribution in Multi-Agent Systems
- 2026VerifyMAS: Hypothesis Verification for Failure Attribution in LLM Multi-Agent Systems
- 2026TRACES: Proactive Safety Auditing for Multi-Turn LLM Agents via Trajectory-State Modeling
- 2026Seeing the Whole Elephant: A Benchmark for Failure Attribution in LLM-based Multi-Agent Systems