On the Language-specificity of Multilingual BERT and the Impact of Fine-tuning

Publication date

2021-11

Authors

Tanti, M
van der Plas, L
Borg, C
Gatt, AlbertORCID 0000-0001-6388-8244ISNI 0000000048277966

Editors

Bastings, Jasmijn
Belinkov,, Yonatan
Dupoux, Emmanuel
Giulianelli, Mario
Hupkes, Dieuwke
Pinter, Yuval
Sajjad, Hassan

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

cc_by

Abstract

Recent work has shown evidence that the knowledge acquired by multilingual BERT (mBERT) has two components: a language-specific and a language-neutral one. This paper analyses the relationship between them, in the context of fine-tuning on two tasks – POS tagging and natural language inference – which require the model to bring to bear different degrees of language-specific knowledge. Visualisations reveal that mBERT loses the ability to cluster representations by language after fine-tuning, a result that is supported by evidence from language identification experiments. However, further experiments on ‘unlearning’ language-specific representations using gradient reversal and iterative adversarial learning are shown not to add further improvement to the language-independent component over and above the effect of fine-tuning. The results presented here suggest that the process of fine-tuning causes a reorganisation of the model’s limited representational capacity, enhancing language-independent representations at the expense of language-specific ones.

Keywords

multilinguality, transfer learning, natural language inference

Citation

Tanti, M, van der Plas, L, Borg, C & Gatt, A 2021, On the Language-specificity of Multilingual BERT and the Impact of Fine-tuning. in J Bastings, Y Belinkov, E Dupoux, M Giulianelli, D Hupkes, Y Pinter & H Sajjad (eds), Proceedings of the Fourth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, Punta Cana, Dominican Republic, pp. 214-227. https://doi.org/10.18653/v1/2021.blackboxnlp-1.15