Skip to main content
QUICK REVIEW

[Paper Review] InPars: Data Augmentation for Information Retrieval using Large Language Models

Luiz Bonifacio, Hugo Abonizio|arXiv (Cornell University)|Feb 10, 2022
Topic ModelingComputer Science20 citations
TL;DR

InPars uses few-shot prompts with large language models to generate synthetic query-document pairs, fine-tune rerankers on this data, and achieve strong zero-shot and in-domain retrieval performance across multiple IR datasets.

ABSTRACT

The information retrieval community has recently witnessed a revolution due to large pretrained transformer models. Another key ingredient for this revolution was the MS MARCO dataset, whose scale and diversity has enabled zero-shot transfer learning to various tasks. However, not all IR tasks and domains can benefit from one single dataset equally. Extensive research in various NLP tasks has shown that using domain-specific training data, as opposed to a general-purpose one, improves the performance of neural models. In this work, we harness the few-shot capabilities of large pretrained language models as synthetic data generators for IR tasks. We show that models finetuned solely on our unsupervised dataset outperform strong baselines such as BM25 as well as recently proposed self-supervised dense retrieval methods. Furthermore, retrievers finetuned on both supervised and our synthetic data achieve better zero-shot transfer than models finetuned only on supervised data. Code, models, and data are available at https://github.com/zetaalphavector/inpars .

Motivation & Objective

  • Motivate the need for domain-specific data augmentation in IR when large LMs are computationally expensive.
  • Propose a practical few-shot prompting approach to generate labeled IR data from large LMs.
  • Demonstrate that retrievers finetuned on InPars-generated data outperform baselines and enable strong zero-shot transfer.
  • Show that in-domain synthetic data provides additional gains over general-domain data.

Proposed method

  • Use a language model G to generate a question q from a document d, forming a (q,d) positive pair.
  • Construct a fixed few-shot prefix t from N example (q*,d*) pairs to guide generation.
  • Generate thousands of (q,d) positives by sampling documents from a collection and ranking them by p_q, the LM’s autoregressive probability.
  • Filter to the top K=10,000 pairs by the average log-probability of the generated question.
  • Create negative examples by retrieving 1000 BM25 documents for q and sampling a non-relevant d^-.
  • Fine-tune monoT5-based rerankers (220M and 3B) on the synthetic data and evaluate with a standard MS MARCO/BM25 first stage + neural reranking pipeline.
  • Experiment with prompt styles (Vanilla vs GBQ) and in-domain vs Marco-generated sources to study impact on IR metrics.
  • Investigate the effect of LM size on question quality and downstream IR performance, and perform ablations on data filtering and training setup.

Experimental results

Research questions

  • RQ1Can few-shot prompts with large LMs generate high-quality IR training data that improves reranking accuracy?
  • RQ2Does in-domain synthetic data outperform general-domain synthetic data for IR tasks?
  • RQ3What is the impact of LM size and prompt style on the quality of generated questions and downstream IR performance?
  • RQ4How does synthetic data compare to existing unsupervised or zero-shot retrieval baselines across diverse datasets?
  • RQ5Is it beneficial to filter generated questions by their likelihood when building training sets?

Key findings

  • Unsupervised retrievers finetuned on InPars synthetic data outperform BM25 and several self-supervised dense methods.
  • Retrievers finetuned on both supervised data and InPars synthetic data achieve better zero-shot transfer than models finetuned only on supervised data.
  • Cross-encoders (like monoT5) outperform bi-encoders in this setup, and InPars generates higher-diversity, more query-like training data than prior methods.
  • GBQ prompts plus in-domain source documents yield the strongest results on several datasets; vanilla prompts with Marco sources perform best on MS MARCO and TREC-DL2020.
  • Using larger LM sizes generally improves IR performance, though gains plateau; top-K filtering of generated questions is crucial for maintaining gains.

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.