Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval

Luyu Gao, Jamie Callan|arXiv (Cornell University)|Aug 12, 2021
Topic ModelingComputer Science54 citations
TL;DR

coCondenser pre-trains a Condenser-based language model with an unsupervised corpus-aware contrastive objective to create a robust embedding space for dense retrieval, reducing fine-tuning data engineering and large-batch requirements while achieving competitive results.

ABSTRACT

Recent research demonstrates the effectiveness of using fine-tuned language models~(LM) for dense retrieval. However, dense retrievers are hard to train, typically requiring heavily engineered fine-tuning pipelines to realize their full potential. In this paper, we identify and address two underlying problems of dense retrievers: i)~fragility to training data noise and ii)~requiring large batches to robustly learn the embedding space. We use the recently proposed Condenser pre-training architecture, which learns to condense information into the dense vector through LM pre-training. On top of it, we propose coCondenser, which adds an unsupervised corpus-level contrastive loss to warm up the passage embedding space. Retrieval experiments on MS-MARCO, Natural Question, and Trivia QA datasets show that coCondenser removes the need for heavy data engineering such as augmentation, synthesis, or filtering, as well as the need for large batch training. It shows comparable performance to RocketQA, a state-of-the-art, heavily engineered system, using simple small batch fine-tuning.

Motivation & Objective

  • Investigate why dense retrievers are fragile to training data noise and require large batches during learning.
  • Propose a corpus-aware pre-training approach that builds a robust embedding space for dense retrieval.
  • Leverage Condenser architecture to enhance noise resilience and introduce a corpus-level contrastive loss.
  • Demonstrate that unsupervised pre-training can rival heavily engineered fine-tuning pipelines.
  • Show that pre-training on a target corpus enables effective small-batch fine-tuning.

Proposed method

  • Build on the Condenser pre-training architecture to produce a robust CLS-based dense representation.
  • Add a corpus-level contrastive loss (coCondenser) to jointly train MLM and contrastive objectives without supervision.
  • Use span-level sampling from documents as augmentation for the contrastive loss (SimCLR-style) and define a binomial cross-document negative sampling.
  • Employ gradient caching to enable memory-efficient large-batch contrastive pre-training on resource-limited hardware.
  • Discard the Condenser head after pre-training and fine-tune the backbone as a dual-encoder with supervised contrastive loss on target tasks.
  • Follow a two-round fine-tuning regime with BM25 negatives in the first round and hard negatives mined from the first round in the second.

Experimental results

Research questions

  • RQ1Can corpus-aware unsupervised pre-training reduce the need for heavy data engineering in dense retrieval fine-tuning?
  • RQ2Does a corpus-level contrastive objective help form a more effective global embedding space for passages?
  • RQ3Is it possible to achieve competitive performance with small-batch fine-tuning after corpus-aware pre-training?
  • RQ4How does coCondenser compare to RocketQA and other baselines across MS-MARCO, Natural Questions, and TriviaQA?
  • RQ5What memory-efficient techniques enable training coCondenser on commodity hardware?

Key findings

  • coCondenser achieves competitive results with small batch fine-tuning, matching or surpassing several baselines.
  • coCondenser reduces the need for data augmentation, denoising, and large-batch training while still performing well.
  • Pre-training on a target corpus (Wikipedia or MS-MARCO) yields gains that are close to or on par with larger semi-supervised pre-training approaches like DPR-PAQ.
  • The contrastive corpus-aware objective improves the global embedding space and robustness to noise, boosting recall across datasets.
  • Gradient caching enables memory-efficient large-batch contrastive pre-training on limited hardware without sacrificing performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.