Visualizing Attention in Transformer-Based Language models

By Jesse Vig. 2019

23 citations recorded by the source corpus.

We present an open-source tool for visualizing multi-head self-attention in Transformer-based language models. The tool extends earlier work by visualizing attention at three levels of granularity: the attention-head level, the model level, and the neuron level. We describe how each of these views can help to interpret the model, and we demonstrate the tool on the OpenAI GPT-2 pretrained language model. We also present three use cases showing how the tool might provide insights on how to adapt or improve the model.

Subfields: Artificial Intelligence, Model Architectures

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. Matt Gardner
  2. Yoav Goldberg
  3. Sameer Singh
  4. Mohit Bansal
  5. Eric Wallace
  6. Yonatan Belinkov
  7. Luke S. Zettlemoyer
  8. Noah A. Smith

In Model Architectures

  1. Yonatan Belinkov
  2. Omer Levy
  3. D. Kondratyuk
  4. Christopher D. Manning
  5. Kevin Clark
  6. Willem H. Zuidema
  7. Sameer Singh
  8. Urvashi Khandelwal

Citations in the corpus