BELIEFWEAVER Gives Long-Horizon Agents a Better Way to Recover
Introduction
Long-horizon agents do not fail only because they lack a particular tool call or command. A visible failure may be the consequence of a decision made several steps earlier. When an agent relies on local reflection, it may focus on the latest error, repeat the same approach, or backtrack without knowing which earlier state is actually relevant.
A paper from IntelligenceLab introduces BELIEFWEAVER as a framework for making failure recovery more persistent and more prospective. Rather than treating each attempt as an isolated trajectory, the system maintains structured beliefs about what has happened, where the task can continue, and which repair directions are worth testing. The work evaluates the approach on three terminal-based benchmarks, according to the material available on the paper page.
What the framework changes
- Evidence survives across attempts. BELIEFWEAVER maintains a relational belief state covering frontiers, attempts, observations, and checkpoints. Execution evidence from one attempt can update the priority of related frontiers even after rollback or a new attempt begins.
- Diagnosis can gate action. The framework does not assume that every detected failure should immediately trigger another command. Diagnostic evidence is used to decide whether an execution direction is sufficiently plausible before the agent commits to it.
- Repair becomes prospective. Its implicit world model, or IWM, evaluates repair hypotheses, estimates likely progress, and identifies relationships between task frontiers. This allows the agent to explore alternatives instead of merely replaying a history of mistakes.
- Reasoning is distilled into a smaller model. The authors use supervised fine-tuning and on-policy distillation to transfer recurring IWM reasoning patterns to a 9B student model. The goal is to retain recovery behavior while reducing dependence on repeated teacher-model inference.
Results and implications
The paper reports that BELIEFWEAVER improves aggregate final score by 5.1 percentage points over native Terminus-2 continuation across the three terminal benchmarks. It also reports positive trends in exploration efficiency. The distilled 9B student improves final score by 9.8 percentage points over the reported native baseline, while reducing estimated teacher API cost by 54.8% relative to the matched teacher setup. These figures are reported by the authors; the supplied material does not provide the benchmark names or all experimental details.
The broader contribution is a more precise view of agent memory. Memory for recovery is not simply a longer transcript. An agent must preserve the relationship between evidence and task branches, distinguish useful checkpoints from misleading ones, and estimate whether a proposed repair can change the future trajectory. This is particularly relevant to terminal operation, code execution, and other environments where a small early mistake can invalidate many later steps.
The current evidence is still centered on terminal-based tasks. Whether the same representation transfers to visual environments, open-ended worlds, or embodied robots remains an open question. Even so, BELIEFWEAVER offers a clear design direction: an agent should remember not only what happened, but also why a path failed, which frontier remains promising, and what should be tried next.
Source: Hugging Face Daily Papers
Comments
Checking sign-in status...
Loading comments...