Centered Self-Attention Layers

Ameen Ali, Tomer Galanti, Lior Wolf
6/2/2023
cs.LG

No confident code implementation found for this paper.

Abstract

The self-attention mechanism in transformers and the message-passing mechanism in graph neural networks are repeatedly applied within deep learning architectures. We show that this application inevitably leads to oversmoothing, i.e., to similar representations at the deeper layers for different tokens in transformers and different nodes in graph neural networks. Based on our analysis, we present a correction term to the aggregating operator of these mechanisms. Empirically, this simple term eliminates much of the oversmoothing problem in visual transformers, obtaining performance in weakly supervised segmentation that surpasses elaborate baseline methods that introduce multiple auxiliary networks and training phrases. In graph neural networks, the correction term enables the training of very deep architectures more effectively than many recent solutions to the same problem.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ali2023centered,
  title  = {Centered Self-Attention Layers},
  author = {Ameen Ali and Tomer Galanti and Lior Wolf},
  year   = {2023},
  eprint = {2306.01610},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.01610v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.01610.svg)](https://codeofpaper.com/paper/2306.01610)

Discussion