DeepSearch agents—AI systems that browse the web to answer complex questions—are powerful, but they often suffer from a "garbage in, garbage out" problem. They might generate vague queries like "assistant coach blog" when they really need "Djimi Traoré assistant coach 2018," leading to a flood of irrelevant results that derail their reasoning.
In their new paper, QREF, researchers from Fudan University and Tencent introduce a "plug-and-play" module designed to fix this interface between reasoning and retrieval. By refining queries before they are sent and filtering the evidence that comes back, QREF significantly boosts the accuracy of existing search agents without requiring them to be retrained.
TL;DR
QREF is a bidirectional interface for DeepSearch agents that uses a Query Refiner to sharpen search intents and an Evidence Filter to prune retrieval noise. By optimizing these intermediate steps via reinforcement learning with an entity-level reward, it improves agent performance by up to 33% across challenging multi-hop reasoning benchmarks.
What Problem Does This Paper Address?
Even the best DeepSearch agents (like WebSailor) frequently fail at the "search" step. The authors analyzed hundreds of trajectories and identified three recurring failure modes in query generation:
- Missing Discriminative Constraints: Forgetting a key detail (like a specific year or event) mentioned in the reasoning.
- Low Query Specificity: Using terms that are too broad to be useful.
- Redundant Query Diversification: Asking the same thing in three slightly different ways instead of exploring complementary directions.
The authors found that nearly 47% of search batches contain at least one of these failures. Crucially, these errors accumulate: unsuccessful agents generate three times as many ineffective queries as successful ones. This creates a "noise trap" where the agent gets lost in irrelevant web pages and eventually hallucinates a wrong answer.
Methods
QREF acts as a "middleman" between the Search Agent and the Search Engine. It consists of two main components:
- Query Refiner: This module rewrites the agent's raw queries to be self-contained, specific, and diverse. It follows principles like "atomic decomposition" (breaking complex needs into simple sub-queries) and "search-engine alignment" (using quotes or site-specific operators).
- Evidence Filter: After the search engine returns snippets, this module evaluates them against the current reasoning state and discards off-topic or redundant results before the agent ever sees them.
The Training Secret Sauce
The Query Refiner isn't just prompted; it's trained in two stages. First, it undergoes Supervised Fine-Tuning (SFT) on high-quality demonstrations. Second, it is optimized via Reinforcement Learning (PPO) using a novel Entity-Level Retrieval Reward.
Instead of just rewarding the model for getting the final answer right (which is a "noisy" signal), the authors reward the refiner if its new queries "hit" specific entities that the original, unrefined queries missed. This directly incentivizes the model to find the "missing pieces" of the puzzle.
Datasets
The researchers evaluated QREF across four diverse and difficult benchmarks:
- BrowseComp & BrowseComp-ZH: English and Chinese benchmarks for multi-hop web exploration.
- GAIA: A benchmark for general AI assistants requiring tool use and multi-step reasoning.
- HLE (Humanity's Last Exam): A dataset of extremely difficult, knowledge-intensive questions.
For training, they utilized DeepResearch-9K for SFT and InfoSeek for the RL phase.
Key Insights and Ideas
- Query Quality is a Bottleneck: The paper proves that intermediate query quality is a primary driver of agent success. Improving the search interface is often more effective than simply scaling the reasoning model.
- The "Plug-and-Play" Advantage: Because QREF is an external module, it can be added to any existing agent (like WebSailor or TongyiDeepResearch) without modifying the base agent's weights.
- Bidirectional Improvement: You can't just fix the queries; you also have to protect the agent from the "firehose" of the internet. The Evidence Filter ensures the agent's limited context window is filled with signal, not noise.
- Correlation of Failures: Analysis showed that if an agent is vague (Cat 2), it is also highly likely to be redundant (Cat 3). Fixing one often helps fix the others.
Key Results
The results demonstrate that QREF provides a massive "free" upgrade to existing agents:
- Accuracy Boost: On the WebSailor-32B backbone, QREF achieved a 33.55% relative improvement in Pass@1 on BrowseComp.
- Efficiency: On the TongyiDeepResearch backbone, query refinement substantially reduced the number of search turns needed to find the answer, indicating a much more efficient path to the truth.
- Failure Reduction: The RL-trained refiner reduced the fraction of query batches lacking specific anchors by 95%.
- Case Study Success: In one example, a vanilla agent got stuck on "Bristol City" because of noisy search results. With QREF, the agent refined its search to find the specific person (Djimi Traoré) and filtered out the noise to reach the correct answer.
Limitations and Future Work
While powerful, QREF does introduce additional latency and cost, as it requires extra LLM calls for every search step. The authors also note that the system's performance is somewhat tied to the specific behavior of real-world search engines, which can change over time.
Future work could involve distilling the Refiner and Filter into smaller, faster models to reduce overhead, or more tightly integrating the filtering logic into the agent's internal memory mechanisms.
Summary updated