Dream2Discern
Learning from Hard Latent Variants for Runtime Failure Prediction in Multi-Agent Systems
Rutgers University
2
The University of Texas at Austin
3
trajectory-level weighted accuracy on both benchmarks
AFTraj-2K 91.47 · StepShield 90.28
wACC points over the strongest auditor baseline
StepShield · 90.28 vs. AgentForesight-7B 79.17
additional trajectories collected or verified
Hard variants are built inside the auditor
auditor exceeds Claude-Sonnet-4.6 on StepShield
wACC 90.28 vs. 87.04 · TWA 57.67 vs. 56.79
Runtime auditors learn from a limited labeled corpus. New trajectories need rollouts and verification, edits can invalidate outcome labels, and broader coverage does not reveal hard cases.
With the auditor fixed, a bounded, low-rank perturbation of its query and value projections is chosen to increase batch prediction loss, yielding hard latent variants of recorded prefixes.
The auditor learns from these variants with the recorded labels as they are regenerated each batch. At runtime the perturbation is discarded and a calibrated threshold predicts failure.
Reliable deployment of LLM-based multi-agent systems calls for runtime auditors that predict terminal outcomes from observed execution prefixes. These auditors typically learn from a limited corpus of trajectories with verified outcomes. Expanding this corpus requires costly execution and verification, yet broader failure coverage alone provides no explicit criterion for identifying prefixes that the current auditor finds difficult to classify. To this end, we propose Dream2Discern, a runtime auditor trained through implicit augmentation guided by its own prediction loss. During Dream, we select perturbations of the auditor's representation operators to increase prediction loss on recorded prefixes, yielding hard latent variants. During Discern, the auditor learns to predict execution outcomes from these variants using the original labels. The variants are regenerated as the auditor learns, turning a limited corpus into a renewable source of hard examples and requiring no additional trajectory collection or outcome verification. Extensive evaluations on AFTraj-2K and StepShield show that Dream2Discern outperforms competitive failure auditors and achieves over 90% trajectory-level weighted accuracy on both benchmarks while balancing prediction accuracy and timeliness.
Averaged acquisition times reach tens of seconds per trajectory, making repeated corpus expansion time-consuming. Mean rollout plus verification time on AFTraj-2K:
We modify an action or tool response, resume execution and verify again, obtaining 326 continuations. Among those from failed source trajectories, 85.7% succeed.
More fundamentally, broader failure coverage alone provides no explicit criterion for identifying trajectories whose prefixes the current auditor finds difficult to assess.
Can we identify and exploit the current auditor's hard cases without acquiring additional labeled trajectories?
Our key insight is to use the auditor's own prediction loss as a criterion for deciding which variants to construct.
Original and edited prefixes, encoded by the same frozen LLM, overlap in a shared PCA projection. With the encoder and training budget fixed, adding verified edits does not lower held-out class-balanced BCE. A perturbation selected only on training prefixes, applied temporarily with the original head fixed, raises the same held-out loss.
AFTraj-2K: multi-agent executions in math, coding and tool use, tested in-domain. StepShield: safety-monitoring trajectories, tested on unseen incident templates.
AUROC and FPR95 from each trajectory's maximum prefix score; wACC, trajectory-level weighted accuracy; TWA, time-weighted accuracy rewarding earlier detection.
Open-weight judges: Qwen3-8B, LlamaGuard3-8B and Qwen3-32B; closed-source judges remain. SAFE, H&S and TRACES use Qwen3-8B; Dream2Discern shows 4B and 8B.
Table 1 · selected rows. Shaded rows: SAFE, Hide-and-Seek (H&S) and TRACES with Qwen3-8B. ± is the standard deviation over three training seeds.
On in-domain AFTraj-2K, Dream2Discern leads all four metrics. With Qwen3-8B, it outperforms SAFE, Hide-and-Seek and TRACES on every metric, averaged over three seeds.
On out-of-domain StepShield, Dream2Discern leads wACC and TWA. LLM judges are more competitive here, yet the 4B auditor exceeds Claude-Sonnet-4.6 in wACC and TWA, and its wACC advantage over failure auditors is substantially larger than on AFTraj-2K.
With Qwen3-8B, we vary the nominal false-alarm level α from 0.01 to 1.00 and plot wACC against mean normalized detection time over failed trajectories, counting undetected failures as one.
On AFTraj-2K, Dream2Discern achieves higher wACC when early detection is prioritized.
On StepShield, the gains extend across a broad range of operating points.
Figure 6. Case study of runtime failure prediction on a held-out coding trajectory from AFTraj-2K. Dream sensitivity values are approximate.
The arXiv identifier will be filled in once the preprint is posted.
The variants are regenerated as the auditor learns, turning a limited corpus into a renewable source of hard examples and requiring no additional trajectory collection or outcome verification.
{{ lbCaption }}