InPars: Data Augmentation for Information Retrieval using Large Language Models

Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee, Rodrigo Nogueira
2/10/2022
cs.CL

Official code: zetaalphavector/InPars (203 stars, Python, Apache-2.0, last commit 2025-06-05).

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.

Show full abstract

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 .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Inquisitive Parrots for Search

20326Python, Shell1 years agoApache-2.0

Similar Papers

Cite this paper

@article{bonifacio2022inpars,
  title  = {InPars: Data Augmentation for Information Retrieval using Large Language Models},
  author = {Luiz Bonifacio and Hugo Abonizio and Marzieh Fadaee and Rodrigo Nogueira},
  year   = {2022},
  eprint = {2202.05144},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.05144}
}

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/2202.05144.svg)](https://codeofpaper.com/paper/2202.05144)

Discussion