LLM-guided Hierarchical Search for End-to-end Reasoning Intensive Retrieval

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

TL;DR

Traditional search systems fail on complex, reasoning-intensive queries because their initial embedding-based retrieval step misses structurally relevant documents. This paper introduces LATTICE, a framework that completely removes embedding models from the search-time loop, allowing an LLM to directly navigate a hierarchical corpus index built top-down via LLM summaries. LATTICE achieves state-of-the-art performance on reasoning-heavy retrieval benchmarks, demonstrating that test-time compute scaling can fundamentally improve information retrieval.

What Problem Does This Paper Address?

When you ask a search engine a complex question—like finding a niche legal precedent or a specific mathematical theorem—matching keywords or surface-level topical similarity isn't enough. The system needs to reason over the relationship between the query and the document.

The standard industry recipe is retrieve-then-rerank: a cheap, fast dense embedding model fetches a shortlist of top-$k$ documents, and a powerful Large Language Model (LLM) reranks them. However, recent benchmarks show that even state-of-the-art embedding models frequently fail to place the correct documents in the top-$k$ shortlist for reasoning-intensive queries. If the retriever misses a document, the LLM reranker can never recover it.

Query-side fixes like query rewriting or agentic loops try to solve this upstream, but they still rely on the same brittle embedding retrievers to fetch the actual text. The authors ask a fundamental question: How can we put an LLM's reasoning capacity directly inside the retrieval step, rather than just on top of it?

Methods

The authors propose LATTICE (LLM-guided Hierarchical Search), which replaces the vector search index with an LLM-navigable semantic tree.

Figure 1: LATTICE Overview (left). Existing systems probe the corpus through a vector search index built using an embedding model. LATTICE replaces the vector index with an LLM-navigable search index that an LLM constructs offline from the corpus; at query time, the LLM walks this index directly, with no embedding model in the loop. LLM controlled test-time scaling (right). Averaged over four BRIGHT subsets with Gemini-2.5-Flash and Gemini-3.0-Flash under identical LLM and prompt. Sliding-window reranking (dashed) over a BGE-Reasoner-Embed top-300 shortlist wins at low budgets by inheriting the shortlist’s base nDCG@10; after a moderate budget LATTICE (solid) overshoots and converges to a higher asymptote.

LATTICE consists of two core components:

  1. Top-Down Index Construction: Prior hierarchical retrieval methods (like RAPTOR) cluster documents from the bottom up using embeddings, which often conflates distinct concepts that happen to share surface vocabulary. LATTICE builds its index top-down. It first generates multi-level summaries of each document at geometric scales (from 2 words up to 20 words). A ClusterLLM then recursively partitions these summaries into coherent conceptual sub-trees, ensuring the index structure itself is built on deep semantic understanding.
  2. Robust LLM-Guided Tree Search: At query time, a search LLM performs a best-first frontier search down the tree. Because listwise LLM scoring is notoriously noisy and context-dependent (a node's score changes depending on its siblings in the prompt), LATTICE introduces two clever algorithmic fixes:
  3. Cross-branch calibration: The scoring prompt is augmented with "anchor" reference nodes sampled from other parts of the tree to stabilize comparisons.
  4. Path-aggregated scoring: The system fits a slate-independent linear model over the full scoring history to estimate latent scores, accumulating them along the root-to-leaf path.

Datasets

The authors evaluated LATTICE on:

  • BRIGHT: A recent, highly challenging benchmark explicitly designed for reasoning-intensive retrieval. It spans 12 subsets across domains like StackExchange (Biology, Robotics, Earth Science, Economics, etc.), Coding (LeetCode, Pony), and Math (AoPS, TheoremQA).
  • BEIR Benchmarks: To test scalability and generalization beyond reasoning tasks, they evaluated on traditional Information Retrieval (IR) datasets: Natural Questions (NQ) (scaling up to 2.68 million passages), SciFact, and SciDocs.

Key Insights and Ideas

  • Embeddings Blind Spots: Dense embeddings are excellent at low-level, local synonym matching, but terrible at high-level conceptual partitioning. Top-down LLM clustering locks in conceptual boundaries far better than vector space clustering.
  • The Context Bias of LLM Judges: An LLM's evaluation of a document is heavily biased by the "company it keeps" in the prompt. By treating listwise scoring as a latent-variable estimation problem and using cross-branch calibration nodes, LATTICE successfully strips away this slate-dependent bias.
  • Depth Beats Breadth: Under a fixed token budget, allocating LLM calls to deeper exploration (smaller beam size, more iterations) yields significantly better retrieval accuracy than a wider, shallower search.

Key Results

  • Beating Fine-Tuned Ensembles: On the BRIGHT benchmark, base LATTICE using an off-the-shelf, zero-shot LLM (Gemini-3-Flash) achieved 46.7 nDCG@10, outperforming the strongest non-ensemble baselines and matching the best fine-tuned ensemble systems.
  • State-of-the-Art Fusion: A lightweight ensemble version, LATTICE++ (fusing LATTICE with cheap BM25 and dense retrieval scores), set a new state-of-the-art on BRIGHT with 49.1 nDCG@10.
  • Open-Weight Efficiency: LATTICE works remarkably well with open-weight models. Running LATTICE with Qwen3.5-27B achieved 56.7 nDCG@10 on StackExchange subsets, slightly outperforming Gemini-2.5-Flash while being roughly 4× cheaper per query ($0.11 vs $0.44).
  • Scalability: LATTICE successfully scaled to the 2.68-million-document NQ corpus, proving that hierarchical LLM search is viable for large-scale datasets.

Limitations and Future Work

  • Dynamic Corpus Stale Summaries: LATTICE struggles when a corpus changes dynamically per query (e.g., when thousands of documents are filtered out at runtime, as in some BRIGHT subsets). Because the tree summaries are pre-computed, the presence of excluded documents creates "stale" paths that mislead the search LLM.
  • Hard Partitions: Currently, the index forces each document into a single root-to-leaf path. If a document covers multiple distinct topics, it might become unreachable from certain branches. Extending the index to support soft or multi-cluster assignments is an open area of research.
  • Latency and Cost: Since every step down the tree requires an interactive LLM call, LATTICE takes tens of seconds per query. This makes it ideal for high-stakes, quality-over-speed domains (like legal discovery, medical research, or deep technical QA) but impractical for instant web search.

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 Search for End-to-end Reasoning Intensive Retrieval}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=49vX1GYy4s},
}
Figure