TL;DR
CAFE (Coupled Agent–Feedback Evolution) is a novel framework that trains a single language model to co-evolve as both a search agent and an in-trajectory critic. By alternating online reinforcement learning for the agent with offline preference optimization for the critic, CAFE effectively corrects intermediate search errors and reduces answer-level hallucinations across multiple complex benchmarks.
What Problem Does This Paper Address?
When AI agents tackle long-horizon, knowledge-intensive search tasks, an early mistake can derail the entire process. Standard reinforcement learning (RL) methods rely on outcome supervision—a single reward at the very end of the trajectory indicating success or failure. Unfortunately, this terminal reward cannot pinpoint exactly where the agent went wrong, nor can it help the agent self-correct mid-stream.
While introducing an interactive "critic" to provide in-context feedback can help redirect a drifting agent, it introduces a moving-target problem. As the search agent improves via RL, its failure patterns shift. A static critic quickly becomes obsolete, providing irrelevant feedback for states the evolving agent no longer visits. To solve this, the authors argue that the agent and the critic must co-evolve.
Methods
The authors introduce CAFE, a framework where a single shared-parameter model alternates between the roles of a search agent and an in-trajectory critic.
The training pipeline consists of three main phases:
- Bootstrapping via Failure-Driven SFT: Instead of training on flawless expert trajectories, CAFE initializes the model using the base agent's own failures. A teacher model identifies the earliest turn where the agent erred, inserts a
<request_feedback>token, and generates a successful recovery continuation. This teaches the model how to use feedback in the exact states it naturally struggles with. - Online Agent Optimization: During online RL (using a variant of GRPO), CAFE implements two mechanisms:
- Comparative Feedback Estimate (CFE): This shapes rewards by measuring the success gap between rollouts that requested feedback versus those that skipped it, teaching the agent when it is actually beneficial to ask for help.
- Feedback-Aware Advantage Shaping: Standard RL rewards an entire successful trajectory equally. CAFE explicitly splits the trajectory tokens into pre-feedback and post-feedback phases, discounting advantages for tokens leading up to the error so the agent learns to abandon, rather than reinforce, the behavior that triggered the failure.
- Offline Feedback Optimization (RDPO): To keep the critic aligned with the agent's new capabilities, CAFE uses Rollout-Derived Preference Optimization. It mines recent online rollouts to pair successful recoveries with failed continuations that share the exact same pre-feedback prefix, optimizing the critic's guidance.
Datasets
The authors evaluated CAFE across several agentic SearchQA benchmarks:
- In-Domain: 2WikiMultihopQA (used for the primary training loop).
- Out-of-Domain Generalization: HotpotQA, MuSiQue, PopQA, Bamboogle, Natural Questions, and TriviaQA.
- Long-Horizon Deep Research: BrowseComp-Plus (a challenging benchmark featuring a fixed curated corpus and human-verified documents).
Key Insights and Ideas
- The Co-Evolution Necessity: One-sided training plateaus quickly. If you only update the agent while freezing the critic, or vice versa, performance stagnates. True continuous improvement requires both roles to update in tandem.
- Credit Assignment Boundaries: Rescued trajectories inherit a fundamental confounder: the prefix is bad, but the outcome is good. Advantage shaping is critical to draw a boundary at the feedback token, ensuring the model doesn't accidentally reinforce the errant steps that made the feedback necessary in the first place.
- Evolving Error Profiles: As training progresses, the critic's vocabulary naturally shifts. Early on, it focuses heavily on basic retrieval and grounding errors (e.g., "misread results"). In later stages, it adapts to target higher-level inefficiencies like redundant tool calls and logic loops.
Key Results
- State-of-the-Art Performance: At the 7B parameter scale (built on Qwen2.5-7B-Instruct), CAFE achieved the highest average Exact Match (EM) score (52.5) among all evaluated RL-based search baselines, outperforming the strongest competitor (IGPO) by 2.1 EM.
- Mitigating Hallucinations: Long-horizon search is notorious for compounding factual errors. CAFE successfully reduced the average answer-level hallucination rate from 29.9% (base model) and 17.6% (standard GRPO) down to 12.6%.
- Model Scale Robustness: The benefits of CAFE generalized down to smaller 3B models, where it achieved an average EM/F1 of 48.8/57.4, outperforming existing 3B search agents by a clear margin.
Limitations and Future Work
- Teacher Dependency for Initialization: The initial bootstrapping phase still relies on a powerful external teacher model (Kimi-K2.5) to diagnose errors and generate initial corrections. Exploring completely self-supervised initialization remains an open direction.
- Compute Overhead: Calculating the prompt-level call-skip success gap requires sampling multiple trajectories per prompt during online RL, which increases the computational footprint during training.
Summary updated