Dep-Search: Learning Dependency-Aware Reasoning Traces with Persistent Memory

Yanming Liu, Xinyue Peng, Zixuan Yan, Yanxin Shen, Wenjie Xu, Yuefeng Huang, Xinyi Wang, Jiannan Cao, Jianwei Yin, Xuhong ZhangarXiv 2026

TL;DR

Dep-Search is a novel framework that enhances multi-hop reasoning in Large Language Models (LLMs) by explicitly modeling sub-question dependencies as directed acyclic graphs (DAGs) and utilizing a persistent, verifiable memory buffer. Optimized end-to-end via Group Relative Policy Optimization (GRPO), it significantly reduces redundant retrievals and outperforms strong search-based baselines across multiple model scales.

What Problem Does This Paper Address?

When tackling complex, multi-hop questions, modern LLMs frequently rely on search-augmented frameworks (like RAG or agentic searchers) to explore external knowledge bases. However, existing frameworks typically rely on implicit natural language reasoning to orchestrate their search strategies.

This reliance introduces three major challenges:

  1. Poor Dependency Management: Models often decompose a complex question into sub-questions but fail to answer them in the correct logical order, leading to inefficient or failed reasoning chains.
  2. Knowledge Loss: Valuable facts retrieved in early reasoning steps are often discarded or buried in long contexts, forcing the model to execute redundant, computationally expensive searches.
  3. Optimization Difficulties: Training search-based agents using traditional reinforcement learning is notoriously hard due to sparse reward signals and the difficulty of jointly optimizing decomposition, retrieval, and reasoning.

Methods

Dep-Search addresses these limitations by introducing explicit control mechanisms that tightly integrate structured reasoning, retrieval, and persistent memory into a unified Markov Decision Process (MDP).

Figure 1: Overview of the Dep-Search framework. The agent decomposes questions into dependent sub-questions, retrieves relevant information, accesses stored knowledge from memory, and synthe- sizes answers through trajectory-level reinforcement learning.

The core architecture relies on four specialized control tokens embedded directly into the model's action space:

  • <Decompose> (Dependency-Aware Decomposition): Instead of processing sub-questions linearly, Dep-Search uses a Question Decomposition Meaning Representation (QDMR) approach to break the main question into a Directed Acyclic Graph (DAG). The model then resolves these sub-questions following a strict topological ordering.
  • <Retrieve> (Two-Stage Retrieval): Triggers an external search over a corpus using dense retrieval (qwen3-embedding) followed by a reranker (qwen3-reranker).
  • <Conclusion> (Context Compression): When the context becomes bloated, the model invokes this token to summarize the preceding reasoning and evidence into compact, natural-language fact sentences.
  • <Memory> (Persistent Memory Access): These summarized facts are stored in a Least Recently Used (LRU) memory buffer with a fixed capacity. The model can autonomously query this buffer using embedding-based similarity search to reuse previously discovered knowledge without re-searching the web.

Training via GRPO: The entire pipeline is optimized end-to-end using Group Relative Policy Optimization (GRPO). The reward function scores final answer quality (Exact Match or F1) while applying a linear penalty if the model exceeds reasonable thresholds for retrieval or decomposition operations, forcing the policy to become efficient.

Datasets

The authors evaluated Dep-Search against a preprocessed Wikipedia 2018 corpus across seven diverse question-answering benchmarks:

  • Single-Hop QA: Natural Questions (NQ), TriviaQA, and PopQA.
  • Multi-Hop QA: HotpotQA (distractor and full-wiki settings), 2WikiMultihopQA, Musique, and Bamboogle.

Key Insights and Ideas

  • Memory is the MVP: Ablation studies revealed that removing the persistent memory module caused the most severe performance degradation across the board (an average drop of 5.25 points). Forcing the model to reuse summarized facts rather than re-retrieving them is vital for long-chain reasoning.
  • DAGs Beat Linear Chains: Moving from sequential decomposition to adaptive QDMR-style DAG decomposition yielded a 4.5-point improvement on multi-hop datasets. Explicitly mapping out which sub-questions depend on what prerequisite information prevents the model from answering out of order.
  • Scale Amplifies Synergy: The performance gap between the 3B and 7B model variants highlights that larger models are significantly better at leveraging structured reasoning traces and managing active memory, showing greater absolute gains.

Key Results

Dep-Search achieved state-of-the-art performance, consistently outperforming ten strong baselines (including Search-R1, Vanilla RAG, and HierSearch):

  • Qwen2.5-3B-Instruct: Dep-Search achieved an average score of 39.29, outperforming the hierarchical baseline HierSearch (36.31) and the efficiency-focused O2-Searcher (35.21).
  • Qwen2.5-7B-Instruct: Dep-Search reached an average score of 49.77, beating HierSearch (46.66). Notably, on highly complex multi-hop datasets like HotpotQA and 2WikiMHQA, Dep-Search outperformed Search-R1 by roughly 12 absolute points (scoring 44.40 and 45.20 respectively).

Limitations and Future Work

  • Intra-episode Memory Limits: Currently, the memory buffer is initialized as empty and is not shared across different questions during training. The authors suggest that exploring cross-question, long-term memory accumulation during inference is a promising next step.
  • Homogeneous Knowledge Base: The evaluation was restricted primarily to Wikipedia. Real-world applications will require expanding Dep-Search to handle highly diverse, unstructured external web sources.
  • Heuristic Memory Eviction: The memory module relies on a standard LRU cache rule. Developing a learned or dynamic memory management policy could further optimize what the model chooses to remember or forget.

Summary updated

BibTeX
@misc{liu2026dep,
  author = {Yanming Liu and Xinyue Peng and Zixuan Yan and Yanxin Shen and Wenjie Xu and Yuefeng Huang and Xinyi Wang and Jiannan Cao and Jianwei Yin and Xuhong Zhang},
  title = {{Dep-Search: Learning Dependency-Aware Reasoning Traces with Persistent Memory}},
  year = {2026},
  eprint = {2601.18771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.18771},
}
Figure