Doc2Query++: Topic-Coverage based Document Expansion and its Application to Dense Retrieval via Dual-Index Fusion

Tzu-Lin Kuo, Wei-Ning Chiu, Wei-Yun Ma, Pu-Jen ChengarXiv 2025 · DOI

Introduction

In Information Retrieval (IR), the "vocabulary mismatch problem" remains a significant hurdle: users often search using terms that do not appear in relevant documents. Document Expansion (DE) addresses this by predicting potential queries for a document and appending them to the text before indexing. However, traditional DE methods like the original Doc2Query often suffer from uncontrolled generation, leading to redundant or hallucinated queries. Furthermore, while DE typically aids sparse retrieval (like BM25), it often degrades the performance of dense retrieval systems by introducing semantic noise that confuses neural encoders.

Doc2Query++ introduces a novel approach that moves beyond simply generating "more" queries to generating "better-covered" queries. By utilizing unsupervised topic modeling and a unique Dual-Index Fusion strategy, it ensures comprehensive topical representation while maintaining the semantic integrity required for dense retrieval.

The Doc2Query++ Pipeline

To address the limitations of existing expansion methods, Doc2Query++ utilizes a four-stage pipeline designed to be both domain-agnostic and coverage-aware.

The Doc2Query++ pipeline overview, illustrating topic modeling, keyword selection, and dual-index fusion.
  1. Sentence-level Topic Modeling: Rather than relying on a pre-defined list of topics, the system uses BERTopic to cluster sentences within a document into latent topics. It then leverages a Large Language Model (LLM) to transform these clusters into human-readable topic names.
  2. Hybrid Keyword Selection: The system extracts two types of keywords: high-level thematic terms from the topic model and specific phrases found directly in the text via KeyBERT. An LLM then selects the best 10 keywords representing the document’s core themes.
  3. Topic-Coverage Query Generation: The LLM is prompted to generate multiple queries in a single pass. Crucially, it is instructed to ensure these queries collectively span all identified topics and utilize the selected keywords, ensuring maximum topical coverage.
  4. Dual-Index Fusion: This is the critical "fix" for dense retrieval. Instead of appending queries directly to the document text, the system maintains two separate indices: one for the original text and one for the generated queries. At search time, it calculates scores from both and fuses them using a tunable weight ($\alpha$).

Key Insights: Coverage and Decoupling

A central finding of the research is that the quality and topical coverage of generated queries are more important than the sheer volume of expansion.

Performance metrics (nDCG@10 and Recall@100) vs. the number of generated queries, showing that quality and coverage outperform sheer quantity.

As illustrated in Figure 5, performance (measured by nDCG@10 and Recall@100) peaks relatively early and then begins to degrade as more queries are added. This suggests that excessive generation eventually introduces redundancy and noise. Doc2Query++ achieves superior results with just 30 queries by ensuring they are topically diverse and representative of the document's full scope.

Another key insight is the necessity of decoupling expansion signals for dense retrieval. The authors found that "naive appending" weakens the document's original semantic embedding. By isolating expansion signals into a separate index, the system harnesses the benefits of expansion without distorting the original text's meaning.

Experimental Evaluation

The researchers evaluated Doc2Query++ on five diverse subsets of the BEIR (Benchmarking IR) benchmark to test out-of-domain robustness, including NFCorpus (medical), SCIDOCS (scientific), FiQA-2018 (financial), Arguana (argumentation), and SciFact (scientific claim verification).

Doc2Query++ consistently outperformed state-of-the-art baselines across all datasets:

  • Sparse Retrieval: Achieved significant gains in nDCG@10 and Recall@100. For instance, on the FiQA dataset, it improved nDCG@10 from 0.2466 (BM25) to 0.2972.
  • Dense Retrieval: The Dual-Index Fusion strategy successfully turned DE from a detriment into an advantage. On SCIDOCS, it boosted nDCG@10 from 0.1459 (standard Contriever) to 0.1726.
  • Efficiency: By generating queries in batches rather than iteratively, the method is more computationally efficient than previous control-based generation methods.

Conclusion

Doc2Query++ represents a significant step forward in document expansion by prioritizing topical coverage and addressing the noise problem in dense retrieval. While the method currently relies on LLMs and static fusion weights, its unsupervised adaptability makes it a powerful tool for diverse IR domains. Future work may explore dynamic weight optimization and extending these coverage-aware principles to multimodal retrieval settings.

Summary updated

BibTeX
@misc{kuo2025doc,
  author = {Tzu-Lin Kuo and Wei-Ning Chiu and Wei-Yun Ma and Pu-Jen Cheng},
  title = {{Doc2Query++: Topic-Coverage based Document Expansion and its Application to Dense Retrieval via Dual-Index Fusion}},
  year = {2025},
  eprint = {2510.09557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09557},
}
Figure