Self-Attention Attribution: Interpreting Information Interactions Inside Transformer

By Yaru Hao, Li Dong, Furu Wei, Ke Xu. 2020

300 citations recorded by the source corpus.

The great success of Transformer-based models benefits from the powerful multi-head self-attention mechanism, which learns token dependencies and encodes contextual information from the input. Prior work strives to attribute model decisions to individual input features with different saliency measures, but they fail to explain how these input features interact with each other to reach predictions. In this paper, we propose a self-attention attribution method to interpret the information interactions inside Transformer. We take BERT as an example to conduct extensive studies. Firstly, we apply self-attention attribution to identify the important attention heads, while others can be pruned with marginal performance degradation. Furthermore, we extract the most salient dependencies in each layer to construct an attribution tree, which reveals the hierarchical interactions inside Transformer. Finally, we show that the attribution results can be used as adversarial patterns to implement non-targeted attacks towards BERT.

Subfields: Natural Language Processing, Safety, Robustness & Interpretability

How researchers see this paper

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

In Natural Language Processing

  1. Li Dong
  2. Furu Wei
  3. Hangbo Bao
  4. Zhifang Sui
  5. Yaru Hao
  6. Song-Hao Piao
  7. Damai Dai
  8. Huiqi Deng

In Safety, Robustness & Interpretability

  1. Fred Morstatter
  2. Ninareh Mehrabi
  3. Aram Galstyan
  4. Li Dong
  5. Furu Wei
  6. Greg Ver Steeg
  7. Huiqi Deng
  8. Marten van Dijk

Citations in the corpus