Looking for Clues of Language in Multilingual BERT to Improve Cross-lingual Generalization
2020-10-20Code Available0· sign in to hype
Chi-Liang Liu, Tsung-Yuan Hsu, Yung-Sung Chuang, Chung-Yi Li, Hung-Yi Lee
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/Liangtaiwan/lang-reppytorch★ 2
Abstract
Token embeddings in multilingual BERT (m-BERT) contain both language and semantic information. We find that the representation of a language can be obtained by simply averaging the embeddings of the tokens of the language. Given this language representation, we control the output languages of multilingual BERT by manipulating the token embeddings, thus achieving unsupervised token translation. We further propose a computationally cheap but effective approach to improve the cross-lingual ability of m-BERT based on this observation.