TL;DR
Traditional search engines are optimized for human behavior, but modern AI "deep research" agents interact with information very differently. This paper introduces LRAT (Learning to Retrieve from Agent Trajectories), a novel paradigm that trains retrieval models directly on the multi-turn interaction logs of LLM agents. By mining agent browsing actions and reasoning traces, LRAT creates a highly effective, self-improving data flywheel that significantly boosts agent task success and retrieval efficiency.
What Problem Does This Paper Address?
Large Language Model (LLM) powered search agents (such as OpenAI's Deep Research or Search-R1) solve complex tasks by operating in multi-turn reasoning-and-action loops. They generate intermediate sub-queries, scan results, browse full documents, and synthesize answers.
However, today's state-of-the-art dense retrievers are trained almost exclusively on human interaction logs (like click-through rates and dwell time). This creates a fundamental mismatch: agents issue queries to satisfy intermediate reasoning steps rather than immediate human informational needs, and they consume information differently. To bridge this gap, the authors argue that retrievers should be trained directly on agent interaction data.
Methods
The authors propose the LRAT framework, which progressively extracts high-quality retrieval supervision from raw agent trajectories through three main stages:
- Naive Relevance Mining: The framework monitors
[Search] -> [Browse]transitions. If an agent executes a search, receives a list of snippets, and chooses to browse a specific document, that document is marked as a naive positive. Crucially, all unbrowsed documents in that same top-K result set are treated as reliable negatives. - Reasoning-Aware Positive Filtering: Because agents select documents based on short snippets, they occasionally browse unhelpful pages. LRAT uses an LLM-as-judge to inspect the agent's immediate post-browse reasoning trace to verify if the document actually helped advance the task, filtering out false positives.
- Relevance Intensity Estimation: Rather than treating all positive documents equally, LRAT maps the length of the post-browse thought trace to a continuous utility score using an exponential saturation function. This acts as an algorithmic analog to human "dwell time."
Finally, the retriever is optimized using Weighted Contrastive Learning, where the loss function scales the gradient contribution of each pair based on its derived relevance intensity weight.
Datasets
- Trajectory Generation: Trajectories were generated using the
Tongyi-DeepResearch-30Bagent executing queries from InfoSeekQA against a Wiki-25-Dump corpus (11.2 million document chunks). This process yielded 26,482 valid trajectories and 91,713 training pairs. - Evaluation Benchmarks:
- InfoSeek-Eval: An in-domain dataset consisting of 300 multi-hop information-seeking queries.
- BrowseComp-Plus: An out-of-domain, reproducible benchmark containing 830 complex, human-authored questions specifically designed to test deep research agents.
Key Insights and Ideas
- Agents Don't Have Human Position Bias: In human search logs, users heavily favor the top few results regardless of relevance. Trajectory analysis revealed that agents evaluate snippets and distribute their browsing actions relatively evenly across the top 10 positions. This means unbrowsed documents are active rejections, making them incredibly clean negative signals for contrastive learning.
- Thought Length is the New Dwell Time: For humans, the time spent reading a page indicates relevance. For agents, the number of tokens in their subsequent "thinking" trace serves the exact same purpose; high-utility documents trigger deeper analysis and longer reasoning steps.
- Even Failed Trajectories are Useful: When an agent fails to find the final correct answer, its intermediate search-and-browse actions still provide valid, meaningful judgments about document utility. This allows system designers to build a data flywheel using all agent logs, even when ground-truth correctness labels are missing.
Key Results
The authors evaluated LRAT across two dense retriever backbones (Qwen3-Embedding-0.6B and Multilingual-E5-Large-Instruct) and six different agent architectures ranging from 4B to 358B parameters.
- Substantial Success Rate Boosts: Equipping agents with an LRAT-trained retriever yielded an average success rate gain of +28.6% on InfoSeek-Eval and +27.5% on BrowseComp-Plus.
- Increased Execution Efficiency: On InfoSeek-Eval, the average number of interaction steps required to solve a task dropped by up to 30%. The agents found the right evidence faster, minimizing wasteful multi-turn search loops.
- Sustained Data Flywheel: Iterative simulation testing showed that continuously updating the retriever with streaming agent interaction data leads to steady, compounding improvements in both task success and evidence recall over time.
Limitations and Future Work
- Computational Cost: Generating and evaluating multi-turn agent trajectories is computationally expensive, forcing the authors to cap trajectories at 50–100 turns during testing.
- Retriever Architectures: The framework was only validated on standard bi-encoder dense retrievers. Extending LRAT to late-interaction models (like ColBERT) or cross-encoder re-rankers remains an open area for research.
- Teacher LLM Dependency: The positive filtering stage relies heavily on a strong LLM-as-judge to evaluate reasoning traces, introducing a dependency on a high-capability teacher model during data preprocessing.
Summary updated