LLM-guided Hierarchical Retrieval

Nilesh Gupta, Wei-Cheng Chang, Ngot Bui, Cho-Jui Hsieh, Inderjit S. Dhillon · DOI

Introduction: The Reasoning Gap in Retrieval

Modern Information Retrieval (IR) is undergoing a paradigm shift, moving from simple keyword matching toward "reasoning-based retrieval." In this new landscape, queries are often complex, multi-faceted, and require deep inference to resolve. Current state-of-the-art systems typically rely on a retrieve-then-rerank pipeline: a computationally efficient but "shallow" retriever (such as BM25 or dense embeddings) identifies a candidate pool, which a sophisticated Large Language Model (LLM) then reranks.

However, this approach suffers from a fundamental bottleneck: if the initial retriever fails to capture the relevant document due to its limited reasoning capabilities, the LLM reranker never has the opportunity to evaluate it. While expanding the LLM's context window to include the entire corpus would theoretically solve this, it remains computationally prohibitive for large-scale datasets. LATTICE (LLM-guided Hierarchical Retrieval) addresses this gap by transforming the LLM from a passive reranker into an active search agent capable of navigating massive document collections with logarithmic complexity.

The LATTICE Framework: Hierarchical Navigation

The LATTICE framework operates in two distinct phases: offline preparation and online execution.

Overview of the LATTICE framework, illustrating the offline semantic tree construction and the online LLM-guided traversal process.

1. Offline Tree Construction

The corpus is first organized into a semantic hierarchy. Leaf nodes represent individual documents, while internal nodes contain LLM-generated summaries of their respective children. The authors propose two construction strategies:

  • Bottom-Up: Iteratively clusters document embeddings and generates summaries until a single root node is reached.
  • Top-Down: Employs an LLM to recursively partition the corpus into conceptual topics based on multi-level summaries.

2. Online LLM-Guided Traversal

At query time, a "Search LLM" performs a best-first traversal of the tree. To ensure global coherence, LATTICE calculates a Path Relevance Score that aggregates local LLM judgments from the root to the current node. Because LLM scores can be noisy and context-dependent, LATTICE introduces a calibration step. By modeling scores as a linear transformation of latent relevance, the system can fairly compare nodes across different branches and levels. Finally, a beam search strategy allows the agent to explore multiple promising paths simultaneously, avoiding local optima.

Experimental Evaluation: The BRIGHT Benchmark

LATTICE was evaluated using the BRIGHT benchmark, a suite of 12 reasoning-intensive retrieval tasks designed to stress-test IR systems. These tasks include diverse subsets from StackExchange (Biology, Earth Science, Economics, Psychology, Robotics, Stack Overflow, and Sustainable Living) as well as coding and mathematics challenges (LeetCode, Pony, AoPS, and TheoremQA). Unlike standard benchmarks, BRIGHT requires the system to perform deep inference to successfully match queries with relevant documents.

Key Results and Performance

LATTICE demonstrates significant improvements over traditional retrieval methods, particularly in domains requiring specialized knowledge and nuanced reasoning.

Recall@100 performance across various StackExchange subsets, comparing LATTICE against BM25 and the fine-tuned ReasonIR-8B model.

Across the StackExchange subsets, LATTICE achieved an average Recall@100 of 74.8%, notably outperforming BM25 (65.3%) and the fine-tuned ReasonIR-8B model (70.8%). In a strictly zero-shot setting, LATTICE improved nDCG@10 by up to 5% and Recall@100 by up to 9% over the strongest zero-shot baselines. Remarkably, LATTICE achieved results comparable to DIVER-v2—a highly specialized, fine-tuned state-of-the-art method—despite being entirely training-free.

Insights: LLMs as Active Navigators

A core insight of this research is the efficacy of LLMs as active navigators rather than static rerankers. By participating in the retrieval process itself, the LLM can uncover "needles in haystacks" that shallow methods overlook.

Furthermore, LATTICE exhibits superior scaling properties. While traditional flat reranking performance often plateaus because it is limited by the quality of the initial retrieval pool, LATTICE's performance continues to improve as the "token budget" (the number of LLM calls) increases. This suggests that hierarchical navigation is a more efficient way to leverage LLM reasoning power for large-scale retrieval.

Limitations and Future Outlook

Despite its success, LATTICE faces challenges with dynamic corpora. Because the semantic tree is static, pre-computed summaries may become less accurate if a query requires specific filtering (e.g., "only Python code"). Additionally, the initial cost of tree construction can be high for massive datasets due to the volume of LLM summarization calls required.

Future work may involve developing localized tree updates to handle evolving data and employing Reinforcement Learning to further optimize the search agent's navigation policy. By refining how LLMs interact with structured data, LATTICE paves the way for more intelligent and scalable information retrieval systems.

Summary updated

BibTeX
@article{gupta2026llm,
  author = {Nilesh Gupta and Wei-Cheng Chang and Ngot Bui and Cho-Jui Hsieh and Inderjit S. Dhillon},
  title = {{LLM-guided Hierarchical Retrieval}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=49vX1GYy4s},
}
Figure