How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddings

By Kawin Ethayarajh. 2019

1,289 citations recorded by the source corpus.

Replacing static word embeddings with contextualized word representations has yielded significant improvements on many NLP tasks. However, just how contextual are the contextualized representations produced by models such as ELMo and BERT? Are there infinitely many context-specific representations for each word, or are words essentially assigned one of a finite number of word-sense representations? For one, we find that the contextualized representations of all words are not isotropic in any layer of the contextualizing model. While representations of the same word in different contexts still have a greater cosine similarity than those of two different words, this self-similarity is much lower in upper layers. This suggests that upper layers of contextualizing models produce more context-specific representations, much like how upper layers of LSTMs produce more task-specific representations. In all layers of ELMo, BERT, and GPT-2, on average, less than 5% of the variance in a word’s contextualized representations can be explained by a static embedding for that word, providing some justification for the success of contextualized representations.

Subfields: Artificial Intelligence, Large Language Models, Natural Language Processing, Representation & Self-Supervised Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yonatan Belinkov
  2. Mohit Bansal
  3. James R. Glass
  4. Percy Liang
  5. Luke S. Zettlemoyer
  6. Graham Neubig
  7. Zhiyuan Liu
  8. Caiming Xiong

In Large Language Models

  1. Zhiyuan Liu
  2. Minlie Huang
  3. Caiming Xiong
  4. Yonatan Belinkov
  5. Jie Tang
  6. Richard Socher
  7. Jiawei Han
  8. Anna Rogers

In Natural Language Processing

  1. Yonatan Belinkov
  2. Mohit Bansal
  3. James R. Glass
  4. Graham Neubig
  5. Samuel R. Bowman
  6. Percy Liang
  7. Luke S. Zettlemoyer
  8. Yoav Goldberg

In Representation & Self-Supervised Learning

  1. Yonatan Belinkov
  2. James R. Glass
  3. Ivan Vulic
  4. Karen Livescu
  5. Anna Rogers
  6. Zhiyuan Liu
  7. Caiming Xiong
  8. Omer Levy

Citations in the corpus