Lune

ACL2021Top-tier venue

Explaining Contextualization in Language Models using Visual Analytics

Rita Sevastjanova, Aikaterini-Lida Kalouli, Christin Beck, Hanna Schäfer, Mennatallah El-Assady

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. * Contribution to the visualization part. to the computational linguistics part.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Visual Comparison of Language Model Adaptation cites Probing Natural Language Inference Models through Semantic Fragments
  • Visual Comparison of Language Model Adaptation cites Attention Flows: Analyzing and Comparing Attention Mechanisms in Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Visual Comparison of Language Model AdaptationRita Sevastjanova, Eren Cakmak, Shauli Ravfogel, Ryan Cotterell et al.IEEE VIS 2022 · 16 citations

Builds on3

  1. Probing Natural Language Inference Models through Semantic FragmentsKyle Richardson, Hai Hu, Lawrence S. Moss, Ashish SabharwalAAAI 2020 · 152 citations
  2. Attention Flows: Analyzing and Comparing Attention Mechanisms in Language ModelsJoseph F. DeRose, Jiayao Wang, Matthew BergerIEEE VIS 2020 · 109 citations
  3. Finding Universal Grammatical Relations in Multilingual BERTEthan A. Chi, John Hewitt, Christopher D. ManningACL 2020 · 7 citations

Related papers

  1. Quantifying the Contextualization of Word Representations with Semantic Class ProbingMengjie Zhao, Philipp Dufter, Yadollah Yaghoobzadeh, Hinrich SchützeEMNLP Findings 2020 · 13 citations
  2. What's so special about BERT's layers? A closer look at the NLP pipeline in monolingual and multilingual modelsWietse de Vries, Andreas van Cranenburgh, Malvina NissimEMNLP Findings 2020 · 58 citations
  3. Isotropy in the Contextual Embedding Space: Clusters and ManifoldsXingyu Cai, Jiaji Huang, Yuchen Bian, Kenneth ChurchICLR 2021 · 50 citations
  4. Variational Language Concepts for Interpreting Foundation Language ModelsHengyi Wang, Shiwei Tan, Zhiqing Hong, Desheng Zhang et al.EMNLP Findings 2024
  5. Global Explainability of BERT-Based Evaluation Metrics by Disentangling along Linguistic FactorsMarvin Kaster, Wei Zhao, Steffen EgerEMNLP 2021 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines