Introduction
Building effective neural Information Retrieval (IR) models typically necessitates vast amounts of in-domain training data—specifically, pairs of queries and relevant documents. Manually labeling these pairs is a prohibitively slow and expensive process. To address this, the InPars method was developed, utilizing Large Language Models (LLMs) like GPT-3 to generate synthetic queries for documents, thereby creating a "free" training set. However, the original InPars approach suffered from high costs due to proprietary API dependencies and the requirement for massive ranking models (e.g., the 3-billion parameter monoT5-3B) to outperform simple non-neural baselines like BM25.
InPars-Light introduces a highly efficient, open-source recipe for training neural search rankers without human-labeled data. By transitioning to open-source models and implementing a novel "consistency checking" step, the authors achieved performance comparable to models 100x larger, while maintaining training costs under $10 per dataset.
Methodology
The InPars-Light pipeline employs a "filter-and-refine" approach consisting of several key stages:
- Synthetic Generation: The proprietary GPT-3 is replaced with BLOOM (7B parameters), a community-trained open-source LLM. Using a "three-shot" prompt, the LLM generates queries for new documents based on provided examples.
- Consistency Checking: To ensure the quality of synthetic data, a ranking model is used to verify if it can retrieve the original document using the generated query. Queries that fail to rank the source document in the top results are discarded.
- All-Domain Pre-training: For smaller models, pre-training on a mixture of queries from multiple datasets before domain-specific fine-tuning provides a significant performance boost.
- Efficient Ranking Architectures: Massive T5 models are replaced with smaller, encoder-only Transformers, specifically MiniLM (30M parameters) and DeBERTA-v3 (435M parameters).
- Optimized Inference: Latency is reduced by re-ranking only the top 100 candidates per query, compared to the 1000 candidates typically re-ranked in previous studies.
Experimental Setup
The methodology was evaluated across five standard English retrieval collections: MS MARCO (web passages), TREC DL 2020 (densely judged MS MARCO), Robust04 (classic news-wire), Natural Questions (NQ) BEIR (Wikipedia-based), and TREC COVID BEIR (scientific articles).
Results and Discussion
The results demonstrate that open-source models can produce synthetic training data of equal or higher quality than proprietary counterparts. Notably, the BLOOM model outperformed GPT-3 Curie in generating accurate training data.
As shown in Figure 1, the DeBERTA-v3-435M model achieves an average gain over BM25 of 1.30, nearly matching the 1.32 achieved by the monoT5-3B model, which is approximately seven times larger. Even the tiny 30M parameter MiniLM achieved consistent gains (7-30%) over the BM25 baseline, challenging the previous assumption that billions of parameters are required for effective unsupervised neural IR.
The "consistency checking" step proved vital. As detailed in Figure 2, applying consistency checking to MS MARCO data improved the average gain for MiniLM-L6-30M from 1.21 to 1.24 and increased the number of "wins" over BM25 to a perfect 7/7. This step allows smaller models to "punch up" by training on higher-quality, filtered synthetic data.
Furthermore, the approach is extremely cost-effective. Generating 100,000 queries takes approximately 15 hours on a single commodity GPU (RTX 3090), costing less than $10 on cloud platforms. This makes high-quality neural IR accessible to a much broader range of researchers.
Conclusion
InPars-Light demonstrates that efficient, high-performing neural rankers can be trained using entirely open-source tools and synthetic data. While the current study focused on English datasets, future work will explore multilingual applications and the use of even faster models for the consistency checking phase. The success of smaller models like DeBERTA and MiniLM suggests a shift toward more sustainable and accessible IR research.
Summary updated