pith. sign in

arxiv: 1904.02679 · v2 · pith:2FXQUDIZnew · submitted 2019-04-04 · 💻 cs.HC · cs.LG· stat.ML

Visualizing Attention in Transformer-Based Language Representation Models

classification 💻 cs.HC cs.LGstat.ML
keywords modelleveltoolvisualizingattentiongpt-2languagemodels
0
0 comments X p. Extension
pith:2FXQUDIZ Add to your LaTeX paper What is a Pith Number?
\usepackage{pith}
\pithnumber{2FXQUDIZ}

Prints a linked pith:2FXQUDIZ badge after your title and writes the identifier into PDF metadata. Compiles on arXiv with no extra files. Learn more

read the original abstract

We present an open-source tool for visualizing multi-head self-attention in Transformer-based language representation 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 BERT model and the OpenAI GPT-2 model. We also present three use cases for analyzing GPT-2: detecting model bias, identifying recurring patterns, and linking neurons to model behavior.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Massive Activations in Large Language Models

    cs.CL 2024-02 unverdicted novelty 7.0

    Massive activations are constant large values in LLMs that function as indispensable bias terms and concentrate attention probabilities on specific tokens.

  2. SSA: Improving Performance With a Better Scoring Function

    cs.CL 2025-08 unverdicted novelty 5.0

    Replacing Softmax with Scaled Signed Averaging in transformer attention improves generalization under distribution shifts for in-context learning and boosts results on NLP benchmarks.