Explaining Contextualization in Language Models using Visual Analytics.

Publication date

2021

Authors

Sevastjanova, Rita
Kalouli, Aikaterini-Lida
Beck, Christin
Hauptmann, HannaORCID 0000-0002-6840-5341ISNI 0000000507309761
El-Assady, Mennatallah

Editors

Zong, Chengqing
Xia, Fei
Li, Wenjie
Navigli, Roberto

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

cc_by

Abstract

Despite the success of contextualized language models on various NLP tasks, it is still unclear what these models really learn. In this paper, we contribute to the current efforts of explaining such models by exploring the continuum between function and content words with respect to contextualization in BERT, based on linguistically-informed insights. In particular, we utilize scoring and visual analytics techniques: we use an existing similarity-based score to measure contextualization and integrate it into a novel visual analytics technique, presenting the model's layers simultaneously and highlighting intra-layer properties and inter-layer differences. We show that contextualization is neither driven by polysemy nor by pure context variation. We also provide insights on why BERT fails to model words in the middle of the functionality continuum.

Keywords

Software, Computational Theory and Mathematics, Linguistics and Language, Language and Linguistics

Citation

Sevastjanova, R, Kalouli, A-L, Beck, C, Schäfer, H & El-Assady, M 2021, Explaining Contextualization in Language Models using Visual Analytics. in C Zong, F Xia, W Li & R Navigli (eds), Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). Association for Computational Linguistics, pp. 464-476. https://doi.org/10.18653/v1/2021.acl-long.39