Skip to main content
QUICK REVIEW

[Paper Review] Multi-Task Contrastive Learning for 8192-Token Bilingual Text Embeddings

Isabelle Mohr, Markus Krimmel|arXiv (Cornell University)|Feb 26, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper introduces a suite of state-of-the-art bilingual text embedding models for English and one target language (e.g., German, Spanish, Chinese), trained via a novel multi-task contrastive learning objective that jointly optimizes for semantic textual similarity (STS) and retrieval tasks. The models achieve superior performance on cross-lingual STS and retrieval benchmarks while using fewer parameters and supporting long contexts up to 8192 tokens, outperforming multilingual models in both target language and English tasks.

ABSTRACT

We introduce a novel suite of state-of-the-art bilingual text embedding models that are designed to support English and another target language. These models are capable of processing lengthy text inputs with up to 8192 tokens, making them highly versatile for a range of natural language processing tasks such as text retrieval, clustering, and semantic textual similarity (STS) calculations. By focusing on bilingual models and introducing a unique multi-task learning objective, we have significantly improved the model performance on STS tasks, which outperforms the capabilities of existing multilingual models in both target language understanding and cross-lingual evaluation tasks. Moreover, our bilingual models are more efficient, requiring fewer parameters and less memory due to their smaller vocabulary needs. Furthermore, we have expanded the Massive Text Embedding Benchmark (MTEB) to include benchmarks for German and Spanish embedding models. This integration aims to stimulate further research and advancement in text embedding technologies for these languages.

Motivation & Objective

  • To address the performance gap of multilingual models in low-resource target languages by introducing dedicated bilingual models for English and one other language.
  • To improve semantic textual similarity (STS) and cross-lingual retrieval performance through a novel multi-task contrastive learning objective.
  • To reduce model size and memory usage by eliminating unnecessary vocabulary for unused languages, improving efficiency.
  • To expand the Massive Text Embedding Benchmark (MTEB) with new evaluation sets for German and Spanish to enable standardized benchmarking.
  • To demonstrate that fine-tuning bilingual models on limited parallel data yields better performance than multilingual counterparts in both source and target languages.

Proposed method

  • The authors train dedicated bilingual backbone models for each language pair (e.g., de-en, es-en, zh-en) instead of relying on multilingual backbones.
  • A multi-task contrastive learning objective is introduced, combining a contrastive loss for retrieval with a correlation-based loss (Pearson) for STS tasks.
  • The STS loss is applied via a re-scaled cosine similarity loss using ground-truth scores in [0,1], optimizing for correlation between predicted and true similarity.
  • The models are fine-tuned in three stages: initial pre-training on monolingual data, then retrieval fine-tuning, followed by multi-task STS and retrieval tuning.
  • The architecture supports long context lengths up to 8192 tokens, leveraging the same long-context transformer design used in prior work.
  • Evaluation is conducted on the MTEB benchmark, with new datasets added for German and Spanish to ensure robust cross-lingual evaluation.

Experimental results

Research questions

  • RQ1Can dedicated bilingual models outperform multilingual models in both English and target language STS and retrieval tasks?
  • RQ2Does a multi-task contrastive learning objective that jointly optimizes for STS and retrieval improve performance on semantic similarity tasks?
  • RQ3To what extent does training on limited parallel data with a dedicated bilingual backbone reduce model size while maintaining or improving performance?
  • RQ4How does the performance of bilingual models compare to multilingual models when fine-tuned on a small number of language pairs?
  • RQ5Can the integration of new language-specific benchmarks (e.g., for German and Spanish) improve standardization and reproducibility in text embedding evaluation?

Key findings

  • The bilingual models achieve a Spearman correlation of 0.893 on the STS17 German benchmark, outperforming multilingual models like mBERT and XLM-RoBERTa.
  • For Spanish, the model reaches a Spearman correlation of 0.886 on STS17, demonstrating strong cross-lingual performance.
  • The multi-task learning variant using Pearson correlation loss achieves the highest STS performance, outperforming both MSE and no-STS baselines, especially on in-domain STS datasets.
  • On the English average MTEB score, the bilingual models achieve 0.759 (Pearson) and 0.764 (MSE), outperforming multilingual models in both target and English tasks.
  • The models achieve state-of-the-art performance on cross-lingual retrieval and STS tasks while using significantly fewer parameters than multilingual alternatives due to reduced vocabulary size.
  • The ablation study confirms that bilingual models fine-tuned on limited data consistently outperform multilingual models on both target and English tasks, validating the core hypothesis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.