Parameter-efficient Zero-shot Transfer for Cross-Language Dense Retrieval with Adapters

Eugene Yang, Suraj Nair, Dawn J. Lawrie, James Mayfield, Douglas W. OardarXiv 2022

Abstract

A popular approach to creating a zero-shot cross-language retrieval model is to substitute a monolingual pretrained language model in the retrieval model with a multilingual pretrained language model such as Multilingual BERT. This multilingual model is fined-tuned to the retrieval task with monolingual data such as English MS MARCO using the same training recipe as the monolingual retrieval model used. However, such transferred models suffer from mismatches in the languages of the input text during training and inference. In this work, we propose transferring monolingual retrieval models using adapters, a parameter-efficient component for a transformer network. By adding adapters pretrained on language tasks for a specific language with task-specific adapters, prior work has shown that the adapter-enhanced models perform better than fine-tuning the entire model when transferring across languages in various NLP tasks. By constructing dense retrieval models with adapters, we show that models trained with monolingual data are more effective than fine-tuning the entire model when transferring to a Cross Language Information Retrieval (CLIR) setting. However, we found that the prior suggestion of replacing the language adapters to match the target language at inference time is suboptimal for dense retrieval models. We provide an in-depth analysis of this discrepancy between other cross-language NLP tasks and CLIR.

Introduction

Cross-Language Information Retrieval (CLIR) is the task of finding relevant documents in a target language (e.g., Chinese) using a query in a different source language (e.g., English). Current state-of-the-art methods typically leverage Multilingual Pretrained Language Models (mPLMs) like mBERT or XLM-R. These models are usually fine-tuned on large English datasets like MS MARCO, with the expectation that their internal multilinguality will enable zero-shot transfer to other languages. However, full-model fine-tuning (FMFT) is computationally expensive and can inadvertently "wash away" a model's general multilingual capabilities by over-specializing it to the training language. This paper explores adapters as a modular, parameter-efficient alternative.

Methodology

The authors propose using adapters—small, modular bottleneck layers inserted into the transformer blocks of a frozen mPLM. By keeping the massive underlying model frozen and only updating the tiny adapter layers, the model retains its general multilingual knowledge while learning task-specific features.

The approach utilizes Adapter Cascading, where a language-specific adapter (pretrained on Wikipedia) is stacked with a task-specific retrieval adapter. This setup is integrated into a dual-encoder framework for processing queries and documents independently.

Dual-encoder architecture for cross-language retrieval using language and task adapters.

The study evaluates two prominent dense retrieval architectures:

  1. DPR (Dense Passage Retrieval): Uses a single vector representation for the entire passage.
  2. ColBERT: Employs fine-grained token-level embeddings for more expressive matching.

A key experimental focus is the "swapping" of language adapters. In many NLP tasks, it is standard practice to train with an English adapter and swap it for a target-language adapter at inference. The authors rigorously test if this practice holds for the similarity-based matching required in retrieval.

Experimental Setup

Models were trained on English MS MARCO v1 triples. Evaluation was conducted across several multilingual collections, including HC4 (Chinese and Persian) and CLEF 2003 (German, Finnish, French, and Russian). Performance was measured using nDCG@100, comparing zero-shot transfer (English query to foreign document) against monolingual baselines.

Results and Discussion

The experimental results demonstrate that adapters significantly outperform full-model fine-tuning in zero-shot CLIR settings while being far more efficient.

Retrieval performance (nDCG@100) comparing full-model fine-tuning (FMFT) with various adapter configurations.

Efficiency and Effectiveness

As shown in the results, the adapter-based approach (specifically the E-E configuration) consistently outperforms FMFT. For the ColBERT model, adapters improved average retrieval effectiveness by 14%. For DPR, the improvement was 7%. Remarkably, these gains were achieved while updating as little as 0.3% to 0.5% of the model's total parameters.

The Failure of Adapter Swapping

A major finding is the suboptimality of swapping language adapters at test time. In the "E-D" setting (English adapter for query, target-language adapter for document), performance plummeted by 47% for DPR. This suggests that retrieval is highly sensitive to vector space alignment; using different adapters for the query and document encoders pushes their representations into disparate regions of the embedding space, breaking the similarity metric.

The "Universal" English Adapter

Surprisingly, keeping the English language adapter active for all target languages (the E-E setting) yielded the best results. The English adapter appears to act as a general-purpose retrieval enhancer that maintains the cross-lingual alignment of the frozen mPLM backbone better than language-specific adapters.

Conclusion

This work demonstrates that parameter-efficient adapters are not only more computationally light but also more effective than full-model fine-tuning for zero-shot cross-language retrieval. The study highlights a critical difference between CLIR and other NLP tasks: the need for consistent vector space alignment makes the standard practice of swapping language adapters detrimental. Future work may explore whether retrieval-specific language adapters can further bridge the gap in low-resource language settings.

Summary updated

BibTeX
@misc{yang2022parameter,
  author = {Eugene Yang and Suraj Nair and Dawn J. Lawrie and James Mayfield and Douglas W. Oard},
  title = {{Parameter-efficient Zero-shot Transfer for Cross-Language Dense Retrieval with Adapters}},
  year = {2022},
  eprint = {2212.10448},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.10448},
}
Figure