ReViT: Enhancing Vision Transformers Feature Diversity with Attention Residual Connections

Anxhelo Diko, Danilo Avola, Marco Cascio, Luigi Cinque
2/17/2024
cs.CV

No official code found. Best implementation: ADiko1997/ReViT (31 stars, MIT, last commit 2024-02-29).

Abstract

Vision Transformer (ViT) self-attention mechanism is characterized by feature collapse in deeper layers, resulting in the vanishing of low-level visual features. However, such features can be helpful to accurately represent and identify elements within an image and increase the accuracy and robustness of vision-based recognition systems. Following this rationale, we propose a novel residual attention learning method for improving ViT-based architectures, increasing their visual feature diversity and model robustness. In this way, the proposed network can capture and preserve significant low-level features, providing more details about the elements within the scene being analyzed. The effectiveness and robustness of the presented method are evaluated on five image classification benchmarks, including ImageNet1k, CIFAR10, CIFAR100, Oxford Flowers-102, and Oxford-IIIT Pet, achieving improved performances. Additionally, experiments on the COCO2017 dataset show that the devised approach discovers and incorporates semantic and spatial relationships for object detection and instance segmentation when implemented into spatial-aware transformer models.

View on arXivView PDF

Code Implementations(1)

ADiko1997/ReViTCommunity100%
MIT

ReViT - Residual Attention Vision Transformer

312Python, DockerfileOct 13, 20232 years agoMIT

Similar Papers

Cite this paper

@article{diko2024revit,
  title  = {ReViT: Enhancing Vision Transformers Feature Diversity with Attention Residual Connections},
  author = {Anxhelo Diko and Danilo Avola and Marco Cascio and Luigi Cinque},
  year   = {2024},
  eprint = {2402.11301},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.11301v2}
}

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

Discussion