Verify--Backtrack Loop: Structured Precondition Recovery for Long-Horizon Language Agents
Mingyang Liu, Qingcan Kang, Shixiong Kai, Tao Zhong, Mingxuan Yuan, Xin Li, Linqi Song
Abstract
Language agents increasingly tackle long-horizon tasks in interactive environments, where actions often depend on latent preconditions. The core difficulty is not trajectory length but recovery: when a prerequisite is missing or an earlier decomposition fails, trying another plausible action rarely helps. ReAct and later reflection or adaptive-planning methods support local correction, but express recovery as free-form text, with no explicit control state linking the terminal goal, the active goal, and the failure source. We introduce the Verify--Backtrack Loop (VBL), a training-free extension of ReAct that turns precondition discovery and failure diagnosis into structured planning-state updates. VBL maintains the task decomposition as a bounded goal stack and, on goal activation, execution failure, or material state change, jointly verifies two horizons---whether the active goal contributes to the terminal goal and whether it is feasible in the current state. These dual-horizon judgments, combined with typed failure attribution, trigger explicit operations---Push, Pop, retry, or BacktrackTo the parent. We evaluate VBL with Qwen3.5-9B, GPT-4o, and DeepSeek-V3.2 on AppWorld, ALFWorld, and ScienceWorld. VBL improves over ReAct and reflection-based control on every backbone--benchmark pair. On the challenging AppWorld setting, it improves task success by up to 22.07 percentage points over ReAct. Ablations show that removing either verification or diagnosis degrades performance, in several settings below ReAct, confirming that the two mechanisms are complementary. These results show that reliable long-horizon interaction benefits from revising the planning state, not merely the next action.
Create a lesson
Related papers
Who Schedules Agent Memory? A Sidecar Approach to Long-Horizon Tasks
Shared title terminologycs.AIQijia Zhuang, Rui Liu, Yuxiang Ren
Designing Informative Actions: Action Construction for Long-Horizon Research Agents
Shared title terminologycs.AIAlkut Arxidin, Shaoning Zeng, Jianhang Zhou et al.
MemU-Bench: Benchmarking GUI Agents on Long-Horizon User Interactions
Shared title terminologycs.AIYizhou Liu, Zhengxi Lu, Fei Tang et al.
Operon-S1: a fast decision controller for long-horizon biomedical agents
Shared title terminologycs.AIGenoria AI Team, Yuejie Hou, Yueyuxiao Yang et al.
Rome Wasn't Built in One Turn: Replay-Grounded Reward Signals for Long-Horizon Freeciv Agents
Shared title terminologycs.AIYanchen Liu, Xinyu Che, Brihi Joshi et al.
BABA-Bench: Evaluating Long-Horizon Patient-Advocacy Agents
Shared title terminologycs.AIShriram Vasudevan, Videet Mehta, Connor Sweeney