Data Augmentation for Sample Efficient and Robust Document Ranking

Abhijit Anand, Jurek Leonhardt, Jaspreet Singh, Koustav Rudra, Avishek Anand · DOI

TL;DR

This paper tackles the "data-hungry" nature of modern transformer-based document rankers by introducing specialized data augmentation and contrastive learning techniques. By creating "synthetic" relevant documents from extractive summaries and training with a Ranking-based Centroid Triplet Loss, the authors achieve massive performance gains (up to 83%) in low-data settings and significantly improve the model's ability to generalize to entirely new domains.

What Problem Does This Paper Address?

Contextual ranking models like BERT and RoBERTa have revolutionized Information Retrieval (IR), but they come with a catch: they are massive, over-parameterized, and typically require enormous amounts of labeled data to fine-tune effectively. In many real-world scenarios, we don't have millions of query-document pairs.

Furthermore, these models often suffer from "brittleness"—they perform well on the data they were trained on (in-domain) but fail miserably when moved to a new topic or document type (out-of-domain). The authors aim to improve sample efficiency (learning more from less) and robustness (generalizing better) through data augmentation.

Methods

The authors propose a two-pronged approach:

  1. Extractive Data Augmentation: Instead of generating new text, they create "augmented" versions of relevant documents by selecting the most important sentences. They tested four strategies:
  2. Unsupervised: Using BM25 (keyword matching) or GloVe (semantic similarity) to pick sentences.
  3. Supervised: Using Linear or Attention-based selectors trained specifically to identify relevant "rationales" within a document.
  4. Contrastive Learning Objectives: The core innovation is how they train on this augmented data. They found that standard Cross-Entropy loss actually hurts performance when using augmented data because the labels are "noisy." Instead, they adapt contrastive losses that encourage the model to cluster representations of the same query-document pair together while pushing irrelevant ones away.
  5. The standout method is Ranking-based Centroid Triplet Loss (RankingCTriplet), which uses "centroids" (averages) of document representations to dampen the noise inherent in augmented samples.

Datasets

The researchers evaluated their methods on two major benchmarks:

  • In-Domain: MS MARCO and TREC-DL (Doc’19). They simulated low-data environments by creating subsets ranging from just 100 to 100,000 training instances.
  • Out-of-Domain: The BEIR benchmark, which includes 17 diverse datasets (e.g., SciFact for scientific claims, FiQA for finance, and TREC-COVID). This served as the ultimate test for robustness.

Key Insights and Ideas

  • Augmentation requires a paradigm shift: You cannot simply add augmented data to a standard training pipeline. Using traditional Pointwise (Cross-Entropy) loss with augmented data often leads to worse performance. You need contrastive objectives to handle the "fuzziness" of augmented examples.
  • Supervised beats Heuristic: Attention-based sentence selection consistently outperformed simple keyword matching (BM25). By "understanding" which parts of a document make it relevant to a query, the model creates much higher-quality training samples.
  • The "Centroid" Advantage: RankingCTriplet was the most effective loss function. By comparing a document to the average representation of relevant documents (the centroid) rather than a single anchor point, the model becomes less sensitive to outliers and noisy augmented sentences.
  • Small models benefit most: While BERT-Large is naturally more sample-efficient, leaner models like DistilBERT saw the most dramatic improvements from this pipeline, making them much more viable for production environments with limited compute.

Key Results

  • Massive Sample Efficiency: For DistilBERT, using the proposed augmentation and loss on just 1,000 training instances led to an 83% improvement in ndcg@10 compared to the baseline.
  • BERT Gains: Even the larger BERT-base model saw a 9% improvement in low-data regimes.
  • Superior Robustness: When transferred to the BEIR benchmark (zero-shot), the augmented RoBERTa model saw gains between 18.8% and 134% across various datasets. In some cases (like DBPedia and TREC-COVID), these augmented models even outperformed state-of-the-art models like SPLADE.

Limitations and Future Work

  • Document-Only Augmentation: This work focused entirely on transforming the document side of the query-document pair. The authors note that query augmentation (e.g., using LLMs to generate synthetic queries) is a promising but unexplored parallel path.
  • The "Why" of Loss-Augmentation Pairing: While they empirically found that certain losses work better with certain augmentations, a deep theoretical understanding of why specific contrastive objectives favor specific extractive strategies is still lacking.
  • Generative Potential: The authors suggest that future work could involve using generative models (like GPT-4) to create entirely synthetic training data, rather than just extracting sentences from existing documents.

Summary updated

BibTeX
@article{anand2024data,
  author = {Abhijit Anand and Jurek Leonhardt and Jaspreet Singh and Koustav Rudra and Avishek Anand},
  title = {{Data Augmentation for Sample Efficient and Robust Document Ranking}},
  journal = {ACM Trans. Information Systems},
  year = {2024},
  doi = {10.1145/3634911},
}
Figure