Abstract
Pretrained multilingual text encoders based on neural Transformer architectures, such as multilingual BERT (mBERT) and XLM, have revolutionized natural language processing, effectively rendering traditional cross-lingual word embeddings (CLWEs) obsolete for many tasks. However, their performance in unsupervised settings—specifically for ad-hoc cross-lingual information retrieval (CLIR)—remains a critical area of inquiry. This study presents a systematic empirical evaluation of state-of-the-art multilingual encoders across document and sentence retrieval tasks. Our findings reveal a significant performance gap: while specialized encoders excel at sentence-level retrieval, general-purpose Transformers often fail to outperform simpler CLWE-based models in unsupervised document-level retrieval.
Introduction
Cross-lingual Information Retrieval (CLIR) is the process of retrieving relevant documents in a target language (e.g., Italian) based on a query formulated in a source language (e.g., English). The ideal implementation of CLIR is unsupervised, requiring no human-labeled relevance judgments for fine-tuning.
For years, the standard approach relied on Cross-Lingual Word Embeddings (CLWEs), which align static word vectors into a shared vector space. The recent shift toward massive pretrained Transformers promised improved performance due to their ability to capture context. However, this study investigates whether these "off-the-shelf" models truly surpass their predecessors in unsupervised retrieval across different granularities and diverse language pairs.
Methodology
To evaluate the efficacy of current models, the study compares four distinct families of approaches:
- Static Baselines (Proc-B): A method that aligns fastText embeddings using a bilingual dictionary and the Procrustes algorithm.
- General-Purpose Encoders (mBERT and XLM): These models were tested using three feature extraction strategies:
- ISO (Isolation): Treating the Transformer as a static dictionary by feeding words individually.
- AOC (Average-Over-Contexts): Averaging a word's representation across multiple Wikipedia contexts to capture a more robust "average" meaning.
- SEMB (Direct Embedding): Directly encoding the entire query or document to utilize internal representations.
- Specialized Sentence Encoders: Models specifically trained to align sentence-level meanings, including LASER, m-USE, LaBSE, and DISTIL.
- MT-IR: A "translate-then-retrieve" baseline utilizing Google Translate to convert queries before performing standard monolingual retrieval.
Experimental Setup
The evaluation was conducted across nine language pairs involving English (EN), German (DE), Italian (IT), Finnish (FI), and Russian (RU) using two primary benchmarks:
- Document-Level Retrieval: The CLEF 2003 benchmark, featuring collections ranging from 17,000 to 295,000 documents.
- Sentence-Level Retrieval: Parallel sentences sampled from Europarl, requiring the system to identify the exact translation of a source sentence among 100,000 candidates.
Key Insights and Results
The Document-Level Performance Gap
One of the most striking findings is that general-purpose Transformers are surprisingly mediocre at document-level retrieval. In many unsupervised scenarios, these models fail to outperform the Proc-B baseline. This "document gap" is likely due to the strict input truncation limits of Transformers (typically 512 tokens), which causes the model to lose vital information that simpler word-aggregation methods retain.
The Importance of Context and Specialization
For mBERT and XLM, the AOC strategy significantly outperformed the ISO strategy, confirming that the contextual nature of these models is a strength, even if we lack the optimal method for condensing that context for long-form retrieval.
At the sentence level, specialized models like LASER and LaBSE achieved near-perfect Mean Average Precision (MAP) scores (above 0.95). However, it is important to note that these models are effectively supervised, as they were trained on massive parallel translation corpora. In contrast, "off-the-shelf" mBERT and XLM struggled significantly with sentence retrieval, often scoring below 0.50.
Layer Selection and Translation Baselines
The study found that the best retrieval information is often located in the middle layers of a Transformer (e.g., layer 9 for mBERT) rather than the final layer. Furthermore, the MT-IR baseline remains a formidable opponent; for high-resource languages like English-Italian, simply translating the query often yields the best results.
Conclusion and Future Work
The transition from static embeddings to Transformers has not yet yielded a universal victory for unsupervised document-level CLIR. The limitations of current architectures—specifically regarding document truncation and the granularity mismatch between sentence-level pretraining and document-level matching—remain significant hurdles.
Future research should explore the application of "Longformers" or models designed for long-range dependencies, such as BigBird, in a cross-lingual context. Additionally, addressing the performance variance in lower-resource languages, such as Finnish, remains a priority for developing truly global retrieval systems.
Summary updated