BViT: Broad Attention based Vision Transformer

Nannan Li, Yaran Chen, Weifan Li, Zixiang Ding, Dongbin Zhao
2/13/2022
cs.CV
transformer-attention

No official code found. Best implementation: koala719/BViT (6 stars, Python, Apache-2.0, last commit 2023-06-09).

Abstract

Recent works have demonstrated that transformer can achieve promising performance in computer vision, by exploiting the relationship among image patches with self-attention. While they only consider the attention in a single feature layer, but ignore the complementarity of attention in different levels.

Show full abstract

In this paper, we propose the broad attention to improve the performance by incorporating the attention relationship of different layers for vision transformer, which is called BViT. The broad attention is implemented by broad connection and parameter-free attention. Broad connection of each transformer layer promotes the transmission and integration of information for BViT. Without introducing additional trainable parameters, parameter-free attention jointly focuses on the already available attention information in different layers for extracting useful information and building their relationship. Experiments on image classification tasks demonstrate that BViT delivers state-of-the-art accuracy of 74.8\%/81.6\% top-1 accuracy on ImageNet with 5M/22M parameters. Moreover, we transfer BViT to downstream object recognition benchmarks to achieve 98.9\% and 89.9\% on CIFAR10 and CIFAR100 respectively that exceed ViT with fewer parameters. For the generalization test, the broad attention in Swin Transformer and T2T-ViT also bring an improvement of more than 1\%. To sum up, broad attention is promising to promote the performance of attention based models. Code and pre-trained models are available at https://github.com/DRL-CASIA/Broad_ViT.

View on arXivView PDF

Code Implementations(1)

koala719/BViTCommunity100%
Apache-2.0
62PythonFeb 13, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2022bvit,
  title  = {BViT: Broad Attention based Vision Transformer},
  author = {Nannan Li and Yaran Chen and Weifan Li and Zixiang Ding and Dongbin Zhao},
  year   = {2022},
  eprint = {2202.06268},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.06268}
}

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

Discussion