When Evidence is Sparse: Weakly Supervised Early Failure Alerting in Dialogs and LLM-Agent Trajectories

Avinash Baidya, Xinran Liang, Ruocheng Guo, Xiang Gao, Kamalika DasarXiv 2026

TL;DR

Detecting when a multi-turn dialog or LLM agent is heading toward failure is difficult because the actual "evidence" of failure is sparse and usually occurs late in the interaction. This paper introduces a two-stage framework that uses Multiple Instance Learning (MIL) to pinpoint sparse failure cues and pairs it with $\alpha$-STOP, a single reinforcement learning policy that allows developers to dynamically tune the balance between alerting accuracy and speed at inference time without retraining.

What Problem Does This Paper Address?

As LLM-based agents and complex dialog systems handle longer, multi-turn tasks (like booking appointments or executing multi-step API calls), things inevitably go wrong. Catching these failures early is critical to prevent user frustration, save compute costs, and avoid unsafe behaviors.

However, building an automated "early warning system" faces two major roadblocks:

  1. The Credit-Assignment Problem (Weak Supervision): We usually only know the final outcome of a trajectory (success or failure). Standard approaches train predictors by assigning this final label to every single step (prefix) of the interaction. This assumes every turn contains failure evidence, which leads to premature, inaccurate alerts.
  2. Moving Performance Targets: Different applications require different trade-offs. A high-stakes financial agent needs highly accurate alerts (even if they come late), while a customer service chatbot might prefer early, aggressive alerts to escalate to a human quickly. Currently, changing this "accuracy vs. earliness" preference requires training an entirely new model for every single operating point.

Methods

The authors propose a decoupled, two-stage architecture to solve prediction and control separately:

Figure 1: Overview of the proposed model at turn t. Given the interaction prefix Ht, a naive prefix scorer produces a prefix score bt, while the MIL evidence encoder produces an evidence vector Et. A fusion module combines these signals into a failure probability ˆpt, which an α-conditioned stopping policy (α-STOP) maps to an action at ∈{STOP, CONTINUE}. The scalar α lets users choose their preferred accuracy–earliness trade-off at inference time without training a new model.

1. Attention-Based Failure Predictor

Instead of assuming every turn is equally guilty for a final failure, the model uses Multiple Instance Learning (MIL) with an attention mechanism to retrospectively identify which specific turns drove the failure. Because this full-trajectory attention isn't available during live, online inference, they train an online gating predictor to approximate these turn-level contributions using only the history available up to the current turn. This sparse evidence vector ($E_t$) is then fused with a standard naive prefix score ($b_t$) to output a robust failure probability ($\hat{p}_t$).

2. Trigger Policy ($\alpha$-STOP)

To handle varying user preferences without retraining, the authors introduce $\alpha$-STOP ($\alpha$-conditioned Sequential Triggering Optimization Policy). This policy takes the rich state representation (including the failure probability and evidence vectors) along with a user-specified control knob, $\alpha \in (0, 1]$.

  • A high $\alpha$ prioritizes accuracy (waiting for more evidence).
  • A low $\alpha$ prioritizes earliness (triggering an alert sooner).

The policy is initialized via Behavior Cloning (BC) to mimic a simple threshold rule and then fine-tuned using Proximal Policy Optimization (PPO) to maximize a joint accuracy-earliness reward function.

Datasets

The framework was evaluated across five diverse multi-turn benchmarks:

  • Dialog Datasets:
  • PCS: A proprietary dataset of long, open-ended customer support chat transcripts.
  • BETOLD: Task-oriented dialogs for appointment booking, focused on dialog breakdown detection.
  • Persuasion for Good (P4G): Conversations where a persuader attempts to convince a user to donate to charity.
  • Agentic Reasoning & Planning Datasets:
  • AppWorld: LLM agents executing day-to-day digital tasks via API/tool calls.
  • ALFWorld: Text-based embodied environments where agents plan and execute household tasks.

Key Insights and Ideas

  • Failure evidence is a needle in a haystack: Using retrospective LLM judges, the authors proved that highly relevant failure evidence only occupies 4.7% to 11.3% of turns in a failed trajectory. Furthermore, this evidence is heavily delayed, typically appearing only after 59.0% to 83.6% of the interaction has already elapsed.
  • Decoupling prediction from triggering is essential: Trying to learn both risk estimation and the stopping policy simultaneously via end-to-end RL underperforms drastically. Separating the risk signal generation (the predictor) from the policy optimization ($\alpha$-STOP) makes the system much more stable and sample-efficient.
  • Continuous inference-time control is possible: By conditioning the RL policy directly on $\alpha$, the model learns a monotonic relationship where increasing $\alpha$ predictably delays the stopping time, giving operators a smooth, reliable control knob.

Key Results

  • Better Trade-offs (Pareto Frontier): Fusing sparse turn-level evidence into the failure predictor improved the Pareto-frontier quality (measured by hypervolume) by 1% to 10% over naive prefix supervision.
  • Outperforming the State-of-the-Art: When evaluating the full system, $\alpha$-STOP outperformed existing time-series early classification baselines (like ALERT and FIRMBOUND), improving frontier hypervolume by 3% to 42%* across the benchmarks.
Accuracy-earliness curves showing $\alpha$-STOP outperforming baseline stopping mechanisms across datasets.
  • Massive Compute Savings: Because $\alpha$-STOP covers the entire accuracy-earliness spectrum with a single model, it reduces the training compute cost by 1 to 3 orders of magnitude compared to baselines that require retraining separate models for every single target trade-off point.

Limitations and Future Work

  • Encoder Dependencies: The system relies on fixed, pre-trained text embeddings (specifically Qwen3-Embedding-0.6B). Performance is inherently bounded by the encoder's context window and representation quality.
  • Domain Calibration: While $\alpha$ provides a predictable control knob, mapping a specific $\alpha$ value to a real-world metric target (e.g., "exactly 80% precision") still requires empirical calibration on a validation set before deployment.
  • Generality of Sparse Evidence: While the "sparse-and-late" failure structure held true across all five diverse datasets tested, it may not apply to every imaginable NLP or sequential decision-making task.

Summary updated

BibTeX
@misc{baidya2026when,
  author = {Avinash Baidya and Xinran Liang and Ruocheng Guo and Xiang Gao and Kamalika Das},
  title = {{When Evidence is Sparse: Weakly Supervised Early Failure Alerting in Dialogs and LLM-Agent Trajectories}},
  year = {2026},
  eprint = {2606.05414},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.05414},
}
Figure