Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation

Nils Reimers, Iryna Gurevych

Introduction

Mapping sentences to a dense vector space is a fundamental requirement for modern NLP tasks such as semantic search, clustering, and information retrieval. While high-quality monolingual models like Sentence-BERT (SBERT) exist for English, most other languages lack the large-scale labeled datasets (e.g., SNLI or STSb) necessary to train comparable embeddings. Existing multilingual solutions, such as LASER or the multilingual Universal Sentence Encoder (mUSE), often struggle to balance translation accuracy with general semantic similarity. This paper proposes a "teacher-student" distillation approach to transfer the semantic knowledge of English models to any other language with minimal computational overhead.

Methodology: Multilingual Knowledge Distillation

The core of the proposed method is a distillation process involving two models: a pre-trained English Teacher ($M$) and a multilingual Student transformer ($\hat{M}$), such as XLM-RoBERTa.

The Multilingual Knowledge Distillation training setup

The training objective utilizes parallel corpora. Given a source sentence $s$ in English and its translation $t$ in a target language, the student is trained to minimize the Mean Squared Error (MSE) loss between its own embeddings and the teacher's embeddings. Specifically, the student must learn to map both $s$ and $t$ to the same vector space defined by the teacher: $\hat{M}(s) \approx M(s)$ and $\hat{M}(t) \approx M(s)$. This alignment forces the student to inherit the teacher's semantic logic, creating a unified, language-agnostic vector space.

Datasets and Evaluation

The authors leveraged diverse parallel corpora to ensure broad coverage, including GlobalVoices, NewsCommentary, WikiMatrix, and TED2020. For low-resource scenarios, bilingual dictionaries from MUSE and Wikititles were employed. Performance was evaluated using the Semantic Textual Similarity (STS) 2017 dataset, the BUCC bitext retrieval task, and the Tatoeba similarity search benchmark.

Key Results

The distilled models demonstrate significant performance gains over established baselines. On multilingual STS tasks, the distilled XLM-R models consistently outperformed LASER and mUSE.

Comparison of distilled models against baselines on cross-lingual STS tasks

As shown in the evaluation results, the distillation method allows models to achieve much higher Spearman correlation scores across various language pairs (e.g., EN-DE, EN-FR). Notably, the method is highly effective for low-resource languages, with accuracy improvements of up to 40 points on the Tatoeba test set compared to LASER. Furthermore, the training process is efficient, requiring only a single GPU and significantly less time than training models like mUSE from scratch.

Discussion and Insights

A primary advantage of this approach is semantic inheritance: the student model learns the underlying "notion" of similarity from the teacher. If the teacher recognizes similarity between two English concepts, the student automatically applies that logic to their translated counterparts. This decoupling allows researchers to optimize for a single language and then extend that performance to dozens of others.

However, the method is inherently dependent on the quality of the teacher model; any biases or limitations in the English teacher will be transferred to the multilingual student. Additionally, while the method works with dictionaries, high-quality parallel sentence data remains the gold standard for optimal performance.

Conclusion

By utilizing knowledge distillation, the authors provide a scalable and efficient way to create high-performance multilingual sentence embeddings. The resulting models support over 50 languages and have been integrated into the widely-used sentence-transformers library, facilitating broad adoption in the NLP community.

Summary updated

BibTeX
@inproceedings{reimers2020making,
  author = {Nils Reimers and Iryna Gurevych},
  title = {{Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.365},
}
Figure