On Identifiability in Transformers

By Gino Brunner, Yang Liu, Damian Pascual, Oliver Richter, Massimiliano Ciaramita, Roger Wattenhofer. 2019

212 citations recorded by the source corpus.

In this paper we delve deep in the Transformer architecture by investigating two of its core components: self-attention and contextual embeddings. In particular, we study the identifiability of attention weights and token embeddings, and the aggregation of context into hidden tokens. We show that, for sequences longer than the attention head dimension, attention weights are not identifiable. We propose effective attention as a complementary tool for improving explanatory interpretations based on attention. Furthermore, we show that input tokens retain to a large degree their identity across the model. We also find evidence suggesting that identity information is mainly encoded in the angle of the embeddings and gradually decreases with depth. Finally, we demonstrate strong mixing of input information in the generation of contextual embeddings by means of a novel quantification method based on gradient attribution. Overall, we show that self-attention distributions are not directly interpretable and present tools to better understand and further investigate Transformer models.

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. Yonatan Belinkov
  2. Mohit Bansal
  3. Yoav Goldberg
  4. Noah A. Smith
  5. Percy Liang
  6. Graham Neubig
  7. Luke S. Zettlemoyer
  8. Yejin Choi

In Model Architectures

  1. Yonatan Belinkov
  2. Graham Neubig
  3. Derya Soydaner
  4. Richard Socher
  5. Anna Rogers
  6. Caiming Xiong
  7. James R. Glass
  8. Anna Rumshisky

Citations in the corpus