Drop your Decoder: Pre-training with Bag-of-Word Prediction for Dense Passage Retrieval

Guangyuan Ma, Xing Wu, Zijia Lin, Songlin Hu

Introduction

Dense Passage Retrieval (DPR) has become the standard for modern search and question-answering systems. These systems rely on encoders like BERT to map text into a single "dense representation" (the [CLS] vector). However, standard BERT is optimized for language modeling, not for compressing the semantic essence of an entire sentence into a single vector.

To address this, researchers previously turned to Masked Auto-Encoders (MAE), which use a shallow Transformer decoder to reconstruct the original text from the encoder's output. While effective, this approach introduces significant computational complexity and GPU memory overhead. This paper challenges the necessity of the decoder, proposing a simpler, more efficient alternative: Bag-of-Word (BoW) Prediction Pre-training.

Methods: Simplifying the Bottleneck

The authors discovered that the success of MAE-style pre-training isn't due to sophisticated sequence reconstruction, but rather simple lexical compression. The dense vector simply needs to "remember" which words were in the input.

Based on this insight, they proposed a streamlined architecture that completely removes the Transformer decoder. Instead, the model performs a multi-label classification task: using the [CLS] vector to predict the "bag" of words present in the original input, regardless of their order. This task is combined with standard Masked Language Modeling (MLM) to maintain local semantic understanding.

Comparison between Masked Auto-Encoder (MAE) and the proposed Bag-of-Word (BoW) prediction pre-training.

By eliminating the decoder, the method achieves a 67% training speedup compared to state-of-the-art MAE models like RetroMAE, while requiring zero extra parameters or additional GPU memory.

Key Insights: Lexical Compression and Interpretability

A core contribution of this work is the demonstration that order-agnostic lexical information is sufficient for high-quality retrieval initialization. By projecting the [CLS] vector back into the vocabulary space, the authors could "read" the model's internal representation.

While vanilla BERT vectors often contain noisy or irrelevant terms, vectors trained with the BoW objective (referred to as "Enhanced Decoding" in diagnostic tests) clearly highlight the most important keywords from the input text. This confirms that the model is effectively compressing the input's lexicon into the dense bottleneck.

Extracted figure from page 5 of Drop your Decoder: Pre-training with Bag-of-Word Prediction for Dense Passage Retrieval

Key Results

Despite its simplicity, BoW Prediction Pre-training sets new benchmarks for dense retrieval performance:

  • State-of-the-Art Retrieval: On the MS-MARCO passage ranking task, the model achieved 40.1 MRR@10, surpassing the more complex RetroMAE (39.3).
  • Robust Generalization: In out-of-domain evaluations using the BEIR benchmark, the method showed a +6.39% relative gain over the standard BERT baseline across 18 diverse datasets.
  • Efficiency: The removal of the decoder allows for significantly faster iteration and lower hardware requirements during the pre-training phase.

Limitations and Future Work

The authors note that this pre-training paradigm is "orthogonal" to other common retrieval enhancements, such as data augmentation or document expansion. While the current work focuses on the unsupervised pre-training stage, future research could explore how BoW prediction interacts with these supervised techniques or more complex data augmentation strategies to further push the boundaries of dense retrieval.

Summary updated

BibTeX
@inproceedings{ma2024drop,
  author = {Guangyuan Ma and Xing Wu and Zijia Lin and Songlin Hu},
  title = {{Drop your Decoder: Pre-training with Bag-of-Word Prediction for Dense Passage Retrieval}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
}
Figure