Where exactly does contextualization in a PLM happen?
Preprint
Abstract
Pre-trained Language Models (PLMs) have shown to be consistently successful in a plethora of NLP tasks due to their ability to learn contextualized representations of words (Ethayarajh, 2019). BERT (Devlin et al., 2018), ELMo (Peters et al., 2018) and other PLMs encode word meaning via textual context, as opposed to static word embeddings, which encode all meanings of a word in a single vector representation. In this work, we present a study that aims to localize where exactly in a PLM word contextualization happens. In order to find the location of this word meaning transformation, we investigate representations of polysemous words in the basic BERT uncased 12 layer architecture (Devlin et al., 2018), a masked language model trained on an additional sentence adjacency objective, using qualitative and quantitative measures.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- ColBERT2020
- Quantifying the Contextualization of Word Representations with Semantic Class Probing2020
- Unsupervised Distillation of Syntactic Information from Contextualized Word Representations2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddings2019
- Blackbox Meets Blackbox: Representational Similarity & Stability Analysis of Neural Language Models and Brains2019
- From Balustrades to Pierre Vinken: Looking for Syntax in Transformer Self-Attentions2019
- What Does BERT Look at? An Analysis of BERT’s Attention2019
- Deep Contextualized Word Representations2018