A Little Bit Is Worse Than None: Ranking with Limited Training Data

Xinyu Zhang, Andrew Yates, Jimmy Lin

Abstract

This paper investigates the effectiveness of fine-tuning BERT-based rankers under conditions of data scarcity. Contrary to the common machine learning intuition that some data is always better than none, the authors demonstrate that a small amount of in-domain data can lead to worse retrieval performance than a zero-shot approach using a model pre-trained on a large, general dataset like MS MARCO. Through experiments on the Robust04 and GOV2 datasets, the study identifies a "few-shot trap" where direct fine-tuning on limited labels underperforms zero-shot baselines, and a "plateau effect" where performance saturates before reaching full dataset size.

Introduction

Information Retrieval (IR) has been significantly advanced by the application of large-scale language models like BERT. These models typically serve as "rerankers," refining the results of initial keyword-based searches (e.g., BM25). However, the effectiveness of BERT-based rankers is often contingent on fine-tuning with domain-specific labeled data—pairs of queries and relevant documents.

Creating these "test collections" is a resource-intensive process, traditionally requiring massive community efforts like the Text Retrieval Conferences (TREC). For practitioners in specialized domains, a critical question remains: how much labeled data is necessary to justify the effort of fine-tuning?

Methodology

The researchers employed the BERT-MaxP architecture to handle document length constraints. Since BERT's input is limited to 512 tokens, BERT-MaxP segments documents into overlapping passages, scores each, and selects the maximum score as the document's relevance ranking.

To study the impact of data volume, the authors sampled existing large datasets (Robust04 and GOV2) at rates ($r$) from 10% to 100%. They compared two primary training strategies:

  1. Direct Fine-tuning: Training a base BERT model solely on the sampled in-domain data.
  2. Intermediate Training (Zero-shot/Fine-tuned): Utilizing a BERT model already fine-tuned on the massive MS MARCO dataset. This model was either used as-is (zero-shot) or further fine-tuned on the in-domain sample.

The "Few-Shot" Trap and Performance Plateaus

The experimental results revealed a counterintuitive phenomenon dubbed the "few-shot trap." On both Robust04 and GOV2, fine-tuning directly on small subsets (10% or 30%) of the data yielded lower accuracy (nDCG@20) than simply using the MS MARCO-trained model in a zero-shot capacity.

Performance of BERT-MaxP on the GOV2 dataset across different sampling rates. The dashed blue line represents the zero-shot MS MARCO baseline.

As shown in the figure above for the GOV2 dataset, the "sampling (no init)" strategy (orange line) starts significantly below the "zero-shot (MS MARCO)" baseline (blue dashed line). It requires approximately 50% of the data before direct fine-tuning matches the zero-shot performance. This suggests that the noise or lack of signal in small datasets can actively mislead the model compared to the robust patterns learned from a large, general-purpose domain.

Furthermore, the study identified a "plateau effect." Performance does not scale linearly with data; instead, it begins to saturate around the 70% sampling mark. This implies that existing large-scale collections might be larger than necessary to reach the performance limits of current BERT-based architectures.

Visualizing the Impact of Intermediate Training

To understand why MS MARCO initialization provides such a significant advantage, the authors analyzed the models' attention mechanisms.

Attention visualizations comparing zero-shot, direct fine-tuning (w/o MS), and intermediate training (w/ MS).

The visualizations demonstrate that models initialized with MS MARCO are better at identifying semantic relationships. For instance, they can more effectively connect a query term like "reclamation" to relevant document terms like "mine," even when the in-domain training data is sparse. In contrast, models trained only on small in-domain samples fail to develop these strong semantic links.

Conclusion

The findings of this study provide a clear directive for IR practitioners: when labeled data is scarce, "a little bit" of fine-tuning can be worse than none. Initializing with a model trained on a large-scale general dataset like MS MARCO provides a much higher performance floor. For those with limited annotation budgets, the most effective strategy is to leverage strong out-of-domain models rather than attempting to fine-tune on a small, potentially noisy in-domain sample.

Summary updated

BibTeX
@inproceedings{zhang2020little,
  author = {Xinyu Zhang and Andrew Yates and Jimmy Lin},
  title = {{A Little Bit Is Worse Than None: Ranking with Limited Training Data}},
  booktitle = {SustaiNLP @ EMNLP},
  year = {2020},
  doi = {10.18653/v1/2020.sustainlp-1.14},
}
Figure