potentialpaper

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

Forecast @ ICML 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. LLM agents often execute long-horizon tasks where sequential tool calls and reasoning steps compound into a final outcome. When an agent errs mid-execution, the critical question is not whether an error occurred, but whether recovery under the current policy is still possible. Existing failure analysis answers this retrospectively, making it too late for runtime intervention. We introduce Task Failure Forecasting: predicting from a partial execution trace whether continued execution under the current agent policy is likely to fail. This is hard: human experts achieve only 54% accuracy at distinguishing recoverable from failure-inducing errors, and frontier models such as Claude-4.5 Sonnet reach 59.87% weighted F1. The core obstacle is that failed traces mix recoverable mistakes with fatal ones, obscuring which steps drive downstream failure. We address this with adaptive fault injection: injects targeted perturbations into successful traces, uses bandit-based prioritization of high failure yield error types and rollout-based verification providing policy-conditioned step-level supervision. A lightweight Qwen-3-8B model trained on this synthetic data achieves 78.01% weighted F1 on human-annotated benchmarks, outperforming Claude-4.5 Sonnet by 18.1 weighted-F1 points at 100$\times$ lower forecasting cost. When deployed as a runtime monitor for selective inference-time intervention, the forecaster improves agent success rates across HotpotQA, MuSiQue, GAIA, AssistantBench, SWE-Bench, MBPP and EnterpriseBench, yielding absolute gains in the range of 2–16 % points across held-out and unseen tasks.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
11 May 2026Forecast @ ICML 2026submittedForecast @ ICML 2026Accepted · Poster—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper introduces task failure forecasting for LLM agents and proposes adaptive fault injection as an efficient way to generate policy-conditioned supervision. Reviewers generally agreed that the problem is important and that the proposed forecaster offers a strong accuracy–cost trade-off across a broad set of agent benchmarks.

The rebuttal substantially strengthened the paper. The authors added evaluations on naturally occurring out-of-bank failures, cross-policy tests across model families, prompts, and tools, wall-clock latency measurements, and a direct comparison against post-hoc debugging and targeted retry. These additions addressed the main concerns of Reviewer QQys and Reviewer 8R8p, who explicitly stated that the response addressed the major concerns. Reviewer P4uF also revised the evaluation after clarification, but remained borderline reject due primarily to the limited size of the external benchmark and the cost–performance trade-off of online monitoring.

Some limitations remain, particularly regarding robustness under larger policy shifts, the scale of the natural-failure evaluation, and deployment cost. However, the rebuttal provides meaningful evidence beyond the original submission and clarifies the intended scope of the claims. Overall, I believe the technical contribution and empirical evidence are sufficient for acceptance.

Final justification

The rebuttal addressed most of the major concerns raised during review and provided additional evidence on generalization, policy shift, latency, and practical alternatives. While two reviewers retain borderline concerns about evaluation scale and deployment cost, both discussions became substantially more positive, and the remaining issues primarily limit the scope of the claims rather than undermine the central contribution. I therefore recommend acceptance.

Area Chair VHMe · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper introduces task failure forecasting for LLM agents and proposes adaptive fault injection as an efficient way to generate policy-conditioned supervision. Reviewers generally agreed that the problem is important and that the proposed forecaster offers a strong accuracy–cost trade-off across a broad set of agent benchmarks.

The rebuttal substantially strengthened the paper. The authors added evaluations on naturally occurring out-of-bank failures, cross-policy tests across model families, prompts, and tools, wall-clock latency measurements, and a direct comparison against post-hoc debugging and targeted retry. These additions addressed the main concerns of Reviewer QQys and Reviewer 8R8p, who explicitly stated that the response addressed the major concerns. Reviewer P4uF also revised the evaluation after clarification, but remained borderline reject due primarily to the limited size of the external benchmark and the cost–performance trade-off of online monitoring.

Some limitations remain, particularly regarding robustness under larger policy shifts, the scale of the natural-failure evaluation, and deployment cost. However, the rebuttal provides meaningful evidence beyond the original submission and clarifies the intended scope of the claims. Overall, I believe the technical contribution and empirical evidence are sufficient for acceptance.

Final justification

The rebuttal addressed most of the major concerns raised during review and provided additional evidence on generalization, policy shift, latency, and practical alternatives. While two reviewers retain borderline concerns about evaluation scale and deployment cost, both discussions became substantially more positive, and the remaining issues primarily limit the scope of the claims rather than undermine the central contribution. I therefore recommend acceptance.

Reviewer 8R8pOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies how to predict whether an LLM agent is likely to fail before it finishes a task. Instead of learning from naturally failed traces, the authors generate training data by injecting realistic errors into successful agent trajectories and observing whether the agent can recover through subsequent rollouts. They train a lightweight model to classify partial traces as either likely recoverable or likely to fail, and show that it outperforms several prompted frontier LLMs while being much cheaper to run. They also demonstrate that using the predictor to selectively trigger additional inference time computation can improve performance on QA, coding, and enterprise agent tasks.

Strengths and weaknesses

Strengths

  • Addresses an important and timely problem.

    • Most prior work focuses on post hoc failure attribution, whereas this paper studies whether an ongoing execution is likely to fail before termination.
    • This is highly relevant for long horizon agent systems where runtime intervention may be more valuable than retrospective analysis.
  • Clear and intuitive problem formulation.

    • The distinction between local action correctness and future recoverability is well motivated.
    • The paper correctly highlights that an incorrect action is not necessarily fatal, while a seemingly reasonable action may lead to an unrecoverable trajectory.
  • Creative data generation strategy.

    • Adaptive fault injection provides a practical mechanism for generating supervision without requiring large scale human root cause annotations.
    • The use of rollouts to verify whether injected errors actually induce failure is a reasonable way to operationalize recoverability.

Weaknesses

  • Recoverability is fundamentally policy dependent.

    • The target being predicted is not an intrinsic property of the state, but rather a property of the state under a specific policy, toolset, prompting strategy, and deployment configuration.
    • A stronger model or an agent with new tools may recover from states labeled as high risk during training.
    • This raises concerns about the long term usefulness of the forecaster in rapidly evolving agent systems.
  • Single rollout labeling may introduce substantial noise.

    • The paper argues that single rollout labels are unbiased in expectation, but this does not address per example label quality.
    • States near the recoverability boundary are likely to receive highly noisy labels because a single rollout converts a probabilistic outcome into a hard binary label.
    • The relatively weak performance on the high risk class may be partially explained by this issue.
  • The coverage argument relies on assumptions that are not fully justified.

    • The theoretical analysis treats state coverage as a controllable quantity.
    • In practice, coverage depends on the task distribution, vulnerability selector, injected errors, and stochastic rollout behavior.
    • Increasing the number of generated states does not necessarily imply broader or more representative coverage of relevant failure modes.
  • Potential mismatch between synthetic and natural failures.

    • Training data is generated through fault injection, while evaluation ultimately targets naturally occurring failures.
    • Real agent failures often emerge through gradual multi step degradation rather than a single injected perturbation.
    • The paper does not fully establish that the injected failure distribution matches the natural failure distribution.
  • Missing attribution based baselines.

    • The paper argues that fault injection provides cleaner supervision than fault attribution methods, but does not directly compare against attribution based training data.
    • A natural baseline would be to train an identical forecaster using labels obtained from existing attribution methods or LLM based root cause localization.
  • Limited characterization of agent complexity.

    • The paper's theoretical justification depends on large and sparse state spaces.
    • However, complexity is primarily discussed through trace length, while other important factors such as branching factor, recovery path structure, and tool complexity are not analyzed.
  • Novelty may be somewhat overstated.

    • The application to LLM agents is interesting, but the broader paradigm of fault injection for generating supervision and training failure predictors has a long history in systems and reliability research.
    • The primary novelty appears to be the adaptation of these ideas to policy conditioned recoverability forecasting rather than fault injection itself.
Questions
  1. How robust is the forecaster to meaningful policy shifts, such as new tools, different prompts, or different model families? Since recoverability is policy conditioned, stronger evidence here would improve my confidence in the method's practical applicability.

  2. How stable are the single rollout labels? A small repeated rollout study on a subset of injected states would help quantify label variance, especially near the recoverability boundary.

  3. How closely do injected failures match naturally occurring failures? Additional analysis comparing synthetic and real failure modes would help address concerns that the forecaster may learn artifacts of the injection process.

  4. Can the authors better justify the state coverage assumption? The theory relies on large, sparse state spaces, but the paper mostly uses trace length as a proxy. Simple statistics on action diversity, tool use, or branching would strengthen this argument.

Limitations

No.

The paper should more explicitly discuss the potential mismatch between the synthetic failure distribution generated through fault injection and naturally occurring agent failures. The current discussion focuses on data generation quality, but does not fully address whether injected failures are representative of real failure modes encountered during deployment.

Also, a more comprehensive discussion of these limitations, along with the conditions under which the method is expected to remain reliable (e.g., stable policies and deployment environments), would strengthen the paper.

Final justification

Thanks for the response. It was very helpful and addressed my major concerns. Please incorporate these points into the final version of the paper.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

R 8R8p (1): How robust is the forecaster to meaningful policy shifts, such as new tools, different prompts, or different model families?

Below we study the impact of policy shifts along the lines of agent model families, tools and prompts on enterprisebench. Our trained forecaster was trained w.r.t gpt 5.1-based react agent with standard tools and prompts from enterprisebench.

Shift in Policy: LLM

Here, for evaluating the impact of different LLMs, we use our data generating procedure to generate forecasting dataset for each LLM where we take 50 tasks, and perturb the successfully completed tasks at 3 locations to generate the dataset. The number of samples listed under Total/Safe/Risky indicate the number of partial traces available for evaluating the forecaster;

ReAct Agent Model Forecaster # Total # Safe # Risky F1 (Safe) F1 (Risky) Weighted F1
GPT-5.2 Chat Ours 67 59 8 0.7475 0.3300 0.6976
GPT-5.2 Chat Base Qwen 67 59 8 0.6279 0.3333 0.5927
Claude 4.5 Sonnet Ours 61 55 6 0.8367 0.3333 0.7872
Claude 4.5 Sonnet Base Qwen 61 55 6 0.6265 0.2051 0.5851

Shift in Policy: Tool and Prompt

Here, we take the same 50 tasks, but instead of varying the LLM, we vary the prompt and the tools of the react agent as mentioned by the "Prompt Variant" and "Tool Variant" column. The first two rows however use the base agent policy as reported in the paper - they added to act as a baseline.

ReAct agent model: GPT-5.1

Prompt Variant Tool Variant Forecaster # Total # Safe # Risky F1 (Safe) F1 (Risky) Weighted F1
Standard prompt Standard tools Ours 84 73 11 0.7903 0.4091 0.7404
Standard prompt Standard tools Base Qwen 84 73 11 0.5981 0.2951 0.5584
Strict verification prompt Standard tools Ours 93 70 23 0.7805 0.5714 0.7288
Strict verification prompt Standard tools Base Qwen 93 70 23 0.6606 0.5195 0.6257
Minimal prompt Standard tools Ours 90 73 17 0.7805 0.5263 0.7325
Minimal prompt Standard tools Base Qwen 90 73 17 0.6786 0.4706 0.6393
Standard prompt Paraphrased tool descriptions Ours 71 59 12 0.7879 0.5116 0.7412
Standard prompt Paraphrased tool descriptions Base Qwen 71 59 12 0.6437 0.4364 0.6086

Across these perturbations in prompts and tool descriptions, our forecaster seems to be robust. For tool description edits, we are paraphrasing the tool description by using these deterministic rewrites:

"List" -> "Return"

"Retrieve details for" -> "Fetch information about"

"Retrieve" -> "Fetch"

"Create" -> "Add"

"Updates" -> "Modifies"

"Deletes" -> "Removes"

"Initiate" -> "Start"

"Search" -> "Find"

"Get" -> "Fetch"

For prompt edits, we are adding additional instruction for the agent to verify the response before terminating (Strict verification prompt), or reducing the guardrails from the normal prompt (minimal prompt).

R 8R8p (2): How stable are the single rollout labels? A small repeated rollout study on a subset of injected states would help quantify label variance, especially near the recoverability boundary.

In a multi-rollout study over 20 injected states with 3 rollouts per state, 13/20 states (~70%) produced the same binary labels, while 7/20 showed label variation. The mean within-state variance was 0.077, indicating that most labels are robust, but some injected states have nonzero recoverability variance even under the same ReAct policy.

R 8R8p (3): Can the authors better justify the state coverage assumption? The theory relies on large, sparse state spaces, but the paper mostly uses trace length as a proxy. Simple statistics on action diversity, tool use, or branching would strengthen this argument.

To better justify the coverage assumption, we added an iso-compute analysis over the actual attacked partial states used by our data generation pipeline (in enterprisebench). For each state s=τ<=ts = \tau_{<=t}, we compute structural coverage before any resumed rollout, so the metrics measure diversity of distinct states (input for the forecaster during training).

Under a fixed rollout budget B = S * N = 100, we vary the allocation between the number of distinct states S and the number of rollouts per state N. We measure: (i) task/domain coverage over EnterpriseBench tool domains such as CRM, HR, IT, etc.; (ii) unique tool coverage; and (iii) action-sequence diversity via unique tool-call bigrams and trigrams.

States(S) Rollouts/state(N) Domains Unique tools Tool bigrams Tool trigrams
100 1 7 35 48 38
50 2 7 31 39 29
25 4 7 26 30 20
20 5 7 24 26 19
10 10 5 13 14 9
5 20 4 8 9 7

These results support the state-coverage assumption: with the same total compute, allocating budget to more distinct partial traces expands the observed support of the state distribution. Moving from S=5 to S=100 increases domain coverage from 4 to 7 domains, unique tool coverage from 8 to 35 tools, bigram diversity from 9 to 48, and trigram diversity from 7 to 38. In contrast, spending more rollouts on fewer states improves label precision for those states but does not expose the forecaster to many new task domains, tools, or action patterns.

R 8R8p (4): The paper does not fully establish that the injected failure distribution matches the natural failure distribution.

We agree that injected and naturally occurring failures need not follow the same distribution. Our fault-injection pipeline is designed to generate diverse, controllable supervision. Rollout verification validates the policy-conditioned outcome of an injected state, but does not guarantee that the state is equally common or emerges in the same way as a natural failure. However, as shown in our preceding synthetic-to-natural and out-of-bank analyses in response to reviewer R QQys (1), the forecaster does transfer to human-annotated natural failures.

These results demonstrate synthetic-to-natural transfer, but, identifying compound and gradual multi-step faults is an important direction for future work.

R 8R8p (5): The paper argues that fault injection provides cleaner supervision than fault attribution methods, but does not directly compare against attribution based training data.

Following your recommendation, we trained the Qwen-3 8B (same base model and hyperparameters) using labels derived from an LLM-based root-cause localization.

Statistics of training data generated for this method: Total train samples: 1883, Safe samples: 1674, Risky samples : 209

As shown below, attribution-based labels did not improve over the base model, while our fault-injection supervision yields substantially stronger performance.

Forecaster Model Safe Risky W. Avg
Qwen-3 8B (trained using labels from LLM-based root cause localization) 65 40.3 59
Qwen-3 8B (base model) 66.4 40.5 60.4
Qwen-3 8B (Ours) 77.0 42.1 68.9

These results support our claim that fault injection provides a cleaner and more effective source of supervision for recoverability forecasting than attribution-based labeling.

R 8R8p (6): The primary novelty appears to be the adaptation of these ideas to policy conditioned recoverability forecasting rather than fault injection itself.

We agree and appreciate this clarification. We do not intend to claim that fault injection itself is novel. Our intended contributions are:

  1. Task formulation: Forecasting from a partial LLM-agent trace whether continued execution under a fixed policy is high-risk. This is distinct from local error detection as we aim to predict future recoverability rather than determining whether the latest action is locally correct.
  2. Adaptive data generation for LLM-agent traces: Combining a structured Error Bank, vulnerability selection, adaptive error category sampling, perturbation, and rollout verification.
  3. Downstream Application: Applying the forecaster to selectively allocate additional inference-time computation before task termination.
  4. Cross-domain evaluation: Evaluating the formulation across QA, coding, and enterprise agent environments.

R 8R8p (7): A more comprehensive discussion of these limitations, along with the conditions under which the method is expected to remain reliable (e.g., stable policies and deployment environments), would strengthen the paper.

The current method is most reliable under the following conditions:

  1. The executing policy is fixed or changes only moderately.
  2. The deployment task distribution remains sufficiently similar to the training distributions.
  3. High-risk false-negative rates are monitored after deployment. New failure patterns are periodically incorporated into evaluation and training.
Authors · CommentOpenReview ↗

Rebuttal Follow-up

Dear Reviewer,

Thank you for your thoughtful reviews.

A small addendum to our response to your query on "The paper argues that fault injection provides cleaner supervision than fault attribution methods, but does not directly compare against attribution based training data.":

  • In the earlier response, we shared forecasting performance on our test set (as it contains execution based labels).
  • Below, we use this "LLM-label trained forecaster" baseline for inference scaling and compare results with our method on enterprisebench, and find our method to be better:
Forecaster/Strategy Accuracy
None (No Scaling) 0.66
Qwen-3 8B + BoN 0.78
Ours + BoN 0.82
LLM-label trained forecaster (new baseline) 0.73

As the author-reviewer discussion deadline approaches, please let us know if you have any remaining concerns or questions.

If everything has been addressed, we’d be grateful if you could consider updating your evaluation.

Reviewer P4uFOpenReview ↗
Rating
3/6
Confidence
5/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces "Task Failure Forecasting," a method to predict mid-execution whether an LLM agent trace is likely to fail under its current policy. The paper uses multi-armed bandit to inject realistic errors into successful traces, to generate failure traces with step-level labels. A Qwen-3-8B model fine-tuned on this data outperforms frontier models in terms of forecasting accuracy.

Strengths and weaknesses

Strengths

  1. The proposed data pipeline is interesting and efficient.
  2. Trained model outperforms frontier models like Claude.

Weaknesses

  1. Cost and latency of live monitoring. Running an LLM-based forecaster in the background and performing a forward pass after every agent step introduces meaningful inference cost and latency. The performance gains reported under inference-time scaling are modest in several settings. The authors should better justify this trade-off between performance and overhead.
  2. Missing comparison to post-hoc debugging. Post-execution analysis followed by a targeted retry can also boost performance, and may cost less than continuous live monitoring. The performance and total cost of task failure forecasting vs post-execution debugging is unknown. A baseline would be to run the full execution, perform failure attribution to identify the critical error step, and then resume the run with a self-refine prompt at the failure step. I am failing to understand the motivation for online error forecasting.
  3. Whether a trace is recoverable depends heavily on the backbone model. A partial trace that is irrecoverable for GPT-4o may be recoverable for a stronger model such as GPT-5.5. This raises concerns about the validity of the human annotation study. Without knowledge of the backbone model's capability boundary, how can an annotator reliably judge whether a partial trace is recoverable? It also raises concerns about generalizability. Will a forecaster trained on GPT-4o traces transfer to Claude-based agents? The limited cross-policy results in RQ6 do not fully resolve this. Overall, the proposed task formulation is fragile to me.
  4. Limited baselines. DoVer [1] performs failure attribution, applies an intervention, and resumes the rollout, which is conceptually close to the goal of failure forecasting. A direct comparison is missing.
  5. The epsilon-greedy bandit efficiently targets high-yield failure categories. While computationally efficient for dataset creation, this skews the training distribution away from the natural distribution of errors an agent will actually make in the wild.
  6. MBPP is too toy for current LLMs. Most models solve it with near-perfect single-pass accuracy and it does not require an agentic framework. I am confused why the reported accuracy in Table 3 is so low. Is there an evaluation protocol issue, or is the agent setup introducing failures that would not occur in standard single-pass evaluation?
  7. Writing clarity. Some sections are hard to parse. The setup for the inference-time scaling experiments is compressed into one large paragraph, and it took significant effort to understand which agentic system is used and how refinement is triggered on a forecasted error. The LLM backbone for this part of experiments is also not stated clearly. I assume it is GPT-4o.
  8. Factual error. The Who&When benchmark contains more than 100 traces, only a subset of which come from Magentic-One. The paper appears to omit the remaining data without any justification.

Overall, the claims of the paper rely heavily on the assumption that policy-conditioned recoverability is a well-defined and learnable target, but Weakness 3 in particular suggests this assumption needs stronger empirical support.

[1] DoVer: Intervention-Driven Auto Debugging for LLM Multi-Agent Systems. ICLR 26.

Questions
  1. How does the Qwen forecaster actually produce its prediction? Does it take the partial trace and emit a single yes or no token, perform chain-of-thought reasoning before answering, or use a classifier head on the hidden state?
  2. What is the difference between "local Best-of-N" and "step-level Best-of-N" as used in the inference scaling experiments?
Limitations

yes

Final justification

The paper needs more clarity on the implementation details, as I mentioned in the review. The idea itself is interesting. My remaining concerns are the limited dataset size (58 data sample for external benchmark), and the cost trade-off for online forecasting. The proposed method gives 0.02-0.06 performance increase with almost 2 times the cost, which I think limits the utility in actual deployment. If the authors could give some adaptive detection and prevention methods to decrease the cost, it would be worthy of acceptance. From my perspective this is still a borderline reject submission.

Formatting concerns

N/A

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

R P4uF (1): justify trade-off between performance and overhead Refer to Reviewer QQys (3)

R P4uF (2): Run the full execution, perform failure attribution to identify the critical error step, and then resume the run with a self-refine prompt at the failure step.

Conceptually, the motivation for online forecasting is not only to repair failures, but to prevent error propagation. Post-hoc debugging waits until the entire trajectory has completed, so the debugger must attribute failure from a longer, noisier trace and then recover from downstream consequences. Online forecasting instead evaluates intermediate states while the correct prefix is still intact, allowing the agent to intervene before an incorrect tool call or faulty reasoning step cascades into later actions. This distinction matters especially for tool-using agents: in realistic deployments, later actions may be costly, irreversible, or externally visible. A post-hoc retry can repair some benchmark trajectories, but it cannot generally prevent wasted tool calls, bad writes, or user-facing incorrect actions.

Further, in accordance with the reviewer suggestion, we have added a post-hoc debug and retry baseline on Enterprisebench (with up to 5 targeted retries per task).

Forecaster/Strategy Accuracy Inference Cost
None (No Scaling) 0.66 $4.57
Qwen-3 8B + BoN 0.78 $7.86
Ours + BoN 0.82 $7.83
Post-hoc targeted retry (new baseline) 0.76 $4.90

Our results show that "Post-hoc targeted retry" baseline, improves over no scaling from 0.66 to 0.76 accuracy at low additional cost. However, online error forecasting with inference scaling achieves the best performance overall: 0.82 accuracy, a +6 point gain over post-hoc targeted retry, and slightly lower cost than the generic Qwen-3 8B + BoN baseline. This supports the value of online forecasting as a targeted mechanism for improving reliability, especially in cases where actions are costly, irreversible, or externally visible.

R P4uF (3): policy-conditioned recoverability

To assess robustness to shift in agent policy, we conducted additional cross-policy evaluations across different backbone models (GPT-5.2 and Claude 4.5 Sonnet), prompts, and tool configurations in our response to Reviewer 8R8p (1). We find that the forecaster consistently outperformed the baseline under these policy variations, providing evidence that the learned signals generalize beyond the exact training policy.

R P4uF (4): comparison with DoVer [1]

DoVer-style debugging identifies the responsible step after a failed execution and then resumes or retries. Whereas task failure forecasting predicts during execution whether the current state is likely to lead to failure under the current policy. We agree that conceptual distinction alone is insufficient. Therefore, for empirical comparison we are adding a DoVer-inspired post-hoc attribution-and-resume baseline for the same task (R P4uF (2) above). We will also expand the related-work discussion. The two approaches can be complementary: forecasting can trigger early intervention, while attribution can diagnose executions that still fail.

R P4uF (5): epsilon-greedy bandit skews the training distribution away from the natural distribution of errors an agent will actually make in the wild.

The adaptive injection distribution is not intended to estimate the natural frequency of errors. It deliberately prioritizes categories that generate informative and high-risk states under a fixed data-generation budget. This design improves state coverage and class balance. Further, in Table 4 of the paper we show that bandit-based data construction helps forecast better than random (natural distribution of error categories) under same perturbation budget.

R P4uF (6): why the reported accuracy in Table 3 is so low.

In standard MBPP, the benchmark assertions are generally visible to the model and are also used for final evaluation. The 47% baseline accuracy reported in our paper is not this conventional test-conditioned MBPP pass@1 result. In our original experiment, the Magentic-One agent received only the natural-language problem statement; the reference tests were hidden and used only for final evaluation. We intentionally used this harder setting to prevent the agent from tailoring its solution to visible assertions.

To verify that the low accuracy was caused by the hidden-test protocol rather than an evaluation error, we repeated the experiment on the same 90 MBPP validation tasks while providing the test cases in the prompt.

Method Accuracy
No Scaling 86.67%
Claude-4.5 Sonnet + Best-of-N 87.78%
Qwen-3-8B + Best-of-N 87.78%
Ours + Best-of-N 91.11%

The new results provide two useful findings:

  1. Under this test-visible setting, the no-scaling baseline increases from 47% to 86.67%, confirming that the previously reported low accuracy was primarily caused by withholding the test cases rather than by an evaluation-protocol defect.
  2. Even in this substantially easier and already high-performing setting, our forecast-guided Best-of-N method improves accuracy from 86.67% to 91.11%, an absolute improvement of 4.44 percentage points. It also outperforms both the Claude-4.5 Sonnet and Qwen-3-8B Best-of-N baselines, which reach 87.78%. These results suggest that the forecaster is useful not only when the agent lacks access to the evaluator’s tests, but also when visible tests already provide strong execution feedback.

R P4uF (7): setup for the inference-time scaling experiments

We use a Greedy Budgeted Intervention algorithm with a maximum budget of (K=5) interventions per task. Greedy Budgeted Intervention Algorithm Input: Agent policy π\pi, forecaster fθf_\theta, scaling module MscalingM_{\text{scaling}}, intervention budget K=5K=5

  1. Initialize the current intervention budget: k←Kk \leftarrow K.

  2. At each step tt, generate the agent's current action:

    at∼π(⋅∣τ<t)a_t \sim \pi(\cdot \mid \tau_{<t})
  3. forecast recoverability given the current action and earlier agent trajectory τ≤t\tau_{\leq t}:

    y^t=fθ(τ≤t)\hat{y}_t = f_\theta(\tau_{\leq t})
  4. If y^t=Incorrect/Risky\hat{y}_t=\mathrm{Incorrect/Risky} and k>0k>0:

    • Discard ata_t.
    • Generate a refined action:
      at′←Mscaling(τ<t)a'_t \leftarrow M_{\text{scaling}}(\tau_{<t})
    • Append at′a'_t to the trace.
    • Update the budget: k←k−1k \leftarrow k-1.

    Else

    • append the original action ata_t.
  5. Continue until the task terminates or the agent execution budget is exhausted.

Inference-Time Scaling Setup

Benchmark(s) Agent System Executing Backbone Typical Trace Length Scaling Strategy
HotpotQA, MuSiQue, Who&When (GAIA and AssistantBench), MBPP Magentic-One gpt-4o 10–30 steps Best-of-NN, N=3N=3
EnterpriseBench ReAct gpt-5.1 10–30 steps Best-of-NN, N=3N=3
SWE-Bench OpenHands gpt-5.1-codex-mini 60–65 steps Self-Refine

For short-horizon tasks, the scaling module generates N=3 alternative next actions and selects one using the LLM which is same as the backbone model. For long horizon task, Self-Refine generates reflection and revised action, and execution continues from the current state.

R P4uF (8): The Who&When benchmark contains more than 100 traces, only a subset of which come from Magentic-One. The paper appears to omit the remaining data without any justification.

The Who&When dataset consists of two subsets: Hand-Crafted and Algorithm-Generated. We used all 58 hand-crafted Magentic-One failure trajectories: 30 from GAIA and 28 from AssistantBench. The Algorithm-Generated subset contains 126 trajectories produced using CaptainAgent, which dynamically configures an agentic system for each query by selecting or generating task-specific agents, instructions, and tool assignments. Consequently, these trajectories do not correspond to a single fixed agent policy, topology, or tool configuration. Because our recoverability labels are conditioned on the underlying agent policy, combining the fixed-policy Magentic-One trajectories with the dynamically configured CaptainAgent trajectories would introduce uncontrolled variation in the agent architecture, policy, and tool configuration. We therefore restrict our evaluation to the complete set of 58 hand-crafted Magentic-One trajectories. We however, do evaluate on other different agentic architectures as well in the paper - ReAct in Enterprisebench, Openhands in SWEBench

R P4uF (9): How does the Qwen forecaster actually produce its prediction?

The forecaster is implemented using Qwen3-8B’s standard causal language-model head; no separate classifier head is added. It receives the original task and serialized partial execution trace, and generates a structured response:

Direction : <Correct or Incorrect>
Reason : <brief justification>

The value in the Direction field is used as the binary forecast: Correct denotes a SAFE trajectory, while Incorrect denotes a HIGH-RISK trajectory. The generated reason supports the prediction, but is not used in evaluation metric or training loss computation.

R P4uF (10): difference between "local Best-of-N" and "step-level Best-of-N"

We apologize for inconsistent terminology, they are the same.

R P4uF (11): Concerns about the validity of the human annotation study. Without knowledge of the backbone model's capability boundary, how can an annotator reliably judge whether a partial trace is recoverable?

The human study only evaluates how difficult the forecasting task is for human observers. Additionally, annotators were provided with information about the agent policy, including the backbone model and system description.

Authors · CommentOpenReview ↗

Rebuttal Follow-up

Dear Reviewer,

Thank you for your thoughtful reviews.

This is a gentle reminder as the author-reviewer discussion deadline approaches. Please let us know if you have any remaining concerns or questions.

If everything has been addressed, we’d be grateful if you could consider updating your evaluation.

Reviewer P4uF · CommentOpenReview ↗

I thank the author for the clarification. I encourage the authors to add implementation details into the paper to improve clarity, like how Qwen forecaster works, and why discarding a part of the Who&When dataset during eval. I have revised my score. My remaining concerns are the limited dataset size (58 data sample for external benchmark), and the cost trade-off for online forecasting (it gives 2-6% performance increase with ~2x the cost).

Authors · CommentOpenReview ↗

Official Comment by Authors

Thank you for the careful reassessment and constructive feedback. We will incorporate the additional experiments, implementation details and the rationale for the Who&When evaluation subset into the final version to improve clarity.

Regarding the cost-performance trade-off, we agree that online forecasting and inference scaling introduces additional inference cost. However, the increase is substantially lower than a uniform 2× across benchmarks. The aggregate cost increase is approximately 1.17× overall, with higher overhead only on some tasks (e.g., MBPP, EnterpriseBench) due to their very low no scaling inference cost. Below is the detailed cost–performance analysis based on Table 3 of the main paper. We believe this overhead is reasonable because forecasting is invoked selectively to prevent costly downstream failures, yielding consistent improvements across diverse benchmarks. We will clarify this trade-off more explicitly in the paper.

Task Accuracy Gain Relative Performance Gain Cost Increase Relative Cost Increase Cost Multiplier
HotpotQA +4% +5.7% +$2.51 +9.1% 1.09×
MuSiQue +12% +100.0% +$2.02 +9.9% 1.10x
EnterpriseBench +16% +24.2% +$3.26 +71.3% 1.71×
GAIA & AssistantBench +4% +40.0% +$3.06 +9.4% 1.09×
MBPP +2% +4.3% +$4.05 +129.4% 2.29×
SWE-Bench +2% +3.0% +$1.69 +19.9% 1.20×

Here, Relative Performance Gain (%) reports the percentage improvement in accuracy of Ours + BoN/Self-Refine over the No Scaling baseline for each benchmark. Relative Cost Increase (%) reports the percentage increase in inference cost compared to the No Scaling baseline. Cost Multiplier reports the inference cost of our method relative to the No Scaling baseline for each task. Aggregate Cost Multiplier of 1.17× summarizes the overall cost overhead across all benchmarks by dividing the total inference cost of our method by the total inference cost of the No Scaling baseline.

Regarding the external benchmark size, we agree that the human-annotated Who&When subset is relatively small. To demonstrate generalization, we additionally evaluate forecasting performance using rollout-verified labels on multiple benchmarks spanning webQA, coding and enterprise tasks (Table 2, main paper). Furthermore, we evaluate the downstream usefulness of forecaster on the standard external benchmark splits and compare against strong baselines (Table 3, main paper).

If these clarifications help address your remaining concerns, we would be grateful if you could consider revisiting your evaluation.

Reviewer QQysOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Conventional failure analysis for LLM agents is largely post-hoc, where failures are analyzed only after the entire execution trace (#steps) has been generated. This paper introduces Task Failure Forecasting, framing it as an irrecoverable error classification problem that predicts, from a partial execution trace, whether the current agent policy can still recover or whether task failure has become inevitable. The key challenge is distinguishing between recoverable and fatal errors. The authors show that this is difficult even for human experts and frontier LLMs (closed source models), as the severity of an error often cannot be inferred from the local context alone. To address this, the authors propose an "adaptive" fault injection pipeline that generates synthetic supervision by "breaking" successful agent traces. The approach adaptively prioritizes informative error types and uses rollout-based verification to obtain policy-conditioned recoverability labels. The paper also provides theoretical analysis showing that, under a fixed labeling budget, increasing state coverage is more beneficial than obtaining more accurate labels for fewer states. And the proposed efficient forecaster is used as a runtime monitoring layer to trigger selective interventions, improving downstream agent success rates in real time.

Strengths and weaknesses

The proposed adaptive fault injection pipeline is a well-motivated and principled approach for generating high quality supervision by perturbing successful trajectories, avoiding the need to rely solely on naturally occurring failures or exhaustive rollouts. Another strength is the strong balance between performance and efficiency: a lightweight Qwen-3-8B model outperforms much larger frontier models, reducing forecasting cost by roughly two orders of magnitude, which makes the approach practical for runtime deployment. Finally, the extensive evaluation across a diverse set of agent benchmarks, spanning both short and long horizon tasks, demonstrates that the proposed forecasting framework is robust, broadly applicable, and scalable to different agent settings.

The quality of the training data relies heavily on the error bank, which is constructed from known industry failure categories like reasoning action mismatch, constraint violation etc. The model may struggle to forecast novel failure modes that have not been previously identified or categorized in the bank. Embedding analysis (t-SNE) shows that recoverable and high risk errors are deeply intermingled in latent space. It might suggest that recoverability is a lateny property of the environments causal future rather than a surface level feature of the agent’s text, making it possible that the necessary signal is sometimes missing from the observable trace.

Questions

The paper focuses on financial inference cost, #llm calls etc. but does not quantify the wall clock latency introduced by the forecaster. Since the forecaster is intended to operate online, reporting the average latency per forecasting call, total latency per task (for both short/long horizon settings). This will provide a complete picture of its deployment overhead like an impact on the duration of solving a task.

The paper states that both open & closed source models are prompted in a zero-shot CoT setting, but important inference parameters (e.g., temperature, top-p, maximum output tokens, random seed, etc.) are not clearly specified. Including these details would improve reproducibility and allow a fair comparison.

The proposed forecaster is trained using an Error Bank generated through adaptive fault injection. How does it perform when deployed on failure modes that are not represented in this Error Bank? Additionally, under what conditions would the forecaster require retraining as new agent behaviors, tools, or failure patterns emerge? Addressing this would clarify the method's long term robustness and maintenance requirements.

The current approach appears to rely primarily on textual execution traces. Have the authors considered incorporating structured environment state (e.g., database states, tool outputs, system logs, or visual observations) into the forecaster or is it a part of future work? A discussion or preliminary analysis would help understand whether richer state representations could further improve failure prediction accuracy in complex agent environments.

Limitations

Yes.

Final justification

Based on provided rebuttal, several of my concerns were satisfactorily addressed. The authors provided additional experimental results demonstrating generalization to failure modes outside the Error Bank. They also reported detailed wall-clock latency (sec) measurements, complementing the financial cost analysis and providing a clearer picture of the deployment overhead for the community. In addition, the missing inference parameters were clarified, improving reproducibility, and the discussion on retraining requirements and policy-conditioned generalization clarified the intended deployment scope of the approach.

One point that remains open is whether incorporating richer environment state (e.g., structured tool outputs or multimodal observations) could further improve forecasting performance beyond textual execution traces which authors acknowledges as an interesting future work. My overall recommendation remains unchanged.

Formatting concerns

None.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

R QQys (1): How does it perform when deployed on failure modes that are not represented in this Error Bank?

To directly assess generalization beyond the Error Bank, we first deduce which samples in Who&When dataset belong to the out-of-bank subset. Two LLMs (gpt-4o and Claude 4.5 Sonnet) independently judged whether each human-annotated error matched an Error Bank category or not - if both agreed that the human-annotated error didn't belong to the error bank then we put that in the out-of-bank subset (disagreements were resolved through human adjudication).

Out-of-bank natural failures

Model Safe F1 Risky F1 Weighted F1
Claude-4.5 Sonnet 65.5 17.4 61.8
Gemini-2.5 Pro 86.1 28.6 82.1
GPT-4o 88.5 0.0 83.3
Qwen3-8B base 54.5 19.4 52.1
Ours 88.9 42.9 85.7

We observe that our forecaster achieves the highest weighted F1, substantially outperforming both the Qwen3-8B base model and prompted frontier models. These results indicate that the forecaster remains effective on errors judged to fall outside the bank.

Additionally, we already evaluated synthetic-to-natural transfer on Who&When, which contains human-annotated, naturally occurring failures that were not generated through our fault-injection pipeline. Our forecaster outperforms all prompted baselines on this natural failure dataset (Table2, main paper).

[4] M. Cemri et al. Why do multi-agent llm systems fail?, NeurIPS 2025

R QQys (2): Embedding analysis (t-SNE) shows that recoverable and high risk errors are deeply intermingled in latent space. It might suggest that recoverability is a lateny property of the environments causal future rather than a surface level feature of the agent’s text, making it possible that the necessary signal is sometimes missing from the observable trace.

We agree that recoverability is not a surface-level property of an isolated error; it depends on the current state, remaining task, tools, budget, and agent policy. This was one of the motivation of our rollout-based labeling rather than local error detection. The forecaster’s improvement over frontier models and the base model provides empirical evidence that some useful predictive signals are present in the partial traces. Exploring other attributes to add to the input of the forecaster is an interesting future direction.

R QQys (3): The paper focuses on financial inference cost, #llm calls etc. but does not quantify the wall clock latency introduced by the forecaster. Since the forecaster is intended to operate online, reporting the average latency per forecasting call, total latency per task (for both short/long horizon settings). This will provide a complete picture of its deployment overhead like an impact on the duration of solving a task.

Table: Mean latency comparison across forecasters for short horizon setting (Enterprisebench)

Forecaster Baseline latency (w/o inf scaling) Latency with BoN (with inf scaling) Forecaster latency/query Forecaster latency/invocation
Claude 4.5 Sonnet 10.89 31.71 7.21 4.51
Qwen3-8B 10.89 25.91 1.71 1.07
Ours 10.89 22.28 0.82 0.54

Table: Mean latency comparison across forecasters for long horizon setting (SWEBench)

Forecaster Baseline latency (w/o inf scaling) Latency with Self Refine (with inf scaling) Forecaster latency/query Forecaster latency/invocation
Claude 4.5 Sonnet 1088.96 3392.01 152.18 12.27
Qwen3-8B 1088.96 2195.75 31.15 6.92
Ours 1088.96 3091.16 63.93 10.15

Here, “Baseline latency” denotes the mean latency of an agent run without the forecaster. “Latency with BoN” and “Latency with Self-Refine” denote the mean end-to-end latency when the forecaster is used with Best-of-N and Self-Refine inference scaling, respectively. “Forecaster latency/query” is the mean cumulative forecaster latency per query, whereas “Forecaster latency/invocation” is the mean latency of a single forecaster call. All latency values are reported in seconds. (Qwen3-8B and ours were run on 2 A40 GPUs)

R QQys (4): Including inference parameter details would improve reproducibility

Model Temperature Top-p Max output tokens
Qwen3-8B via vLLM 0 1.0 (default) 1,000
Fine-tuned forecaster via vLLM 0 1.0 (default) 1,000
GPT-4o 0 1.0 (default) 16,384 (maximum; not explicitly set)
Gemini 2.5 Pro 0 0.95 (default) 65,536 (maximum)
Claude 4.5 Sonnet 0 0.999 (default) 64K (maximum)

R QQys (5): Under what conditions would the forecaster require retraining as new agent behaviors, tools, or failure patterns emerge? Addressing this would clarify the method's long term robustness and maintenance requirements.

Because recoverability is policy-conditioned, recalibration may be necessary when a change materially alters the likelihood of recovery from a given state. This may include: changes to the agent architecture, tool semantics or permissions, environment observation format, encountering a persistent new class of natural failures etc. Minor changes do not necessarily require full retraining. A practical maintenance procedure would be to monitor forecasting false-negative rates on recent executions. When degradation exceeds a predefined threshold, newly observed traces can be rollout-verified and combined with targeted fault injection for incremental fine-tuning. We want to clarify that the current evaluation establishes generalization across minor changes in tools, prompts, and to an extent across model families (Reviewer 8R8p (1)), but does not imply that a single forecaster will remain calibrated under arbitrary future policy or environment changes.

R QQys (6): The current approach appears to rely primarily on textual execution traces. Have the authors considered incorporating structured environment state (e.g., database states, tool outputs, system logs, or visual observations) into the forecaster or is it a part of future work? A discussion or preliminary analysis would help understand whether richer state representations could further improve failure prediction accuracy in complex agent environments.

The present work uses a unified textual representation of the partial execution trace. This representation already includes textual tool calls, tool responses, and environment observations available to the agent. Structured outputs, such as JSON tool responses or logs, are currently serialized into this textual context. However, direct encoding of structured and multimodal state is not explored in the current paper, and is an interesting future direction.

Authors · CommentOpenReview ↗

Rebuttal Follow-up

Dear Reviewer,

Thank you for your thoughtful reviews.

We hope our rebuttal has addressed your concerns. Please let us know if you have any remaining questions.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…