Soft Prompt Decoding for Multilingual Dense Retrieval

Zhiqi Huang, Hansi Zeng, Hamed Zamani, James Allan · DOI

Abstract

In this work, we explore a Multilingual Information Retrieval (MLIR) task, where the collection includes documents in multiple languages. We demonstrate that applying state-of-the-art approaches developed for cross-lingual information retrieval to MLIR tasks leads to sub-optimal performance. This is due to the heterogeneous and imbalanced nature of multilingual collections—some languages are better represented in the collection and some benefit from large-scale training data. To address this issue, we present KD-SPD, a novel soft prompt decoding approach for MLIR that implicitly "translates" the representation of documents in different languages into the same embedding space. To address the challenges of data scarcity and imbalance, we introduce a knowledge distillation strategy. The teacher model is trained on rich English retrieval data, and by leveraging bi-text data, our distillation framework transfers its retrieval knowledge to the multilingual document encoder. Therefore, our approach does not require any multilingual retrieval training data. Extensive experiments on three MLIR datasets with a total of 15 languages demonstrate that KD-SPD significantly outperforms competitive baselines in all cases. We conduct extensive analyses to show that our method has less language bias and better zero-shot transfer ability towards new languages.

Introduction

As the digital landscape becomes increasingly global, the ability to retrieve information across a mosaic of languages is critical. While significant progress has been made in Cross-Lingual Information Retrieval (CLIR)—searching in one language for documents in another—the more complex task of Multilingual Information Retrieval (MLIR) remains a significant challenge. In MLIR, a single query must effectively navigate a collection containing documents in multiple languages simultaneously.

Existing state-of-the-art retrievers often struggle with MLIR due to two primary factors: data scarcity and language bias. Labeled retrieval data (query-document relevance pairs) is abundant for English but nearly non-existent for lower-resource languages. Furthermore, multilingual models often exhibit a "preference" for certain languages, assigning higher relevance scores to documents in high-resource languages even when the semantic content is identical to a low-resource counterpart. To overcome these hurdles, we introduce KD-SPD, a framework utilizing soft prompt decoding and knowledge distillation to create a fairer, more accurate multilingual search experience.

The KD-SPD Framework

KD-SPD (Knowledge Distillation - Soft Prompt Decoding) addresses the limitations of standard encoders through a two-pronged approach: a novel architecture and a data-efficient training strategy.

1. Soft Prompt Decoder (SPD)

Rather than relying on a standard encoder-only architecture, KD-SPD utilizes an encoder-decoder setup. The encoder (e.g., mBERT or XLM-R) processes the document, while the decoder employs "soft prompts" to project the document representation into a universal, language-agnostic embedding space.

These prompts are the core of the architecture. Each language's prompt matrix is decomposed into two components:

  • A Shared Matrix: Captures common semantic features across all languages.
  • A Low-Rank Language-Specific Matrix: Captures the unique grammatical and vocabulary nuances of a specific language.

This decomposition allows the model to share knowledge efficiently across the entire multilingual corpus while maintaining the necessary sensitivity to individual language traits.

2. Knowledge Distillation (KD)

To bypass the need for expensive multilingual labeled data, we employ a teacher-student distillation strategy. We utilize a high-performing, pre-trained monolingual English retriever (such as ANCE) as the teacher. The KD-SPD model acts as the student.

The student is trained to ensure that the embedding of a document in any language (e.g., Arabic or Indonesian) is as close as possible to the teacher's embedding of that document's English translation. This process requires only bitext data (parallel sentences), which is significantly more accessible than human-labeled retrieval pairs. By mapping all languages into a high-quality English embedding space, the retrieval logic is effectively transferred to the multilingual model.

Experimental Evaluation

We evaluated KD-SPD across three diverse benchmarks encompassing 15 languages:

  • CLEF: A classic collection featuring French, German, and Italian.
  • mTREC: A large-scale dataset (35M+ passages) covering Arabic, Chinese, Russian, and Indonesian.
  • LAReQA: A language-agnostic benchmark covering 11 languages.

For training, we utilized 60 million sentence pairs from the CCAligned dataset to perform the distillation process.

Key Results

KD-SPD demonstrated superior performance over competitive baselines, including mDPR and standard SBERT distillation methods:

  • Performance Gains: The model achieved a 20.2% improvement in Mean Average Precision (MAP) over mDPR and a 9.6% improvement over SBERT distillation.
  • Bias Reduction: In tests using parallel documents, KD-SPD showed the smallest rank distance and score variance between languages, indicating a significant reduction in language bias.
  • Zero-Shot Capability: The model generalized effectively to languages not seen during training. For instance, when tested on Finnish, KD-SPD outperformed all other models, demonstrating robust zero-shot transfer learning.

Conclusion and Future Work

KD-SPD provides a scalable solution for multilingual retrieval by leveraging the abundance of bitext data and the efficiency of soft prompt decoding. By "implicitly translating" mathematical representations rather than words, the model avoids the pitfalls of standard machine translation pipelines and reduces inherent language bias.

While the current framework relies on English as a bridge language, future research may explore using other high-resource languages as anchors. Additionally, the soft-prompt approach holds potential for expansion into multimodal retrieval—enabling cross-lingual searches for images and video—and other complex multilingual NLP tasks.

Summary updated

BibTeX
@inproceedings{huang2023soft,
  author = {Zhiqi Huang and Hansi Zeng and Hamed Zamani and James Allan},
  title = {{Soft Prompt Decoding for Multilingual Dense Retrieval}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591769},
}
Figure