Always Skip Attention

Yiping Ji, Hemanth Saratchandran, Peyman Moghadam, Simon Lucey
5/4/2025
cs.LGcs.CV
transformer-attention

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We highlight a curious empirical result within modern Vision Transformers (ViTs). Specifically, self-attention catastrophically fails to train unless it is used in conjunction with a skip connection.

Show full abstract

This is in contrast to other elements of a ViT that continue to exhibit good performance (albeit suboptimal) when skip connections are removed. Further, we show that this critical dependence on skip connections is a relatively new phenomenon, with previous deep architectures (\eg, CNNs) exhibiting good performance in their absence. In this paper, we theoretically characterize that the self-attention mechanism is fundamentally ill-conditioned and is, therefore, uniquely dependent on skip connections for regularization. Additionally, we propose Token Graying -- a simple yet effective complement (to skip connections) that further improves the condition of input tokens. We validate our approach in both supervised and self-supervised training methods.

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. 1 weaker match is hidden by default — 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{ji2025always,
  title  = {Always Skip Attention},
  author = {Yiping Ji and Hemanth Saratchandran and Peyman Moghadam and Simon Lucey},
  year   = {2025},
  eprint = {2505.01996},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.01996v3},
  journal = {ICCV 2025 2025}
}

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/2505.01996.svg)](https://codeofpaper.com/paper/2505.01996)

Discussion