Search papers, labs, and topics across Lattice.
This paper introduces a method for early detection of doomed trajectories in large language model (LLM) agents by utilizing lightweight probes on hidden activations to predict episode failure as early as the first interaction round. By implementing a recall-controlled probe cascade, the authors achieve significant inference compute savings鈥攗p to 47.1% for the Qwen-2.5-7B model鈥攚hile maintaining high recall rates between 90% and 97%. The findings demonstrate that internal representations are more predictive of failure than observable behaviors, providing a robust mechanism for optimizing LLM agent performance in multi-step tasks.
Early detection of failure in LLM agents can save over 47% of inference compute by leveraging internal representations rather than observable behavior.
Large language model (LLM) agents solving multi-step tasks frequently commit to trajectories that are doomed to fail, yet continue to consume substantial inference compute before the failure becomes observable. We show that failure is predictable early from the agent's internal representations: lightweight per-round probes on hidden activations anticipate eventual episode failure as early as the first interaction round, where scorers reading only the agent's observable behavior are barely better than chance. We turn this signal into a practical abort cascade: one distribution-free calibrated gate per round, with per-round recall budgets jointly searched so that eventually-successful episodes survive all gates at a user-specified global rate; this episode-level guarantee is the one that matters in deployment, since false-abort risk accumulates across gates. Across two agent models on TextCraft, the cascade meets every recall target from 90% to 97% and, at the 90% target, saves 47.1% +/- 10.3% (Qwen-2.5-7B) and 37.2% +/- 8.8% (Llama-3.2-3B) of inference compute, 1.6--1.7x the best single-gate policy. An otherwise-identical cascade reading only behavior saves roughly half as much, and adding behavioral features to the probe yields no further gain: the hidden states capture what behavior reveals. Finally, we characterize the sample complexity of certifying high recall targets, telling practitioners which recall promises their data can, and provably cannot, back. The code will be released soon.