Improving Pretrained Cross-Lingual Language Models via Self-Labeled Word Alignment

Zewen Chi, Li Dong, Bo Zheng, Shaohan Huang, Xian-Ling Mao, Heyan Huang, Furu Wei

Introduction

In the landscape of Natural Language Processing (NLP), cross-lingual language models (PrLMs) have become pivotal for extending high-performance capabilities from high-resource languages like English to a broader spectrum of global languages. While state-of-the-art models such as XLM-R excel at capturing sentence-level semantic equivalence across languages, they often lack precision in word-level correspondence. This "fine-grained" alignment is crucial for token-level tasks like Named Entity Recognition (NER) and Question Answering (QA).

To address this, researchers from Microsoft and the Beijing Institute of Technology proposed XLM-ALIGN. This model introduces a novel pre-training objective, Denoising Word Alignment (DWA), which enables the model to self-induce and refine word-level alignments without relying on external alignment tools or gold-standard labels.

The Denoising Word Alignment Framework

The core of XLM-ALIGN is an Expectation-Maximization (EM) style framework designed to learn cross-lingual representations through iterative self-labeling and denoising.

1. Self-Labeling (The E-Step)

In the E-step, the model generates alignment labels for a pair of parallel sentences. Rather than simple similarity matching, the authors frame word alignment as an Optimal Transport problem. By calculating the cosine similarity between all token pairs and applying the Sinkhorn algorithm, the model produces a doubly stochastic matrix. This matrix represents the most efficient mapping of meaning between the two languages, serving as a high-quality "self-labeled" ground truth for the subsequent step.

2. Denoising (The M-Step)

In the M-step, the model learns to recover these alignments under noise. Tokens in the parallel sentences are randomly masked. A Pointer Network is then employed to predict the alignment: given a masked token's position (the query), the network must "point" to the corresponding aligned token in the other language (the keys). This process forces the model to leverage cross-lingual context to resolve word-level mappings.

The XLM-ALIGN framework: (a) Word alignment self-labeling via Optimal Transport and (b) Denoising word alignment using a Pointer Network.

Experimental Results

XLM-ALIGN was pre-trained on a massive corpus including CCNet and Wikipedia, covering 94 languages, and fine-tuned on the XTREME benchmark.

Performance on Downstream Tasks

The model demonstrated significant improvements over the XLM-R baseline, particularly in token-level and structured prediction tasks. As shown in the table below, XLM-ALIGN achieved an average score of 68.9 on XTREME, outperforming XLM-R base (66.4). The gains were most pronounced in Question Answering datasets like TyDiQA (+6.7 F1) and XQuAD (+2.8 F1), where precise token localization is paramount.

Performance comparison of XLM-ALIGN against other state-of-the-art cross-lingual models on the XTREME benchmark.

Alignment Quality and Layer Analysis

Beyond downstream task performance, XLM-ALIGN significantly improves intrinsic word alignment. It reduced the Alignment Error Rate (AER) across multiple language pairs (e.g., en-de, en-fr) compared to specialized unsupervised tools like SimAlign.

An interesting architectural insight is that while standard PrLMs typically see a degradation in alignment quality in their upper layers, XLM-ALIGN maintains high-quality alignment information throughout the entire network. This suggests that the DWA objective effectively embeds cross-lingual structural knowledge into the final representations used for downstream fine-tuning.

Conclusion and Future Directions

XLM-ALIGN represents a significant step forward in cross-lingual pre-training by making word alignment an explicit, self-supervised task. By integrating Optimal Transport for self-labeling and Pointer Networks for denoising, the model achieves superior transfer performance on complex token-level tasks.

Currently, the model requires a "cold start" from a pre-trained XLM-R checkpoint to initialize the EM loop effectively. Future research will explore methods to learn these alignments from scratch and expand the training beyond English-centric parallel data to further enhance global cross-lingual transfer.

Summary updated

BibTeX
@inproceedings{chi2021improving,
  author = {Zewen Chi and Li Dong and Bo Zheng and Shaohan Huang and Xian-Ling Mao and Heyan Huang and Furu Wei},
  title = {{Improving Pretrained Cross-Lingual Language Models via Self-Labeled Word Alignment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.265},
}
Figure