TL;DR
This paper introduces "Multi-layer Representations" (MLR) for dense passage retrieval, leveraging information from multiple layers of a pre-trained language model instead of just the last layer. They demonstrate that MLR significantly improves retrieval accuracy, especially when pooled into a single vector for efficient inference, outperforming existing methods.
What Problem Does This Paper Address?
Dense passage retrieval is crucial for tasks like open-domain question answering, where it finds relevant documents from a massive corpus. Traditional methods often use a single vector from the last hidden layer of a document encoder to represent a document. However, research shows that different layers of pre-trained language models (like BERT) capture distinct linguistic knowledge (e.g., syntax in middle layers, task-specific semantics in later layers). This paper argues that by ignoring representations from intermediate layers, current methods miss out on valuable information, potentially limiting retrieval performance.
Methods
The core innovation is Multi-layer Representations (MLR). Instead of a single vector, MLR represents a document using a set of vectors, each derived from the [CLS] token's hidden state at a selected layer from the document encoder.
- Multi-vector Retrieval: Initially, MLR uses multiple vectors per document, allowing for richer representation. The similarity is calculated as the maximum inner product between the query vector and any of the document vectors.
- Pooling for Single-vector Retrieval: To address the efficiency concerns of multi-vector retrieval, the authors propose pooling these multiple document vectors into a single vector. They explore:
- Self-contrastive pooling: A novel approach that uses the last layer's [CLS] representation for inference and incorporates a regularization term during training to encourage consistency.
- Average pooling: Simple averaging of selected layer vectors.
- Scalar mix pooling: A weighted average of selected layer vectors.
- Training: A contrastive loss function is used, similar to existing methods, but adapted for multi-vector or pooled single-vector representations. They also investigate integrating MLR with advanced training techniques like retrieval-oriented pre-training and hard negative mining.
Datasets
The paper evaluates its methods on several standard datasets for passage retrieval:
- Natural Questions (NQ)
- TriviaQA
- SQuAD
- MS MARCO (for passage ranking)
- BEIR benchmark (for out-of-domain evaluation)
The document collection used for these datasets consists of Wikipedia passages.
Key Insights and Ideas
- Intermediate layers matter: Representations from intermediate layers of pre-trained language models contain valuable linguistic knowledge that can significantly boost retrieval performance when incorporated.
- MLR outperforms last-layer: Even in a multi-vector setting, MLR (using multiple layers) shows advantages over "last-layer" multi-vector models like ME-BERT.
- Pooling bridges the gap: Pooling multi-layer representations into a single vector (especially with self-contrastive pooling) achieves performance comparable to or better than single-vector dual-encoders, while maintaining their efficiency. This is a key contribution, as it offers the best of both worlds.
- Last few layers are often sufficient: For MLR, using the last few layers of the encoder often yields the best results, suggesting a strong signal in these layers.
- MLR is compatible with advanced training: The proposed MLR approach can be effectively combined with techniques like retrieval-oriented pre-training and hard negative mining, further enhancing performance.
Key Results
- Single-vector MLR: Achieved significant improvements over dual-encoder baselines across NQ, TriviaQA, and SQuAD, with improvements of up to +3.70% in top-5 accuracy. It also outperformed ME-BERT and ColBERT in single-vector settings.
- Multi-vector MLR: Showed improved performance compared to dual-encoders, though its capacity didn't scale as well with more vectors compared to models like ME-BERT.
- Pooling effectiveness: Self-contrastive pooling consistently outperformed average and scalar mix pooling for MLR.
- Out-of-domain performance: MLR demonstrated significant gains on asymmetric datasets within the BEIR benchmark, achieving a +0.7% average NDCG@10 improvement over the dual-encoder RetroMAE.
- Integration with advanced training: When combined with retrieval-oriented pre-training and hard negative mining, single-vector MLR showed further improvements, outperforming RetroMAE on MS MARCO and DL'19 test sets.
Limitations and Future Work
- Asymmetric representation: The current method represents queries with a single vector and documents with multiple (or pooled) vectors. This asymmetry might limit performance on symmetric tasks like duplicate question identification. The authors suggest exploring multi-vector query representations as future work.
- Societal impact: The paper acknowledges potential societal impacts, such as the risk of minority groups being underrepresented or biased results, and calls for detection and mitigation of such issues.
- Scaling of multi-vector MLR: The paper notes that MLR's representational capacity doesn't scale as well with a large number of vectors compared to some other multi-vector models, suggesting this is an area for further investigation.
Summary updated