Skip to main content
QUICK REVIEW

[Paper Review] RetroMAE: Pre-Training Retrieval-oriented Language Models Via Masked Auto-Encoder

Shitao Xiao, Zheng Liu|arXiv (Cornell University)|May 24, 2022
Topic ModelingComputer Science7 citations
TL;DR

RetroMAE proposes a novel masked auto-encoding framework for pre-training retrieval-oriented language models, using an asymmetric design with a full-encoder BERT and a single-layer decoder, along with aggressive masking (50–70%) for the decoder and moderate masking (15–30%) for the encoder. This setup forces the encoder to learn deep semantic representations, achieving state-of-the-art performance on BEIR and MS MARCO benchmarks with minimal data and computation.

ABSTRACT

Despite pre-training's progress in many important NLP tasks, it remains to explore effective pre-training strategies for dense retrieval. In this paper, we propose RetroMAE, a new retrieval oriented pre-training paradigm based on Masked Auto-Encoder (MAE). RetroMAE is highlighted by three critical designs. 1) A novel MAE workflow, where the input sentence is polluted for encoder and decoder with different masks. The sentence embedding is generated from the encoder's masked input; then, the original sentence is recovered based on the sentence embedding and the decoder's masked input via masked language modeling. 2) Asymmetric model structure, with a full-scale BERT like transformer as encoder, and a one-layer transformer as decoder. 3) Asymmetric masking ratios, with a moderate ratio for encoder: 15~30%, and an aggressive ratio for decoder: 50~70%. Our framework is simple to realize and empirically competitive: the pre-trained models dramatically improve the SOTA performances on a wide range of dense retrieval benchmarks, like BEIR and MS MARCO. The source code and pre-trained models are made publicly available at https://github.com/staoxiao/RetroMAE so as to inspire more interesting research.

Motivation & Objective

  • To address the limitation of existing pre-training methods in developing strong sentence-level representations for dense retrieval.
  • To overcome the data efficiency and representation quality issues in auto-encoding-based retrieval pre-training.
  • To design a framework that maximizes training signal utilization from input sentences while increasing reconstruction difficulty for the encoder.
  • To explore the effectiveness of asymmetric model structures and masking ratios in retrieval-oriented pre-training.

Proposed method

  • RetroMAE employs a novel masked auto-encoding workflow where the input sentence is masked differently for the encoder and decoder.
  • The encoder, a full-scale BERT, generates a sentence embedding from a moderately masked input (15–30% masking).
  • The decoder, a single-layer transformer, reconstructs the original sentence using the sentence embedding and an aggressively masked input (50–70% masking).
  • Enhanced decoding is introduced via two-stream attention and position-specific attention masks to ensure all tokens are used for reconstruction with unique context.
  • Asymmetric masking ratios are used to increase reconstruction difficulty for the decoder while maintaining encoder input quality.
  • The model is pre-trained on Wikipedia, BookCorpus, and MS MARCO with a focus on maximizing signal utilization and representation quality.

Experimental results

Research questions

  • RQ1Can a masked auto-encoding framework with asymmetric masking ratios improve sentence representation quality for dense retrieval?
  • RQ2How does the use of a single-layer decoder with enhanced decoding affect data efficiency and retrieval performance?
  • RQ3What is the optimal masking ratio for the encoder and decoder in a retrieval-oriented pre-training setup?
  • RQ4Does asymmetric model architecture (full encoder, lightweight decoder) lead to better performance than symmetric designs?
  • RQ5To what extent does enhanced decoding improve training signal diversity and model generalization in retrieval pre-training?

Key findings

  • RetroMAE achieves a zero-shot average score of 45.2 on the BEIR benchmark, significantly outperforming existing methods.
  • In supervised fine-tuning on DPR, RetroMAE achieves state-of-the-art performance across multiple dense retrieval benchmarks.
  • Enhanced decoding with two-stream attention and position-specific masks improves data efficiency and leads to notable performance gains.
  • A one-layer decoder outperforms deeper decoders, as larger decoders require disabling enhanced decoding and hurt performance.
  • An increased encoder masking ratio (up to 30%) and aggressive decoder masking (50–70%) improve retrieval quality, with optimal performance at 0.5 for decoder masking.
  • Ablation studies confirm that asymmetric masking and enhanced decoding are critical for maximizing training signal utilization and model effectiveness.

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.