Abstract
Zero-shot cross-lingual transfer remains a significant challenge in natural language processing, as multilingual models often fail to perfectly align representations across different languages. This paper introduces the Word-Exchange Aligning Model (WEAM), a pre-training strategy designed to improve cross-lingual alignment by explicitly swapping representations between parallel sentences. By integrating statistical word alignment with deep contextual modeling, WEAM ensures that both static embeddings and contextual representations are interchangeable across languages, leading to superior performance in zero-shot tasks.
Introduction
Large-scale multilingual models such as mBERT and XLM-R have set new benchmarks for cross-lingual NLP. However, these models are typically pre-trained on massive monolingual datasets, which can lead to poorly aligned internal representations. For instance, the vector for a word in English may not reside in the same semantic neighborhood as its direct translation in German. This misalignment is a primary bottleneck for zero-shot transfer, where a model trained on a source language (e.g., English) is expected to perform immediately on a target language without additional fine-tuning.
While existing techniques like the Translation Language Model (TLM) utilize parallel data to improve contextual alignment, they often overlook the alignment of the base embedding layer. WEAM addresses this by forcing alignment at both the input (static) and output (contextual) levels of the Transformer architecture.
Methodology
The WEAM framework employs a two-pronged pre-training strategy to bridge the linguistic gap:
- Prior Knowledge Acquisition: The model utilizes FastAlign, a statistical tool, to generate a word-level alignment matrix from parallel bilingual corpora. This provides a strong prior for which words in one language correspond to words in another.
- Multilingual Prediction: Following standard BERT-like objectives, the model masks tokens in bilingual sentence pairs and attempts to predict them based on the surrounding context.
- Cross-lingual Prediction (Word-Exchange): This is the core innovation. During pre-training, the model uses the alignment matrix to swap the representation of a masked word with the representation of its translated counterpart from the parallel sentence.
By requiring the model to recover an English word using a German representation (and vice versa), WEAM effectively "tricks" the network into making these representations interchangeable in vector space. This process aligns the static embeddings at the bottom layer with the contextual representations at the top layer.
Experimental Setup
The researchers pre-trained WEAM using parallel corpora for English-Chinese, English-German, and English-Spanish, primarily sourced from Europarl. The model was evaluated on two major benchmarks:
- MLQA (MultiLingual Question Answering): A task for extractive machine reading comprehension.
- XNLI (Cross-lingual Natural Language Inference): A sentence-level classification task to determine entailment, contradiction, or neutrality.
Key Results
WEAM consistently outperformed vanilla mBERT and the TLM baseline across all tested languages and tasks.
In the MLQA benchmark, WEAM achieved an average F1 score of 66.2, significantly higher than mBERT (61.0) and mBERT+TLM (64.6). Notably, WEAM's zero-shot performance on MLQA even surpassed the "Translate-Train" baseline—a high bar where models are trained on machine-translated data.
On the XNLI benchmark, WEAM reached an average accuracy of 75.1%, representing a substantial improvement over the 71.6% achieved by vanilla mBERT.
Discussion and Insights
The success of WEAM highlights several critical insights for cross-lingual modeling:
- Root Alignment: Aligning the "input" static embeddings is just as vital as aligning the "output" contextual layers for robust transfer.
- Statistical Guidance: Using "cheap" statistical alignment as a prior provides a more stable and effective training signal than relying on the model to discover alignments autonomously.
- Conceptual Interchangeability: The Word-Exchange mechanism treats translations as functional synonyms, forcing the model to achieve a higher level of language-independent conceptualization.
Limitations and Future Work
While effective, WEAM currently requires parallel corpora, which may be scarce for low-resource languages. Additionally, the current study trained models for specific language pairs to avoid "alignment interference." Future research will focus on scaling this method to dozens of languages simultaneously and applying the Word-Exchange principle to larger architectures like XLM-R.
Summary updated