Hierarchical Semantic Indexing for Generative Retrieval

This direction is split into other directions: hierarchical semantic identifiers. Its last version stays readable and citable here.

Version 1 of 152 papers66 conceptsfrozen 2026-10-04

For decades, information retrieval has followed a "match-and-rank" paradigm: we build a massive external index—like a library card catalog—and search it for documents that match a query's keywords or vector embeddings. But a new direction, known as Generative Retrieval (GR), proposes a radical alternative. Instead of searching an external database, the model is the index.

In this paradigm, first introduced as the Differentiable Search Index (DSI) by Dara Bahri, Yi Tay, and colleagues in Transformer Memory as a Differentiable Search Index, a Transformer is trained to map a query directly to a document identifier (DocID). The model "writes" the address of the relevant document as if it were answering a question from memory.

The Problem with Random Addresses

If you ask a model to memorize that "Document #8472" is about quantum physics, you are forcing it to learn an arbitrary association. There is no semantic link between the number 8472 and the concept of a wave function. As Xiaoxi Li and Yujia Zhou note in From Matching to Generation: A Survey on Generative Information Retrieval, using random numeric IDs makes it nearly impossible for a model to generalize to new documents or understand the relationships between the ones it has already seen.

To make generative retrieval work, we need Hierarchical Semantic Identifiers. Instead of a random number, every document is assigned a "structured address" where the prefix represents a broad category and subsequent tokens represent increasingly specific sub-topics.

Building the Semantic Map

There are two primary ways researchers construct these hierarchical addresses:

  1. Unsupervised Clustering: Qi Chen and Yujing Wang in A Neural Corpus Indexer for Document Retrieval demonstrate that we can use document embeddings to cluster a corpus into a tree. Documents with similar content end up in the same branch, sharing a common ID prefix (e.g., 1.2.x). This transforms the retrieval task into a structured tree-search problem.
  2. Domain-Specific Taxonomies: In specialized fields, we can use existing expert logic. For example, Weicong Qin and Jun Xu developed GEAR (Explicitly Integrating Judgment Prediction with Legal Document Retrieval), which maps legal documents to IDs based on the actual structure of the law: Chapter.Section.Article. Similarly, Kai Liu and Ze Chen use the "mindmap" structure of textbooks in StructTuning (Structure-aware Domain Knowledge Injection for Large Language Models) to help models learn the "big picture" before diving into details.

Retrieval as Path Traversal

The intuition behind why this works is coarse-to-fine navigation. When a model generates a semantic ID, it doesn't just jump to a conclusion; it traverses a path.

As Sangam Lee explains in Why These Documents? Explainable Generative Retrieval with Hierarchical Category Paths, forcing the model to generate a category path (like Science > Physics > Quantum) before the final DocID acts as a "reasoning" step. This has three major benefits:

  • Efficiency: The model narrows the search space token-by-token. Once it generates the "Physics" token, it has effectively ignored millions of unrelated documents in the "History" or "Art" branches.
  • Explainability: The generated prefix tells the user why the document was chosen.
  • Generalization: Even if the model hasn't seen a specific document frequently, it can still place it in the correct "neighborhood" because it understands the semantic prefix.

Scaling and the Future of Memory

While powerful, generative retrieval faces a "memorization wall." Kai Hui and Ronak Pradeep found in How Does Generative Retrieval Scale to Millions of Passages? that as the corpus grows to millions of documents, the model's parameters struggle to keep up.

To solve this, researchers like Sanket Vaibhav Mehta are developing DSI++ (Updating Transformer Memory with New Documents), which uses generative memory to allow models to learn new documents incrementally without forgetting old ones. By treating the model as a dynamic, structured knowledge base rather than a static index, this research direction is moving us toward "LLM-native memory"—where finding information and understanding it are no longer two separate steps.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_hierarchical_semantic_indexing_for_gener_dbe4bfb9,
  title = {Hierarchical Semantic Indexing for Generative Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-semantic-indexing-for-generative-retrieval/rdr_dbe4bfb90e464c40be36cc285a849a01},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_hierarchical_semantic_indexing_for_gener_dbe4bfb9_v1,
  title = {Hierarchical Semantic Indexing for Generative Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-semantic-indexing-for-generative-retrieval/rdr_dbe4bfb90e464c40be36cc285a849a01/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}