[Paper Review] Explicit Alignment Objectives for Multilingual Bidirectional Encoders
This paper introduces amber, a multilingual bidirectional encoder that explicitly aligns cross-lingual representations using two novel objectives: word-level attention alignment and sentence-level contrastive learning on parallel data. Despite having only 1/3.2 the parameters and 1/23.8 the monolingual training data of XLM-R-large, amber achieves state-of-the-art zero-shot cross-lingual transfer performance, with gains of up to 1.1 F1 on POS tagging and 27.3 accuracy on sentence retrieval.
Pre-trained cross-lingual encoders such as mBERT (Devlin et al., 2019) and XLMR (Conneau et al., 2020) have proven to be impressively effective at enabling transfer-learning of NLP systems from high-resource languages to low-resource languages. This success comes despite the fact that there is no explicit objective to align the contextual embeddings of words/sentences with similar meanings across languages together in the same space. In this paper, we present a new method for learning multilingual encoders, AMBER (Aligned Multilingual Bidirectional EncodeR). AMBER is trained on additional parallel data using two explicit alignment objectives that align the multilingual representations at different granularities. We conduct experiments on zero-shot cross-lingual transfer learning for different tasks including sequence tagging, sentence retrieval and sentence classification. Experimental results show that AMBER obtains gains of up to 1.1 average F1 score on sequence tagging and up to 27.3 average accuracy on retrieval over the XLMR-large model which has 3.2x the parameters of AMBER. Our code and models are available at http://github.com/junjiehu/amber.
Motivation & Objective
- To address the lack of explicit cross-lingual alignment in multilingual encoders trained via masked language modeling alone.
- To improve zero-shot cross-lingual transfer performance by incorporating supervision from parallel corpora during pretraining.
- To enhance alignment at both word and sentence levels using attention consistency and contrastive learning.
- To demonstrate that small amounts of parallel data can significantly outperform large-scale monolingual pretraining for cross-lingual transfer.
- To show that explicit alignment objectives lead to better generalization across diverse NLP tasks in low-resource settings.
Proposed method
- Introduces a word-level alignment objective based on attention consistency between source-to-target and target-to-source attention matrices, inspired by machine translation literature.
- Applies a sentence-level contrastive learning objective that encourages the model to predict the correct translation within a mini-batch of sentence pairs.
- Trains the model using a combination of masked language modeling (MLM), translation language modeling (TLM), word alignment (WA), and sentence alignment (SA) objectives.
- Uses separate encoding of source and target sentences for sentence-level alignment, with final-layer representations averaged to form sentence embeddings.
- Employs a contrastive loss over the cosine similarity between source and target sentence embeddings to optimize alignment.
- Trains on 26GB of parallel data and 80GB of monolingual Wikipedia data, with the final model being significantly smaller than XLM-R-large.
Experimental results
Research questions
- RQ1Can explicit alignment objectives at the word and sentence levels improve zero-shot cross-lingual transfer in multilingual encoders?
- RQ2How does the performance of a smaller model with explicit alignment compare to a much larger model trained on vastly more monolingual data?
- RQ3Does incorporating parallel data during pretraining lead to better cross-lingual representation alignment than relying solely on masked language modeling?
- RQ4To what extent do the proposed alignment objectives improve performance across diverse NLP tasks like POS tagging, sentence retrieval, and paraphrase classification?
- RQ5How does the performance gain vary across languages with different amounts of parallel training data?
Key findings
- amber achieves a 1.1 absolute F1 score gain on average over XLM-R-large in zero-shot POS tagging, despite having only 1/3.2 the parameters.
- On sentence retrieval, amber achieves a 27.3 average accuracy gain over XLM-R-large, demonstrating superior alignment with minimal data.
- The full model with all objectives (MLM+TLM+WA+SA) achieves 87.9% accuracy on the Tatoeba sentence retrieval benchmark, outperforming XLM-R-large by 27.3 points.
- Even with only 26GB of parallel data, amber surpasses XLM-R-large, which is trained on 2.5TB of monolingual CommonCrawl data.
- The performance gain is most pronounced in low-resource languages, particularly those with limited parallel data, indicating strong generalization.
- The ablation study shows that both word-level and sentence-level alignment objectives contribute significantly, with the sentence-level objective providing the largest improvement.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.