SimLM: Pre-training with Representation Bottleneck for Dense Passage Retrieval

Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei

Introduction

Dense passage retrieval has emerged as a cornerstone of modern information retrieval systems. By mapping queries and documents into a shared high-dimensional vector space, these systems can identify relevant content based on semantic similarity rather than simple keyword matching. Typically, a pre-trained model like BERT is used, with the [CLS] token serving as the aggregate representation of a document.

However, standard pre-training objectives like Masked Language Modeling (MLM) are not inherently optimized for document-level representation. In a vanilla BERT architecture, the [CLS] token does not necessarily need to capture the full semantic essence of a passage to satisfy the MLM objective. Previous attempts to address this, such as the Condenser model, often utilized skip-connections that allowed information to bypass the representation bottleneck, resulting in suboptimal compression. SimLM (Similarity matching with Language Model pre-training) addresses this by enforcing a strict "representation bottleneck" that mandates the compression of a passage's entire meaning into a single dense vector.

Methodology: The Representation Bottleneck

SimLM introduces a streamlined encoder-decoder architecture specifically designed for effective pre-training of dense retrievers.

The SimLM pre-training architecture featuring a generator, a deep encoder, and a shallow decoder connected via a representation bottleneck.

The architecture consists of three primary components:

  1. Generator: A small model used to create corrupted versions of input text by replacing tokens with plausible alternatives, a technique known as Replaced Language Modeling (RLM).
  2. Deep Encoder: This is the core component that is ultimately used for retrieval. It processes the corrupted passage and produces a single [CLS] vector.
  3. Shallow Decoder: A minimal 2-layer decoder tasked with recovering the original tokens of the entire passage.

The critical innovation is the representation bottleneck. The shallow decoder has no direct access to the input text and no skip-connections to the encoder's intermediate layers. Consequently, it must rely exclusively on the [CLS] vector from the encoder to reconstruct the original passage. This constraint forces the encoder to learn how to compress the passage's full semantic meaning into that single vector.

Evaluation and Datasets

The effectiveness of SimLM was validated across several prominent benchmarks:

  • MS-MARCO Passage Ranking: A large-scale dataset based on real-world Bing search queries.
  • Natural Questions (NQ): Derived from Google search queries and Wikipedia.
  • TREC Deep Learning (2019 & 2020): Datasets featuring fine-grained human relevance judgments.

Pre-training was conducted on the MS-MARCO passage corpus (8.8 million passages) and a Wikipedia corpus (21 million passages). Following pre-training, the decoder is discarded, and the encoder is fine-tuned using standard retrieval pipelines involving hard negative mining and knowledge distillation.

Key Insights

  • Strict Bottlenecks: By removing bypass routes (skip-connections), SimLM ensures the [CLS] token is the sole carrier of semantic information, leading to superior document embeddings.
  • RLM Efficiency: Replaced Language Modeling proves more sample-efficient than MLM because the loss is calculated over every token in the sequence, rather than just a small masked percentage.
  • Reduced Distribution Shift: RLM avoids the use of the artificial [MASK] token, which is absent during actual retrieval tasks, thereby reducing the discrepancy between pre-training and inference.
  • Storage Efficiency: SimLM achieves state-of-the-art performance using only a single vector per document. This offers a significant advantage over multi-vector models like ColBERTv2, which require roughly 6x more storage space.

Results and Performance

SimLM sets a new standard for single-vector dense retrievers. On the MS-MARCO benchmark, it achieved an MRR@10 of 41.1, surpassing previous leading single-vector models like AR2 (39.5) and even outperforming multi-vector architectures like ColBERTv2 (39.7).

Comparison of MRR@10 performance between SimLM and standard MLM over pre-training steps, demonstrating faster convergence and higher peak performance for SimLM.

A standout feature of SimLM is its training efficiency. As shown in the performance plots, SimLM achieves competitive results in as few as 10k training steps and reaches full convergence by 60k steps. In contrast, models pre-trained with standard MLM require significantly more training to reach lower performance plateaus.

Limitations and Future Directions

While SimLM represents a significant advancement, it is primarily designed as a "base" model. It lacks a contrastive objective during the pre-training phase, meaning it still requires supervised fine-tuning on labeled data to function as a high-quality retriever. Additionally, the pre-training phase involves a generator and a decoder, which introduces some computational overhead compared to simpler masking methods. Future research may explore scaling SimLM to larger Transformer variants or extending its capabilities to multilingual retrieval scenarios.

Summary updated

BibTeX
@inproceedings{wang2023simlm,
  author = {Liang Wang and Nan Yang and Xiaolong Huang and Binxing Jiao and Linjun Yang and Daxin Jiang and Rangan Majumder and Furu Wei},
  title = {{SimLM: Pre-training with Representation Bottleneck for Dense Passage Retrieval}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.125},
}
Figure