Why These Documents? Explainable Generative Retrieval with Hierarchical Category Paths

Sangam Lee, Ryang Heo, SeongKu Kang, Susik Yoon, Jinyoung Yeo, Dongha Lee · DOI

Introduction

Generative retrieval models have shown great promise in finding relevant documents by directly generating document identifiers (docids). However, they typically operate as "black boxes," providing no explanation for why a specific document was selected. This lack of transparency can hinder user trust. To address this, the HyPE (Hierarchical Category Path-Enhanced Generative Retrieval) framework introduces human-readable, hierarchical category paths as a "pseudo-reasoning" step, enhancing both explainability and retrieval accuracy.

The Challenge of Explainability in Generative Retrieval

Traditional generative retrieval systems map a query directly to a docid, such as a title or an arbitrary numeric string. While efficient, this process offers no context regarding the semantic relationship between the query and the document. For instance, a search for "Dubai" might retrieve a document, but the user remains unaware if the retrieval was based on economic, governmental, or tourism-related content.

Comparison between existing generative retrieval and HyPE's explainable approach.

The HyPE Framework

HyPE addresses the explainability gap by requiring the model to generate a hierarchical category path (e.g., Government > Government By Cities > Dubai) before the final docid. The process involves three main stages:

  1. Candidate Path Construction: Utilizing Wikipedia's category hierarchy, the system identifies relevant semantic paths for each document. An LLM (e.g., Llama-3-8B-Instruct) selects the top paths that best represent the document's content.
  2. Path-Augmented Training: A T5-base model is trained to map queries to these category paths and then to the docids. This structured generation acts as a form of "pseudo-reasoning."
  3. Path-Aware Ranking: During inference, the model generates multiple candidate paths via beam search. It then decodes docids conditioned on these paths, aggregating scores to produce a final ranked list.

Experimental Results

The authors evaluated HyPE on the NQ320K and MS MARCO benchmarks. The results demonstrate that forcing the model to articulate semantic categories significantly boosts performance across various docid types.

Performance comparison of HyPE against baseline generative retrieval on the NQ320K dataset.

As shown in the table above, HyPE consistently improves Recall metrics. On the NQ320K dataset using Title docids, it achieved a +2.3% improvement in Recall@1 overall, with a significant +5.9% increase for "seen" queries (those targeting documents encountered during training).

Key Insights

  • Pseudo-Reasoning as a Performance Driver: Similar to Chain-of-Thought prompting in large language models, generating a semantic path grounds the model's recall process in a structured hierarchy, leading to higher accuracy.
  • Query-Specific Explanations: HyPE provides dynamic explanations. The same document can be explained through different paths depending on the user's specific query (e.g., focusing on "Economy" vs. "Government").
  • Enhanced Human Utility: Human evaluation via Amazon Mechanical Turk showed that providing category paths alongside titles improved human Recall@1 by 23.7% and increased user confidence by 12.0%.

Conclusion and Future Directions

HyPE successfully bridges the gap between performance and explainability in generative retrieval. While currently leveraging Wikipedia's broad taxonomy, the framework is designed to be "plug-and-play," allowing for integration with domain-specific hierarchies in fields like medicine or law. Future work may explore the impact of varying hierarchy depths and integrating HyPE with more advanced model architectures to further push the boundaries of explainable search.

Summary updated

BibTeX
@inproceedings{lee2026why,
  author = {Sangam Lee and Ryang Heo and SeongKu Kang and Susik Yoon and Jinyoung Yeo and Dongha Lee},
  title = {{Why These Documents? Explainable Generative Retrieval with Hierarchical Category Paths}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1097},
}
Figure