Query2doc: Query Expansion with Large Language Models

Liang Wang, Nan Yang, Furu Wei
3/14/2023
cs.IRcs.CL

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

This paper introduces a simple yet effective query expansion approach, denoted as query2doc, to improve both sparse and dense retrieval systems. The proposed method first generates pseudo-documents by few-shot prompting large language models (LLMs), and then expands the query with generated pseudo-documents. LLMs are trained on web-scale text corpora and are adept at knowledge memorization. The pseudo-documents from LLMs often contain highly relevant information that can aid in query disambiguation and guide the retrievers. Experimental results demonstrate that query2doc boosts the performance of BM25 by 3% to 15% on ad-hoc IR datasets, such as MS-MARCO and TREC DL, without any model fine-tuning. Furthermore, our method also benefits state-of-the-art dense retrievers in terms of both in-domain and out-of-domain results.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2023querydoc,
  title  = {Query2doc: Query Expansion with Large Language Models},
  author = {Liang Wang and Nan Yang and Furu Wei},
  year   = {2023},
  eprint = {2303.07678},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.07678v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.07678.svg)](https://codeofpaper.com/paper/2303.07678)

Discussion