Skip to main content
QUICK REVIEW

[Paper Review] Query expansion with artificially generated texts

Vincent Claveau|arXiv (Cornell University)|Dec 16, 2020
Topic ModelingComputer Science22 references5 citations
TL;DR

This paper proposes using GPT-2 for query expansion in document retrieval by generating relevant, context-aware texts from user queries. The approach significantly improves retrieval performance—achieving up to a 10% gain in MAP—by enriching queries with semantically relevant terms and leveraging term frequency in generated texts for better weighting, outperforming strong baselines like LM+RM3.

ABSTRACT

A well-known way to improve the performance of document retrieval is to expand the user's query. Several approaches have been proposed in the literature, and some of them are considered as yielding state-of-the-art results in IR. In this paper, we explore the use of text generation to automatically expand the queries. We rely on a well-known neural generative model, GPT-2, that comes with pre-trained models for English but can also be fine-tuned on specific corpora. Through different experiments, we show that text generation is a very effective way to improve the performance of an IR system, with a large margin (+10% MAP gains), and that it outperforms strong baselines also relying on query expansion (LM+RM3). This conceptually simple approach can easily be implemented on any IR system thanks to the availability of GPT code and models.

Motivation & Objective

  • To investigate whether neural text generation can effectively enhance document retrieval through query expansion.
  • To evaluate if generated texts provide better term relevance and relative term weighting than traditional methods.
  • To assess the feasibility and effectiveness of this approach in specialized domains.
  • To explore the impact of generated text length and number of generated documents on retrieval performance.
  • To compare the proposed method with strong baselines such as LM+RM3 and traditional query expansion techniques.

Proposed method

  • Fine-tune GPT-2 on a target corpus to adapt its generation to the domain of interest.
  • Use the original query as a prompt to generate multiple full-text documents via the fine-tuned GPT-2 model.
  • Extract terms from the generated texts and use their frequency as weights in the BM25 retrieval model.
  • Re-weight original query terms based on their frequency in the generated texts to improve their contribution to retrieval.
  • Apply the expanded query with frequency-based or fixed weights to the BM25 retrieval system.
  • Evaluate performance using standard IR metrics such as MAP, P@5, P@10, P@20, and P@100 on benchmark collections like Tipster.

Experimental results

Research questions

  • RQ1Can text generation from a query using GPT-2 produce meaningful and relevant expansions that improve retrieval performance?
  • RQ2Does the frequency of terms in generated texts provide better term weighting than uniform or heuristic-based weighting schemes?
  • RQ3How does the number of generated documents per query affect retrieval performance, and is there a saturation point?
  • RQ4Can this method outperform established query expansion baselines such as LM+RM3 in ad-hoc retrieval tasks?
  • RQ5To what extent can this approach generalize to specialized domains with limited labeled data?

Key findings

  • The proposed GPT-2-based query expansion method achieved a +10% MAP improvement over baseline methods, significantly outperforming LM+RM3.
  • Using term frequencies from generated texts for weighting yielded a measurable improvement in MAP, with fixed-weight expansion showing only marginal gains.
  • Re-weighting original query terms based on their frequency in generated texts improved MAP from 25.06% (BM25+) to 27.12% (BM25+ with re-weighting).
  • Performance plateaued after generating approximately 20 documents per query, indicating diminishing returns beyond this point.
  • The method demonstrated effectiveness even in specialized domains, suggesting broad applicability beyond general-domain collections.
  • The approach provides not only new terms but also a more accurate estimate of term importance, enhancing both recall and precision.

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.