Challenging Decoder helps in Masked Auto-Encoder Pre-training for Dense Passage Retrieval

Zehan Li, Yanzhao Zhang, Dingkun Long, Pengjun XiearXiv 2023

Abstract

Recently, various studies have been directed towards exploring dense passage retrieval techniques employing pre-trained language models, among which the masked auto-encoder (MAE) pre-training architecture has emerged as the most promising. The conventional MAE framework relies on leveraging the passage reconstruction of decoder to bolster the text representation ability of encoder, thereby enhancing the performance of resulting dense retrieval systems. Within the context of building the representation ability of the encoder through passage reconstruction of decoder, it is reasonable to postulate that a "more demanding" decoder will necessitate a corresponding increase in the encoder's ability. To this end, we propose a novel token importance aware masking strategy based on pointwise mutual information to intensify the challenge of the decoder. Importantly, our approach can be implemented in an unsupervised manner, without adding additional expenses to the pre-training phase. Our experiments verify that the proposed method is both effective and robust on large-scale supervised passage retrieval datasets and out-of-domain zero-shot retrieval benchmarks.

1. Introduction

Dense Passage Retrieval (DPR) relies on dual-encoders to map queries and documents into a shared vector space. The goal is to ensure that the vector for a relevant document is close to the vector for a query. Recently, Masked Auto-Encoders (MAE) have become the gold standard for pre-training these encoders. In an MAE setup, an encoder compresses a masked sentence into a single bottleneck vector, and a shallow decoder attempts to reconstruct the original sentence from that vector.

However, a major flaw exists in current MAE frameworks: uniform random masking. In standard pre-training, tokens are masked randomly. Statistically, this means the model spends a significant portion of its time trying to predict "stop words" (like the, a, of) or punctuation. As shown in Figure 2, the distribution of masked terms is heavily skewed towards these uninformative tokens.

Figure 2: Distribution of masked terms in standard random masking, showing a high frequency of stop words and punctuation.

This makes the reconstruction task too easy for the decoder, which in turn allows the encoder to "get lazy," failing to learn the deep, salient semantic representations needed for high-quality retrieval.

2. Methodology

We propose CDMAE (Challenging Decoder Masked Auto-Encoder), which introduces architectural and algorithmic changes to intensify the training signal by making the reconstruction task significantly harder.

2.1 Token Importance Estimation via PMI

Instead of random masking, CDMAE uses Pointwise Mutual Information (PMI) to calculate how "informative" a token is based on its co-occurrence with neighbors in the corpus. High PMI suggests a token is a key descriptor rather than a generic filler word. During the decoder's pre-training phase, tokens with higher PMI scores are prioritized for masking. This forces the decoder to reconstruct the most semantically dense parts of the text.

2.2 Asymmetric Bottleneck Architecture

The model utilizes a "Deep Encoder" and a "Shallow Decoder" separated by a linear projection head. The encoder uses a light masking ratio to maintain input stability, while the decoder is intentionally weakened (typically only 2 layers) and faces a heavy, intelligent masking challenge. This "pressure cooker" environment forces the encoder to pack more salient information into the bottleneck representation.

Figure 5: (a) Comparison between importance-aware and random masking distributions. (b) The CDMAE model architecture featuring a deep encoder and a shallow decoder.

3. Key Results

The model was evaluated on several industry-standard benchmarks, including MS MARCO, TREC Deep Learning, and the BEIR Benchmark for zero-shot robustness.

  • State-of-the-Art Performance: CDMAE achieved an MRR@10 of 41.7 on the MS MARCO dev set, outperforming previous leaders like RetroMAE and MASTER.
  • Superior Zero-Shot Robustness: On the BEIR benchmark, CDMAE achieved the highest score on 9 out of 14 datasets, demonstrating that its learned representations generalize better to new domains (e.g., medical or legal text) than models trained with random masking.
  • Efficiency: The PMI-based masking strategy is unsupervised and computationally cheap, requiring no extra forward passes through secondary models to determine what to mask.

4. Conclusion

The core insight of CDMAE is that the decoder's difficulty is directly proportional to the encoder's quality. By making the reconstruction task harder through PMI-based masking and a shallow decoder, the encoder is forced to capture the most salient semantic information, leading to superior retrieval performance across both supervised and zero-shot benchmarks.

Summary updated

BibTeX
@misc{li2023challenging,
  author = {Zehan Li and Yanzhao Zhang and Dingkun Long and Pengjun Xie},
  title = {{Challenging Decoder helps in Masked Auto-Encoder Pre-training for Dense Passage Retrieval}},
  year = {2023},
  eprint = {2305.13197},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.13197},
}
Figure