Condenser: a Pre-training Architecture for Dense Retrieval

Luyu Gao, Jamie Callan
4/16/2021
cs.CLcs.IR
transformer-attention

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

Abstract

Pre-trained Transformer language models (LM) have become go-to text representation encoders. Prior research fine-tunes deep LMs to encode text sequences such as sentences and passages into single dense vector representations for efficient text comparison and retrieval.

Show full abstract

However, dense encoders require a lot of data and sophisticated techniques to effectively train and suffer in low data situations. This paper finds a key reason is that standard LMs' internal attention structure is not ready-to-use for dense encoders, which needs to aggregate text information into the dense representation. We propose to pre-train towards dense encoder with a novel Transformer architecture, Condenser, where LM prediction CONditions on DENSE Representation. Our experiments show Condenser improves over standard LM by large margins on various text retrieval and similarity tasks.

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{gao2021condenser,
  title  = {Condenser: a Pre-training Architecture for Dense Retrieval},
  author = {Luyu Gao and Jamie Callan},
  year   = {2021},
  eprint = {2104.08253},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08253}
}

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/2104.08253.svg)](https://codeofpaper.com/paper/2104.08253)

Discussion