Skip to main content
QUICK REVIEW

[Paper Review] Precise Zero-Shot Dense Retrieval without Relevance Labels

Luyu Gao, Xueguang Ma|arXiv (Cornell University)|Dec 20, 2022
Topic ModelingComputer Science15 citations
TL;DR

This paper proposes HyDE, a zero-shot dense retrieval method that generates hypothetical documents via an instruction-following language model to simulate relevance, then retrieves real documents using a contrastive encoder's semantic embeddings. Without any relevance labels or model fine-tuning, HyDE achieves performance comparable to fine-tuned dense retrievers across multiple tasks and languages, significantly outperforming unsupervised baselines like Contriever.

ABSTRACT

While dense retrieval has been shown effective and efficient across tasks and languages, it remains difficult to create effective fully zero-shot dense retrieval systems when no relevance label is available. In this paper, we recognize the difficulty of zero-shot learning and encoding relevance. Instead, we propose to pivot through Hypothetical Document Embeddings~(HyDE). Given a query, HyDE first zero-shot instructs an instruction-following language model (e.g. InstructGPT) to generate a hypothetical document. The document captures relevance patterns but is unreal and may contain false details. Then, an unsupervised contrastively learned encoder~(e.g. Contriever) encodes the document into an embedding vector. This vector identifies a neighborhood in the corpus embedding space, where similar real documents are retrieved based on vector similarity. This second step ground the generated document to the actual corpus, with the encoder's dense bottleneck filtering out the incorrect details. Our experiments show that HyDE significantly outperforms the state-of-the-art unsupervised dense retriever Contriever and shows strong performance comparable to fine-tuned retrievers, across various tasks (e.g. web search, QA, fact verification) and languages~(e.g. sw, ko, ja).

Motivation & Objective

  • To develop a fully zero-shot dense retrieval system that requires no relevance supervision or model fine-tuning.
  • To address the challenge of effective dense retrieval in low-resource or real-world settings where relevance-labeled data is unavailable.
  • To explore whether relevance modeling can be delegated to large language models instead of relying on explicit relevance scoring.
  • To demonstrate that unsupervised contrastive encoders can effectively retrieve relevant documents when guided by LLM-generated hypothetical content.

Proposed method

  • Use an instruction-following LLM (e.g., InstructGPT) to generate a hypothetical document that answers the input query, simulating a relevant document.
  • Encode the generated hypothetical document into a dense embedding using an unsupervised contrastive encoder (e.g., Contriever).
  • Retrieve real documents from the corpus by computing cosine similarity between the hypothetical document embedding and all real document embeddings.
  • Leverage the contrastive encoder’s dense bottleneck to filter out hallucinated or incorrect details from the generated document.
  • Use the same encoder and LLM backbone across diverse tasks and languages without architectural or hyperparameter changes.
  • Maintain both models frozen—no training or fine-tuning is performed on any component.

Experimental results

Research questions

  • RQ1Can a language model generate document-like responses that capture relevance patterns without access to real documents?
  • RQ2Can a contrastive encoder retrieve relevant real documents based solely on embeddings of hypothetical, potentially hallucinated documents?
  • RQ3Does this zero-shot approach outperform unsupervised dense retrieval baselines like Contriever in the absence of relevance labels?
  • RQ4How does HyDE perform relative to fine-tuned dense retrievers across multiple languages and tasks?
  • RQ5Can the performance of a contrastive encoder be enhanced by grounding it via a generative model’s output, even without fine-tuning?

Key findings

  • HyDE significantly outperforms the unsupervised Contriever baseline on 11 benchmark datasets across web search, question answering, and fact verification tasks.
  • On TREC DL19/20, HyDE with InstructGPT and Contriever achieves NDCG@10 of 61.3 and 57.9, respectively, surpassing the unsupervised Contriever (44.5 and 42.1).
  • HyDE with a 175B-parameter GPT model achieves NDCG@10 of 61.3 on DL19, outperforming the fine-tuned mContriever model (62.1) on the same dataset.
  • Using larger instruction-following LLMs (e.g., Cohere 52B, GPT 175B) leads to consistent improvements over smaller models (e.g., Flan-T5 11B), indicating model scale enhances performance.
  • Even with a fine-tuned encoder, HyDE with a strong LLM (GPT-175B) further improves performance (NDCG@10: 67.4 on DL19), suggesting complementary strengths between generative and encoder components.
  • HyDE demonstrates strong zero-shot generalization across languages, including Swahili, Korean, and Japanese, where it outperforms non-fine-tuned models and rivals fine-tuned systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.