DOTRAG: Retrieval-Time Reasoning Along Paths

Larnell Moore, Naihao Deng, Rada Mihalcea, Farnaz JahanbakhsharXiv 2026

TL;DR

DOTRAG is a training-free GraphRAG framework that flips the traditional "retrieve-then-reason" paradigm on its head by integrating reasoning directly into the retrieval process. By introducing the "Division of Thought" (DOT) abstraction, it dynamically explores localized subgraphs using query-specific constraints, achieving state-of-the-art performance on complex multi-hop reasoning tasks.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) helps ground Large Language Models (LLMs) using external knowledge, and recent GraphRAG systems improve this by utilizing knowledge graphs to capture complex relationships. However, most existing GraphRAG systems rely on a static retrieve-then-reason approach. They use hardcoded, predefined heuristics to fetch a subgraph first, and only then let the LLM reason over it.

This creates two major failure modes for complex, multi-hop queries:

  1. Noise Accumulation: Heuristic traversals often pull in globally dominant but query-irrelevant nodes, cluttering the LLM's context window.
  2. Information Loss: The static retrieval might miss the exact query-dependent relational path needed to answer the question.

DOTRAG addresses this gap by turning retrieval into an active, goal-constrained path-finding process guided by the LLM at retrieval time.

Methods

DOTRAG operates in four distinct stages:

  1. Neighborhood Selection: The LLM extracts low-level (entity-specific) or high-level (abstract topic) concepts from the query to identify initial "anchor nodes" in the knowledge graph. Neighborhood Selection Function
Figure 1: Neighborhood Selection Function. DotRAG grounds queries to regions of the knowledge graph via two alternative concept extraction modes. Low-level extraction uses the query and entity types in the graph schema to identify entity-aligned text spans, which are mapped to high-similarity nodes (e.g., “CEO of Tesla” →Elon, Tesla). High-level extraction uses the query and a global graph description to infer coarse-grained concepts for corpus-level queries, retrieving clusters of semantically similar nodes.
  1. Neighborhood Construction (Division of Thought): For each extracted concept, the system instantiates an independent workspace called a Division of Thought (DOT). Each DOT defines a localized search region (expanded up to $h_{max}$ hops) and generates query-conditioned rules (intermediate and terminal constraints) to prune irrelevant entity types early on. Crucially, the embeddings within this bounded neighborhood are isolated into a temporary, localized vector store. LLM Objective & Rules per DOT
LLM Objective & Rules per DOT
  1. Neighborhood Search: Instead of hopping node-by-node, the LLM issues natural language queries to the DOT's localized vector store to find candidate destination nodes. It then uses Yen’s shortest path algorithm to construct complete paths back to the anchor nodes. An LLM judge evaluates these complete paths as first-class objects, labeling them as irrelevant, partial, or complete. Neighborhood Search Iteration
Figure 3: Neighborhood Search (1 Iteration): Given a DOT, the LLM issues a specialized query to its constrained search region (treated as a local vector store) to retrieve the top-K candidate nodes via embeddings. For each retrieved node, we compute top-P shortest paths from each root node to its candidates (e.g. path from NG to each retrieved node). An LLM judge then determines the resulting paths included in the final context based on intermediate and terminal rules, providing a binary decision to keep or discard each discovered path.
  1. Path Aggregation: Valid paths from all parallel DOT workspaces are aggregated, their corresponding text chunks are retrieved and ranked, and the final response is generated.

Datasets

The authors evaluated DOTRAG on two primary benchmarks:

  • MetaQA: A structured movie-domain knowledge graph benchmark. To make it compatible with textual GraphRAG evaluation, the authors meticulously transformed the symbolic graph into a synthetic textual corpus while preserving explicit node-level ground-truth labels for 1-hop, 2-hop, and 3-hop queries.
  • UltraDomain: A benchmark consisting of unstructured corpora from college textbooks. The authors evaluated on the Computer Science (CS) and Mixed (literary, philosophical, biographical) datasets.

Key Insights and Ideas

  • Localized Semantic Retrieval: Traditional vector search searches the entire global embedding space, where globally popular concepts can easily overshadow niche, query-relevant details. By dynamically creating temporary, DOT-scoped vector stores, DOTRAG completely bypasses global concept interference.
  • Paths as First-Class Objects: Instead of making sequential, step-by-step node selection decisions (which can easily get trapped in local graph minima), DOTRAG evaluates complete relational paths against query constraints.
  • Connect-to-the-Dot Invariant: Because exploration is strictly anchored to the DOT's source nodes, the retrieved evidence is guaranteed to remain structurally grounded, preventing the retrieval from drifting into irrelevant graph neighborhoods.

Key Results

DOTRAG demonstrates significant performance gains, particularly as the reasoning complexity increases:

  • Retrieval Accuracy (MetaQA): On 3-hop queries, DOTRAG achieved an F1-score of 8.24, substantially outperforming PathRAG (3.22), LightRAG (2.97), and Traditional RAG (5.11). It also maintained the highest recall across both 2-hop and 3-hop settings.
  • Downstream Generation Quality: Using an LLM-as-a-judge framework, DOTRAG consistently achieved higher win rates against all baselines across five dimensions (Comprehensiveness, Logicality, Relevance, Coherence, and Overall).
  • On the diverse UltraDomain-Mixed dataset, DOTRAG showed clear improvements over PathRAG and LightRAG, proving that its iterative reasoning is highly effective when multi-hop dependencies are complex and essential.

Limitations and Future Work

  • Coherence Trade-offs: In some simpler or redundant graph structures (like UltraDomain-CS), forcing the inclusion of full path information occasionally introduced unnecessary context, slightly lowering response coherence compared to simpler retrieval methods.
  • Intermediate Supervision: While MetaQA provides ground truth for start and end nodes, it lacks explicit labels for intermediate relations. The authors note that future work will involve augmenting benchmarks with intermediate hop supervision to evaluate path traversal even more precisely.
  • Schema Dependency: The framework currently relies on user-provided or pre-defined entity type definitions and global graph descriptions to guide the initial concept extraction.

Summary updated

BibTeX
@misc{moore2026dotrag,
  author = {Larnell Moore and Naihao Deng and Rada Mihalcea and Farnaz Jahanbakhsh},
  title = {{DOTRAG: Retrieval-Time Reasoning Along Paths}},
  year = {2026},
  eprint = {2605.18760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.18760},
}
Figure