ForkPilot: Self-Evolving Policy for Retrospective Search in Long-Horizon Agents
cs.AI
Submitted: 2026-10-04
Updated: 2026-10-04
Code: https://github.com/apple/ml-mmtoolsandbox
License: http://creativecommons.org/licenses/by-nc-sa/4.0/
The gist: Interactive language-model agents increasingly solve complex tasks through long-horizon, multi-call reasoning, where errors in beliefs or actions can compound across tool interactions.
Abstract
Interactive language-model agents increasingly solve complex tasks through long-horizon, multi-call reasoning, where errors in beliefs or actions can compound across tool interactions. Retrospective search can recover from such failures but is prone to misallocation. Delayed outcomes obscure the contribution of intermediate search decisions, leading to Attribution Complexity, while evolving execution evidence leads to Adaptation Complexity, where previously learned estimates become stale. To address these challenges, we first introduce Search Value Dynamics (SVD), which characterizes the evolving trade-off between the gain and cost of retrospective search. Building on SVD, we propose ForkPilot, a self-evolving two-stage policy-learning framework. In the first stage, ForkPilot learns a search-value policy offline from completed trajectories through automatically constructed outcome comparisons. In the second stage, it makes search decisions based on current observations and then self-evolves by incorporating newly completed trajectories into subsequent policy updates. We evaluate ForkPilot across 6 diverse benchmarks and 7 widely used LLM backbone families, including four open-source families, GPT-5.6 Sol, and Opus 4.8 in a production agentic system, against 9 competitive baselines, including a real-world harness deployment used by hundreds of thousands of paid users. ForkPilot achieves comparable state-of-the-art performance while reducing token usage by up to 59.2%, demonstrating its efficacy.
Sources
- TSR: Trajectory-Search Rollouts for Multi-Turn RL of LLM Agents
- Fact-Augmented Lookahead Planning for LLM Agents
- Tree Search for Language Model Agents
- Plan and Budget: Effective and Efficient Test-Time Scaling on Reasoning Large Language Models
- Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills
- Learning When to Plan: Efficiently Allocating Test-Time Compute for LLM Agents
- WebCanvas: Benchmarking Web Agents in Online Environments
- Hindsight Credit Assignment for Long-Horizon LLM Agents
- Rewarding Beliefs, Not Actions: Consistency-Guided Credit Assignment for Long-Horizon Agents
- An Illusion of Progress? Assessing the Current State of Web Agents
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems