Explicit Alignment Objectives for Multilingual Bidirectional Encoders

Junjie Hu, Melvin Johnson, Orhan Firat, Aditya Siddhant, Graham Neubig

Abstract

Multilingual pre-trained models typically rely on implicit alignment from massive monolingual corpora. We present AMBER (Aligned Multilingual Bidirectional EncodeR), which incorporates explicit word-level and sentence-level alignment objectives. AMBER demonstrates that targeted alignment strategies can outperform significantly larger models trained on orders of magnitude more data, particularly in zero-shot cross-lingual transfer for low-resource languages.

Introduction

Zero-shot transfer in multilingual models like mBERT and XLM-R relies on the assumption that models implicitly learn cross-lingual mappings from monolingual text. However, this "weak" alignment often requires massive datasets (e.g., 2.5TB for XLM-R) to be effective. AMBER addresses this by introducing explicit alignment signals during pre-training, creating a shared representation space where meanings are directly anchored across languages.

Methods

AMBER enhances the standard Masked Language Modeling (MLM) and Translation Language Modeling (TLM) with two additional objectives:

Sentence Alignment (SA)

Using a dual-encoder architecture, AMBER processes parallel sentence pairs and applies a contrastive loss. This forces the vector representation of a sentence in one language to be closer to its translation than to other sentences in the batch.

Bidirectional Word Alignment (WA)

This objective focuses on the attention mechanisms of the model's top layer. It encourages bidirectional consistency: if an English word attends to a specific French word, the French word should reciprocate. A masking strategy is employed to prevent the model from exploiting positional correlations.

The Word-Alignment and Sentence-Alignment architectures used in AMBER.

Evaluation

AMBER was pre-trained on 104 languages using Wikipedia (80GB) and parallel corpora (26GB). We evaluated performance on the XTREME benchmark, focusing on syntactic (POS tagging), semantic (PAWS-X, XNLI), and retrieval (Tatoeba) tasks.

Results and Discussion

Data and Parameter Efficiency

Despite having only 172M parameters and being trained on ~100GB of data, AMBER outperforms XLM-R-large (550M parameters, 2.5TB data) on several benchmarks. This highlights that the quality and method of utilizing parallel data are as critical as the sheer volume of data.

Impact on Low-Resource Languages

The explicit alignment objectives provide the most substantial benefits for low-resource languages. As shown in the figures below, AMBER achieves significant accuracy and F1 gains in languages like Swahili (sw) and Turkish (tr), where implicit alignment typically struggles due to data sparsity.

Performance improvements across languages, demonstrating the effectiveness of explicit alignment for low-resource languages.

Task-Specific Gains

Ablation studies show that WA is particularly effective for syntactic tasks (POS), while SA drives massive improvements in sentence retrieval, yielding a +27.3 average accuracy gain over XLM-R-large on the Tatoeba task.

Conclusion

AMBER demonstrates the power of explicit alignment in multilingual modeling. By anchoring representations at both the word and sentence levels, it achieves state-of-the-art performance with high efficiency. Future research will explore refining subword alignment and preventing alignment degradation during task-specific fine-tuning.

Summary updated

BibTeX
@inproceedings{hu2021explicit,
  author = {Junjie Hu and Melvin Johnson and Orhan Firat and Aditya Siddhant and Graham Neubig},
  title = {{Explicit Alignment Objectives for Multilingual Bidirectional Encoders}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.284},
}
Figure