[Paper Review] Large Dual Encoders Are Generalizable Retrievers
This paper proposes Generalizable T5-based Dense Retrievers (GTR), a family of large dual encoders with fixed 768-dimensional bottleneck layers, trained via multi-stage pre-training on 2B community QA pairs and fine-tuning on MS MARCO. Despite the fixed dot-product similarity, scaling model size from base to XXL (up to 5B parameters) significantly improves zero-shot out-of-domain generalization on BEIR, with GTR-XXL achieving state-of-the-art performance and 10% data efficiency on MS MARCO.
It has been shown that dual encoders trained on one domain often fail to generalize to other domains for retrieval tasks. One widespread belief is that the bottleneck layer of a dual encoder, where the final score is simply a dot-product between a query vector and a passage vector, is too limited to make dual encoders an effective retrieval model for out-of-domain generalization. In this paper, we challenge this belief by scaling up the size of the dual encoder model {\em while keeping the bottleneck embedding size fixed.} With multi-stage training, surprisingly, scaling up the model size brings significant improvement on a variety of retrieval tasks, especially for out-of-domain generalization. Experimental results show that our dual encoders, extbf{G}eneralizable extbf{T}5-based dense extbf{R}etrievers (GTR), outperform %ColBERT~\cite{khattab2020colbert} and existing sparse and dense retrievers on the BEIR dataset~\cite{thakur2021beir} significantly. Most surprisingly, our ablation study finds that GTR is very data efficient, as it only needs 10\% of MS Marco supervised data to achieve the best out-of-domain performance. All the GTR models are released at https://tfhub.dev/google/collections/gtr/1.
Motivation & Objective
- To challenge the widely held belief that dual encoders are limited in out-of-domain generalization due to their fixed bottleneck layer.
- To investigate whether scaling up the model size of dual encoders—while keeping the bottleneck dimension fixed—can improve retrieval performance and generalization.
- To evaluate the effectiveness of large-scale pre-training on community QA data and fine-tuning on curated datasets for enhancing zero-shot generalization.
- To assess data efficiency in terms of human-annotated training data, particularly whether smaller amounts of MS MARCO data can yield optimal out-of-domain performance.
Proposed method
- Utilized the encoder-only architecture of T5 models, scaling from 250M to 5B parameters while keeping the bottleneck dimension fixed at 768.
- Performed multi-stage training: first pre-training on ~2 billion community question-answer pairs, then fine-tuning on MS MARCO for dense retrieval.
- Shared parameters between the query and document towers in the dual encoder setup to improve parameter efficiency and generalization.
- Used a simple dot-product similarity between query and passage embeddings as the final scoring function, without additional interaction layers.
- Evaluated zero-shot performance on the BEIR benchmark across 18 tasks spanning 9 domains, excluding MS MARCO.
- Conducted ablation studies to analyze the impact of pre-training, fine-tuning, and data efficiency on out-of-domain performance.
Experimental results
Research questions
- RQ1Does scaling up the size of a dual encoder model, while keeping the bottleneck dimension fixed, improve its zero-shot generalization performance across diverse retrieval domains?
- RQ2Can large dual encoders trained with multi-stage pre-training and fine-tuning outperform existing sparse and dense retrievers on out-of-domain tasks?
- RQ3How efficient is the proposed model in terms of human-annotated training data, particularly when using only 10% of MS MARCO data?
- RQ4Does the performance of large dual encoders depend more on model capacity or on architectural innovations like multi-vector or interaction layers?
Key findings
- GTR-XXL achieved state-of-the-art performance on the BEIR benchmark, outperforming existing sparse and dense retrievers across 18 retrieval tasks.
- Scaling up model size consistently improved out-of-domain generalization, with the largest model showing the most significant gains on zero-shot evaluation.
- The ablation study revealed that GTR only needs 10% of the MS MARCO training data to achieve the best out-of-domain performance, demonstrating high data efficiency.
- The largest GTR-XXL model retrieved documents that were, on average, twice as long as those retrieved by the smallest GTR-Base, which may explain its strong performance on long-document retrieval tasks like Web-Touche2020.
- Despite the fixed dot-product similarity, the performance of large dual encoders surpassed models with more complex interaction mechanisms, challenging assumptions about architectural necessity.
- Inference latency increased from 17ms (GTR-Base) to 349ms (GTR-XXL), but remained within the range of re-ranking models, suggesting potential for optimization via distillation or sparsity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.