English

BOAT: Bilateral Local Attention Vision Transformer

Computer Vision and Pattern Recognition 2022-10-20 v2 Machine Learning

Abstract

Vision Transformers achieved outstanding performance in many computer vision tasks. Early Vision Transformers such as ViT and DeiT adopt global self-attention, which is computationally expensive when the number of patches is large. To improve efficiency, recent Vision Transformers adopt local self-attention mechanisms, where self-attention is computed within local windows. Despite the fact that window-based local self-attention significantly boosts efficiency, it fails to capture the relationships between distant but similar patches in the image plane. To overcome this limitation of image-space local attention, in this paper, we further exploit the locality of patches in the feature space. We group the patches into multiple clusters using their features, and self-attention is computed within every cluster. Such feature-space local attention effectively captures the connections between patches across different local windows but still relevant. We propose a Bilateral lOcal Attention vision Transformer (BOAT), which integrates feature-space local attention with image-space local attention. We further integrate BOAT with both Swin and CSWin models, and extensive experiments on several benchmark datasets demonstrate that our BOAT-CSWin model clearly and consistently outperforms existing state-of-the-art CNN models and vision Transformers.

Keywords

Cite

@article{arxiv.2201.13027,
  title  = {BOAT: Bilateral Local Attention Vision Transformer},
  author = {Tan Yu and Gangming Zhao and Ping Li and Yizhou Yu},
  journal= {arXiv preprint arXiv:2201.13027},
  year   = {2022}
}

Comments

BMVC2022 oral

R2 v1 2026-06-24T09:10:07.323Z