Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval

Luyu Gao, Jamie Callan
8/12/2021
cs.IRcs.CL

Official code: luyug/Condenser (256 stars, Python, Apache-2.0, PyTorch, last commit 2022-03-18).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

luyug/CondenserOfficial100%
PyTorchApache-2.0

EMNLP 2021 - Pre-training architectures for dense retrieval

25626PythonApr 18, 20214 years agoApache-2.0
bertdense-retrievalpytorchtransformer

Similar Papers

Cite this paper

@article{gao2021unsupervised,
  title  = {Unsupervised Corpus Aware Language Model Pre-training for Dense Passage Retrieval},
  author = {Luyu Gao and Jamie Callan},
  year   = {2021},
  eprint = {2108.05540},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.05540}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.05540.svg)](https://codeofpaper.com/paper/2108.05540)

Discussion