Always Skip Attention

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ji, Yiping, Saratchandran, Hemanth, Moghadam, Peyman, Lucey, Simon
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918126935867392
author Ji, Yiping
Saratchandran, Hemanth
Moghadam, Peyman
Lucey, Simon
author_facet Ji, Yiping
Saratchandran, Hemanth
Moghadam, Peyman
Lucey, Simon
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_01996
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Always Skip Attention
Ji, Yiping
Saratchandran, Hemanth
Moghadam, Peyman
Lucey, Simon
Machine Learning
Computer Vision and Pattern Recognition
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. 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.
title Always Skip Attention
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2505.01996