Abstract
Haoyang Huang, Yaobo Liang, Nan Duan, Ming Gong, Linjun Shou, Daxin Jiang, Ming Zhou. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
2019.
Introduction
In the field of Natural Language Processing (NLP), bridging the gap between high-resource languages like English and low-resource languages remains a significant challenge. While models like BERT and XLM have pioneered cross-lingual understanding, they often rely on simple masked language modeling. This paper introduces Unicoder, a universal language encoder designed to create more robust cross-lingual representations by diversifying the pre-training objectives. Unicoder aims for effective "zero-shot" transfer, where a model trained on English data can be applied to dozens of other languages with minimal performance loss.
The Unicoder Framework
Unicoder utilizes a 12-layer Transformer architecture. Its primary innovation lies in the use of five distinct pre-training tasks that capture cross-lingual mappings at the word, sentence, and document levels.
The five tasks are:
- Masked Language Model (MLM): Standard BERT-style prediction of hidden words within a single language.
- Translation Language Model (TLM): Predicting hidden words in concatenated parallel sentence pairs (e.g., English paired with its Chinese translation).
- Cross-lingual Word Recovery (XWR): A novel task where the model reconstructs a sentence in one language using word embeddings from its translation, guided by an attention matrix. This forces precise word-level alignment.
- Cross-lingual Paraphrase Classification (XPC): A binary classification task to determine if two sentences in different languages are semantically equivalent.
- Cross-lingual Masked Language Model (CMLM): MLM applied to "cross-lingual documents" formed by interleaving sentences and their translations, helping the model learn long-range context across language boundaries.
Experimental Setup
The model was pre-trained on Wikipedia data across 15 languages and massive parallel corpora including MultiUN and OpenSubtitles. Evaluation was conducted on:
- XNLI (Cross-lingual Natural Language Inference): The standard benchmark for cross-lingual sentence relationship understanding.
- XQA (Cross-lingual Question Answering): A new benchmark introduced by the authors to test answer identification across English, French, and German.
Key Insights and Results
The authors found that the diversity of tasks is crucial. Specifically, ablation studies highlighted the Cross-lingual Word Recovery (XWR) task as a major contributor to performance, as it tightly aligns the vector spaces of different languages.
Unicoder achieved state-of-the-art results:
- XNLI: An average accuracy of 78.5% across 15 languages, outperforming XLM by 1.8%.
- XQA: An average improvement of 5.5% over XLM.
- Multi-language Fine-tuning: The authors demonstrated that training on a mix of English and machine-translated data in other languages simultaneously acts as a "force multiplier," significantly boosting zero-shot performance.
Conclusion and Future Work
Unicoder demonstrates that multi-faceted pre-training objectives can significantly improve universal language encoding. However, the model's reliance on parallel corpora remains a limitation for extremely low-resource languages. Future research may focus on achieving similar alignment through unsupervised objectives to further scale cross-lingual capabilities.
Reference: Huang, H., et al. (2019). Unicoder: A Universal Language Encoder by Pre-training with Multiple Cross-lingual Tasks. Proceedings of EMNLP-IJCNLP 2019.
Summary updated