Sentence-aware Contrastive Learning for Open-Domain Passage Retrieval

Bohong Wu, Zhuosheng Zhang, Jinyuan Wang, hai zhao

TL;DR

This paper introduces a novel approach to Open-Domain Passage Retrieval (ODPR) by breaking down passages into individual sentences for contrastive learning. This "Sentence-aware Contrastive Learning" effectively addresses "Contrastive Conflicts" that arise when a single passage is associated with multiple, semantically distinct questions, leading to improved retrieval accuracy and better generalization.

What Problem Does This Paper Address?

Open-Domain Passage Retrieval (ODPR) aims to find relevant passages from a massive corpus for a given question. While dense retrieval methods using models like BERT have shown great promise, they often struggle with a phenomenon the authors call "Contrastive Conflicts." This arises because a single passage can contain multiple sentences that might be relevant to different questions. When contrastive learning treats the entire passage as a single unit, it can lead to conflicting signals during training, especially when a passage is the "gold standard" for several distinct questions. This is particularly problematic on datasets like SQuAD, where passages are often associated with multiple questions. Existing methods primarily focus on improving negative sampling or pretraining, but they don't directly tackle this fundamental granularity issue.

Methods

The core innovation of this paper is the shift from passage-level to sentence-level representations within a contrastive learning framework.

  • Dense Contextual Sentence Representation (DCSR): Instead of encoding entire passages, the authors propose encoding individual sentences while preserving their contextual information. This is achieved by inserting special <sent> tokens at sentence boundaries within a passage and then encoding the passage as a whole. This allows the model to learn sentence representations that are aware of their surrounding context.
  • Sentence-aware Contrastive Learning: The contrastive learning objective is adapted to work with these sentence representations.
  • Positives and Easy Negatives: Sentences containing the gold answer are used as positive examples. Random sentences from BM25-retrieved negative passages are used as easy negatives. In-batch negatives are also employed.
  • In-Passage Negatives: A key contribution is the introduction of "in-passage negatives." This involves sampling sentences from the same passage that do not contain the gold answer. The goal is to encourage the model to generate diverse representations for sentences within a single passage, further mitigating the one-to-many problem and thus Contrastive Conflicts.

Datasets

The experiments were conducted on the OpenQA Dataset, which is a large-scale dataset simulating open-domain passage retrieval, derived from Wikipedia. The authors specifically evaluated their method on subsets of this dataset corresponding to:

  • SQuAD (Stanford Question Answering Dataset)
  • TriviaQA
  • Natural Questions (NQ)

Key Insights and Ideas

  • The "One-to-Many" Problem is Key: The paper convincingly argues that the core issue in existing contrastive learning for ODPR is the "one-to-many" relationship between passages and questions. A single passage can be relevant to multiple, semantically distinct questions, leading to conflicting training signals.
  • Granularity Matters: By moving from passage-level to sentence-level representations, the authors demonstrate that a finer granularity can fundamentally alleviate these "Contrastive Conflicts."
  • In-Passage Negatives are Crucial: The proposed in-passage negative sampling strategy is a clever way to force the model to learn distinct representations for sentences within the same passage, directly addressing the diversity issue.
  • Improved Generalization: The proposed DCSR method shows better transferability across datasets, suggesting it captures more universal aspects of passage retrieval compared to traditional passage-level approaches.

Key Results

  • Significant Accuracy Gains on SQuAD: DCSR achieved a substantial improvement of 10.9% on the Top-20 metric and 7.1% on the Top-100 metric for SQuAD, a dataset severely affected by Contrastive Conflicts.
  • Consistent Improvements: Even on datasets less affected by conflicts (NQ, Trivia), DCSR showed slight but consistent performance gains.
  • Better Transferability: When trained on one dataset and evaluated on another, DCSR exhibited significantly smaller performance drops compared to DPR, indicating better generalization.
  • Robustness on Smaller Corpora: DCSR showed a more pronounced advantage over DPR when operating on smaller indexed corpora, suggesting its ability to leverage contextual information more effectively.

Limitations and Future Work

  • Brute-Force Segmentation: The paper acknowledges that the sentence splitting strategy on pre-segmented passages (from OpenQA) can sometimes lead to low-quality sentence indexes, affecting retrieval performance. Refining this segmentation strategy is left for future work.
  • Computational Resources: While the authors state their method adds little computational overhead, extensive experiments, particularly on large-scale transferability tests, were limited by computational resources.
  • Further Exploration of Negative Sampling: The paper explored incorporating adversarial training and ANCE, showing compatibility, but suggests further research into combining DCSR with more advanced negative sampling strategies.
  • Refining Sentence Splitting: The authors explicitly mention that refining the sentence splitting strategy for passages is a direction for future investigation.

Summary updated

Abstract

Training dense passage representations via contrastive learning has been shown effective for Open-Domain Passage Retrieval (ODPR). Existing studies focus on further optimizing by improving negative sampling strategy or extra pretraining. However, these studies keep unknown in capturing passage with internal representation conflicts from improper modeling granularity. Specifically, under our observation that a passage can be organized by multiple semantically different sentences, modeling such a passage as a unified dense vector is not optimal. This work thus presents a refined model on the basis of a smaller granularity, contextual sentences, to alleviate the concerned conflicts. In detail, we introduce an in-passage negative sampling strategy to encourage a diverse generation of sentence representations within the same passage. Experiments on three benchmark datasets verify the efficacy of our method, especially on datasets where conflicts are severe. Extensive experiments further present good transferability of our method across datasets.
BibTeX
@inproceedings{wu2022sentence,
  author = {Bohong Wu and Zhuosheng Zhang and Jinyuan Wang and hai zhao},
  title = {{Sentence-aware Contrastive Learning for Open-Domain Passage Retrieval}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.76},
}
Figure