NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unsupervised Context Aware Sentence Representation Pretraining for Multi-lingual Dense Retrieval

Ning Wu, Yaobo Liang, Houxing Ren, Linjun Shou, Nan Duan, Ming Gong, Daxin Jiang

Abstract

Traditional approaches to multilingual dense retrieval rely heavily on parallel corpora—datasets containing exact translations of sentences across multiple languages. This dependency creates significant bottlenecks for low-resource languages and introduces an English-centric bias. This paper introduces Contrastive Context Prediction (CCP), a novel pretraining method that leverages monolingual data to learn high-quality multilingual sentence representations. By training models to identify neighboring sentences within a single language, CCP creates isomorphic embedding spaces that can be aligned across languages without the need for translated data. Our results demonstrate that CCP achieves state-of-the-art performance on benchmarks like Tatoeba, XOR Retrieve, and Mr.TYDI, often outperforming models trained on supervised parallel data.

Introduction

In the field of Dense Retrieval, search engines map queries and documents into a shared vector space to identify relevant matches based on semantic similarity. While effective, scaling these systems to a global context is challenging. Current top-tier models, such as LaBSE or InfoXLM, are typically pretrained on massive parallel corpora. This reliance presents two primary issues: first, parallel data is scarce for many of the world's languages; second, the predominance of English-to-X translation pairs limits the model's ability to transfer knowledge directly between non-English language pairs.

To address these limitations, we propose a method to build a powerful multilingual retriever using only monolingual data. The core hypothesis is that the semantic structure of context is universal; by learning how sentences relate to their neighbors in one language, a model can capture deep semantic patterns that are consistent across all human languages.

Methodology: Contrastive Context Prediction (CCP)

The primary innovation of this work is the Contrastive Context Prediction (CCP) framework. Instead of aligning a sentence with its translation, the model treats a "center sentence" from a document as a query and its immediate neighbors as the targets. The model must identify these neighbors from a pool of thousands of negative samples.

Technical Guardrails

To ensure the model learns meaningful semantics rather than statistical shortcuts, three key technical components were implemented:

  1. Language-Specific Memory Banks: To prevent the model from simply identifying language clusters, it only compares sentences against others within the same language during the training phase. This forces the model to focus on intra-language semantic relationships.
  2. Asymmetric Batch Normalization: Contrastive learning models are prone to "information leakage," where they exploit internal statistical patterns to solve the task. Asymmetric batch normalization forces the model to learn more robust, generalized representations by varying the processing of different data segments.
  3. Cross-lingual Calibration: While the embedding spaces for different languages become "isomorphic" (identically shaped) through CCP, they may still be shifted or rotated relative to one another. A post-processing calibration step—involving shifting, scaling, and rotating—is used to align these distinct spaces into a single, unified multilingual space.

Experimental Setup

The model was pretrained on a cleaned version of Common Crawl, encompassing 2,500GB of text across 108 languages. Evaluation was conducted across three major benchmarks:

  • Tatoeba: A sentence-level translation retrieval task covering 112 languages.
  • XOR Retrieve: A cross-lingual retrieval task requiring the system to find English answers to questions posed in various target languages.
  • Mr.TYDI: A benchmark for monolingual retrieval across 11 typologically diverse languages.

Key Insights and Results

The Power of Isomorphism

Our research confirms that training models to understand context in different languages independently results in remarkably similar semantic maps. This isomorphism suggests that context is a universal signal, allowing for high-quality cross-lingual transfer without explicit translation signals.

Performance Metrics

CCP demonstrated superior performance across several categories:

  • State-of-the-Art Unsupervised Retrieval: CCP set new records for methods that do not utilize bilingual data.
  • Superior Non-English Transfer: Unlike English-centric models like LaBSE, CCP showed significantly better transferability between non-English pairs (e.g., German to Italian).
  • Competitive with Supervised Models: In the XOR Retrieve and Mr.TYDI tasks, CCP achieved results that rivaled or exceeded models trained on expensive, human-curated bilingual datasets.

Limitations and Future Work

Despite its success, CCP faces challenges related to hardware constraints; the contrastive task is highly sensitive to batch size, and performance is expected to scale further with increased GPU memory. Additionally, performance varied across specific languages—such as Bengali—indicating that certain linguistic structures may require more specialized contextual tuning. Future research will explore more complex contextual relationships beyond immediate neighboring sentences to further enrich the embedding space.

Conclusion

Contrastive Context Prediction represents a significant shift in multilingual dense retrieval. By moving away from a reliance on parallel data and focusing on the universal signal of monolingual context, we can create more inclusive and effective retrieval systems for a wider array of global languages.

Summary updated

BibTeX
@inproceedings{wu2022unsupervised,
  author = {Ning Wu and Yaobo Liang and Houxing Ren and Linjun Shou and Nan Duan and Ming Gong and Daxin Jiang},
  title = {{Unsupervised Context Aware Sentence Representation Pretraining for Multi-lingual Dense Retrieval}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/612},
}
Figure