Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depth

By Yihe Dong, Jean-Baptiste Cordonnier, Andreas Loukas. 2021

569 citations recorded by the source corpus.

Attention-based architectures have become ubiquitous in machine learning, yet our understanding of the reasons for their effectiveness remains limited. This work proposes a new way to understand self-attention networks: we show that their output can be decomposed into a sum of smaller terms, each involving the operation of a sequence of attention heads across layers. Using this decomposition, we prove that self-attention possesses a strong inductive bias towards"token uniformity". Specifically, without skip connections or multi-layer perceptrons (MLPs), the output converges doubly exponentially to a rank-1 matrix. On the other hand, skip connections and MLPs stop the output from degeneration. Our experiments verify the identified convergence phenomena on different variants of standard transformer architectures.

Subfields: Artificial Intelligence, Electrical and Electronic Engineering, 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. Furu Wei
  2. Jiashi Feng
  3. Jianfeng Gao
  4. Dacheng Tao
  5. Mohit Bansal
  6. Xinchao Wang
  7. Quoc V. Le
  8. Li Dong

In Electrical and Electronic Engineering

  1. Furu Wei
  2. Shuicheng Yan
  3. Chinmay Hegde
  4. Li Dong
  5. Enhua Wu
  6. Anthony Man-Cho So
  7. Jocelyn Chanussot
  8. X. Zhang

In Model Architectures

  1. Jiashi Feng
  2. Shuicheng Yan
  3. Yunhe Wang
  4. Xinchao Wang
  5. Kai Han
  6. X. Zhang
  7. Pan Zhou
  8. Weihao Yu

Citations in the corpus