RetroMAE-2: Duplex Masked Auto-Encoder For Pre-Training Retrieval-Oriented Language Models

Shitao Xiao, Zheng Liu, Yingxia Shao, Zhao Cao
5/4/2023
cs.CL

No official code found. Best implementation: staoxiao/RetroMAE (275 stars, Apache-2.0, last commit 2024-06-07).

Abstract

To better support information retrieval tasks such as web search and open-domain question answering, growing effort is made to develop retrieval-oriented language models, e.g., RetroMAE and many others. Most of the existing works focus on improving the semantic representation capability for the contextualized embedding of the [CLS] token. However, recent study shows that the ordinary tokens besides [CLS] may provide extra information, which help to produce a better representation effect. As such, it's necessary to extend the current methods where all contextualized embeddings can be jointly pre-trained for the retrieval tasks. In this work, we propose a novel pre-training method called Duplex Masked Auto-Encoder, a.k.a. DupMAE. It is designed to improve the quality of semantic representation where all contextualized embeddings of the pre-trained model can be leveraged. It takes advantage of two complementary auto-encoding tasks: one reconstructs the input sentence on top of the [CLS] embedding; the other one predicts the bag-of-words feature of the input sentence based on the ordinary tokens' embeddings. The two tasks are jointly conducted to train a unified encoder, where the whole contextualized embeddings are aggregated in a compact way to produce the final semantic representation. DupMAE is simple but empirically competitive: it substantially improves the pre-trained model's representation capability and transferability, where superior retrieval performances can be achieved on popular benchmarks, like MS MARCO and BEIR.

View on arXivView PDF

Code Implementations(1)

staoxiao/RetroMAECommunity100%
Apache-2.0

Codebase for RetroMAE and beyond.

27524PythonOct 18, 20222 years agoApache-2.0
information-retrievallanguage-modelpretrained-modelstext-embedding

Cite this paper

@article{xiao2023retromae,
  title  = {RetroMAE-2: Duplex Masked Auto-Encoder For Pre-Training Retrieval-Oriented Language Models},
  author = {Shitao Xiao and Zheng Liu and Yingxia Shao and Zhao Cao},
  year   = {2023},
  eprint = {2305.02564},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.02564v1}
}

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

Discussion