Empowering Dual-Encoder with Query Generator for Cross-Lingual Dense Retrieval

Houxing Ren, Linjun Shou, Ning Wu, Ming Gong, Daxin Jiang

Abstract

Traditional cross-lingual dense retrieval relies on Knowledge Distillation (KD) from Cross-Encoder (CE) teachers to Dual-Encoder (DE) students. However, CE teachers struggle with data scarcity and language alignment. We present QuiCK (Query generator improved dual-encoder by Cross-lingual Knowledge distillation), a framework that replaces the CE teacher with a query generator (mT5). QuiCK achieves state-of-the-art results on multilingual benchmarks by leveraging generative pre-training for robustness in low-data regimes and synthetic alignment for language-agnostic representations.

Introduction

In Information Retrieval (IR), Dual-Encoders (DE) are the gold standard for efficiency because they allow for fast approximate nearest neighbor searches. However, they often lag behind Cross-Encoders (CE) in accuracy. To bridge this gap, researchers typically use Knowledge Distillation (KD), where a powerful CE acts as a "teacher" to train the DE "student."

This approach faces significant hurdles in cross-lingual retrieval (e.g., searching English documents using a Swahili query). First, Cross-encoders require massive amounts of labeled data and high-quality negative samples, which are often unavailable for low-resource languages. Second, aligning different languages in a shared embedding space usually requires parallel corpora, which are costly and difficult to obtain.

The QuiCK Framework

The authors propose QuiCK, which introduces three main innovations to address these limitations:

Query Generator as Teacher

Instead of a Cross-Encoder, QuiCK uses a generative model (mT5) as the teacher. Query generators are more robust when training data is limited because their pre-training objective (predicting tokens) is consistent with their fine-tuning task. The "relevance score" is calculated as the log-likelihood of the model generating the query given a specific passage.

Synthetic Alignment and Scheduled Sampling

To align languages without parallel corpora, the model uses the query generator to create synonymous queries in multiple target languages for every training sample. To manage the quality of these generated queries, the authors introduce a scheduled sampling mechanism: if a generated query and the original query retrieve a similar set of documents, they are likely synonymous. This "retrieval overlap" weights the importance of synthetic queries during training.

Iterative Training

The framework uses an iterative loop where the Dual-Encoder and Query Generator are fine-tuned together, progressively improving the quality of both the retriever and the teacher.

Key Insights: Generators vs. Discriminators

A central finding of this work is the superior performance of generators in low-resource scenarios. As shown in the figure below, the performance of a traditional Cross-Encoder (discriminator) degrades significantly as the number of training samples decreases. In contrast, the Query Generator remains stable, providing high-quality supervision even with limited data. This is attributed to the generator's token-level focus, whereas Cross-Encoders often rely heavily on a single [CLS] token, making them more sensitive to noise.

Comparison of Query Generator and Cross Encoder performance across varying training sample sizes for (a) BM25 and (b) DPR.

Experimental Results

QuiCK was evaluated on two major benchmarks: XOR-Retrieve (7 diverse languages) and MKQA (20 languages for zero-shot testing).

  • XOR-Retrieve: On the development set, QuiCK improved the R@2kt (Recall at 2,000 tokens) from a previous best of 51.0 to 61.3. When using a stronger backbone (LaBSE), it reached 68.9.
  • Zero-Shot Mastery: On the MKQA dataset, QuiCK outperformed all baselines on 20 unseen languages, proving that its alignment method generalizes well even to languages it wasn't explicitly trained on.
  • Efficiency: Despite the complex training loop, the final Dual-Encoder remains highly efficient for inference, with query encoding taking only ~40ns and retrieval taking ~2ms.

Conclusion

QuiCK demonstrates that generative models can serve as more effective teachers than discriminative ones for cross-lingual dense retrieval, particularly when data is scarce. By using synthetic queries for alignment, the framework removes the need for expensive parallel corpora while achieving state-of-the-art performance. Future work will explore token-level supervision to further refine the query generator's capabilities and address cultural nuances in cross-lingual retrieval.

Summary updated

BibTeX
@inproceedings{ren2022empowering,
  author = {Houxing Ren and Linjun Shou and Ning Wu and Ming Gong and Daxin Jiang},
  title = {{Empowering Dual-Encoder with Query Generator for Cross-Lingual Dense Retrieval}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.203},
}
Figure