# Efficient Forecasting of Task Failures in LLM Agents through Adaptive Fault Injection

*Vartika Sengar, Parth Thakkar, Pranoy Panda, Shrey Satapara, Emmy Liu, Vijay Viswanathan, Sho Takemori, Graham Neubig, Chaitanya Devaguptapu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149975) · [OpenReview](https://openreview.net/forum?id=loCv3Kc6e6) · [Open on the map](../papers.html#p149975)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM Agent Coordination and Evaluation](../pgroup/423.md) · Type: new method · Keywords: task failure forecasting, LLM agent reliability, adaptive fault injection, runtime monitoring, agent recovery prediction, synthetic failure traces

Areas: [LLM Reasoning](../areas/reasoning.md) › Agentic Reasoning › Agent Planning; [AI Agents](../areas/agents.md) › Agent Robustness › Agent Failure Attribution; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Agent Evaluation

## Summary
The paper introduces adaptive fault injection to generate synthetic failure traces and trains a lightweight forecaster that predicts whether an LLM agent's partial execution will recover, achieving 78.01% weighted F1 and improving agent success across multiple benchmarks.

## Explained to a 5-year-old
Some computer programs called LLM agents try to do many steps to finish a task. When they make a mistake, we want to know if they can still fix it or if they will fail. The paper makes fake mistakes on purpose to teach a small computer program how to guess if the real mistakes will be fixable. This guesser can warn the agent early, so it can try to fix things before they go wrong. Because of this, the agents finish more tasks correctly, like solving puzzles or writing code.

## Explained to a 5-year-old, longer
Imagine a smart robot that helps you with many things, like answering questions or writing code. It does lots of little steps one after another to finish its job. Sometimes it makes a mistake while doing those steps. We want to know if the robot can still fix that mistake or if it will keep making more mistakes. The paper creates a way to make pretend mistakes on purpose, so we can see which mistakes are dangerous. By looking at these pretend mistakes, a small computer learns to guess whether a real mistake will be fixable. This guesser watches the robot as it works and tells it when it might be heading toward failure. Then the robot can try to correct things before they get too bad. The new system helps the robot finish more tasks correctly, like solving puzzles or answering questions. It also saves time and computer power because it only looks at the most important mistakes. The researchers tested it on many different kinds of tasks, and it improved the robot's success rate. Overall, the idea makes AI assistants more reliable and safer to use in real life.

## For a technical reader
The paper addresses the problem of determining, during execution, whether an LLM agent's partial trace can still recover from errors. It creates synthetic failure traces by adaptively injecting perturbations into successful runs and uses bandit-based selection to focus on error types that most often lead to failure. A lightweight model (Qwen-3-8B) is trained on these traces to predict recoverability, achieving 78.01% weighted F1 and a 14-point gain over prior models at lower cost. When deployed as a runtime monitor, the forecaster enables selective intervention at inference time, boosting success rates on benchmarks such as HotpotQA, SWE-Bench, and others by 2-16 percentage points. The approach provides a practical way to improve the reliability of long-horizon LLM agents without extensive retraining.

## Problem
Predicting whether an LLM agent's partial execution trace can still recover under the current policy is challenging because failed traces mix recoverable and fatal errors, making it hard to identify which steps cause downstream failure.

## Method
The approach generates synthetic failure traces by adaptively injecting targeted perturbations into successful executions, uses bandit-based prioritization to focus on error types that most likely cause failure, and employs rollout-based verification to provide step-level supervision conditioned on the agent policy. A lightweight model is then trained on this data to forecast recoverability.

## Results
The forecaster achieves 78.01% weighted F1, surpassing Claude-4.5 Sonnet by 14 points while using 100× less compute, and improves agent success rates by 2-16 percentage points across the evaluated benchmarks.

## Contributions
It introduces Task Failure Forecasting as a proactive runtime monitor, proposes adaptive fault injection to create labeled failure traces, and demonstrates large gains in both forecasting accuracy and downstream agent performance.

## Practical relevance
It enables LLM agents to detect and intervene on likely failures in real time, improving reliability for applications that rely on long-horizon reasoning and tool usage.

## Research questions this paper is counted under

- [How can we model the underlying structure of long, unstructured execution traces for analysis and prediction?](../q/358.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149975)
