HackerPapers

arXiv:2212.10496cs.IR

Precise Zero-Shot Dense Retrieval without Relevance Labels

Luyu Gao, Xueguang Ma, Jimmy Lin, Jamie Callan

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).

arXiv comments
Journal reference
DOI
Subjects
cs.IRInformation Retrieval cs.CLComputation and Language

On Hacker News

Linked by 15 identifiable commenters in 15 comments across 13 threads, from Jan 2023 to Aug 2026. Found in 3 HN submissions from Jan 2023 to Aug 2026. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments13 threads

  1. Don't classify, hallucinate 1 comment
  2. Embeddings are underrated 1 comment
    • This is also often referred to as Hypothetical Document Embeddings (https://arxiv.org/abs/2212.10496).

      mrshuView on HNParent context

  3. Contextual Retrieval 1 comment
    • To add some context, this isn't that novel of an approach. A common approach to improve RAG results is to "expand" the underlying chunks using an llm, so as to increase the semantic surface area to match against. You can further improve your results by running query expansion…

      postalcoderView on HNParent context

    • I've tried Hyde and seems to work better. had to do it client side tho. asked chatgpt: "write one sentence explanation about this topic: solutions for postgres clustering" which returned "Solutions for PostgreSQL clustering involve implementing methods such as streaming…

      avereveardView on HNParent context

    • HyDE apparently means “Hypothetical Document Embeddings”, which seems to be a kind of generative query expansion/pre-processing https://arxiv.org/abs/2212.10496 https://github.com/texttron/hyde From the abstract: Given a query, HyDE first zero-shot instructs an…

      pbronezView on HNParent context

    • If you know that your search queries will be actual questions (like in the example you listed), you can possibly use the HyDE[0] to create a hypothetical answer which will usually have an embedding that's closer to the RAG chunks you are looking for. It has the downside that an…

      hobofanView on HNParent context

    • I could not help but notice the Contriever curve is so much higher on y-axis Recall than the other methods (figure 11 in https://arxiv.org/pdf/2307.03172.pdf). Has anyone come across more recent experiments, results, or papers related to this? I'm acquainted with the…

      bayesian_limitView on HNParent context

    • The approach is based on hypothetical document embeddings (HyDE). Here is a good description of it in the context of langchain: https://python.langchain.com/docs/use_cases/question_answeri... The original paper proposing this technique can be found here…

      danielblnView on HNParent context

    • Some people packaged this rather intuitive idea, named it Hyde (Hypothetical Document Embeddings) and wrote a paper about it — https://arxiv.org/abs/2212.10496 Summary — HyDE is a new method for creating effective zero-shot dense retrieval systems that generates hypothetical…

      d4rkp4tternView on HNParent context

    • Thanks for flagging - will get this fixed! For reference the paper is here: https://arxiv.org/abs/2212.10496

      BuoyView on HNParent context

    • Query (→ GPT3 completion) → vector db lookups → GPT3 synthesis The optional step two is used when the lookups are more closely related to an answer's latent space than the original query text. This approach is called HyDE (first published here: https://arxiv.org/abs/2212.10496).…

      curoView on HNParent context

    • it is a result of trying to align the AI model after it has been trained using self-supervised learning with an addition human feedback step. OpenAI has a model / process called InstructLM or InstructGPT see e.g. https://arxiv.org/pdf/2212.10496.pdf…

      yayrView on HNParent context

    • Yeah I'm happy with the results I got from embeddings so far. The areas I want to explore there are: 1. What's the ideal size of text to embed? I'm doing whole blog entries right now but I'm confident I can get better results if I divide them up into smaller chunks first - I'm…

      simonwView on HNParent context

    • I’ve also used similar approach to build Q&A system for PDF files (my main use case - board game manuals). OpenAIs embeddings are nice to play with. Also there is an easy technique for getting better results with dense search - Hypothetical Document Embeddings…

      kerbalView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.