ACSAN: All-Convolutional Self-Attention Network Integrating Convolutional Operations with Vision Transformer
Abstract
In the past few years, Vision Transformer (ViT) has achieved competitive performance in the field of computer vision. However, there still remain some problems. For instance, ViTs rely on large-scale training data since they simply contain a large number of trainable parameters, which slows down their learning efficiency and limits their applicability in resource-constrained scenarios. In this paper, we propose a novel deep learning model, namely All-Convolutional Self-Attention Network (ACSAN), which applies convolution operations to replace fully-connected matrices multiplications in the ViT framework. To implement ACSAN, we firstly design Dynamic Convolutional Self-Attention (DCSA) as the basic module, which employs multi-scale dilated convolutions to generate Query, Key, and Value. We define spatial self-attention and channel self-attention to generate attention features respectively. The two attention features are finally merged as the output of the DCSA module. Based on DCSA, we construct the basic ACSAN block. Specifically, we use DCSA to replace the regular self-attention operations, and use convolution-based Equivalent Convolutional Fully Connected (EqConvFC) modules to replace MLPs. To evaluate the performance, we train ACSAN on CIFAR-10, CIFAR-100 and ImageNet-1k datasets from scratch. Experimental results show that ACSAN achieves good classification accuracy (the best variants achieve 93.52\% on CIFAR-10, 73.38\% on CIFAR-100, and 83.3\% on ImageNet-1k). Moreover, in comparison with standard ViT and other state-of-the-art methods, ACSAN uses fewer parameters to achieve comparable or better accuracy.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
Related papers
Modern Self-Supervised Vision Transformers Are Pareidolic
Shared title terminologycs.CVZihang Lin, Huaiyuan Qin, Liangli Zhen et al.
Spec^2R: Recovering Emergent Properties in Supervised Vision Transformers
Shared title terminologycs.CVAdam Wróbel, Jacek Tabor, Bartosz Zieliński et al.
Token Pruning Needs a Protected Sink Token: Coherent Spatial Aggregation in Vision Transformers
Shared title terminologycs.CVJulian Wyatt, James Willoughby, Allison Clement et al.
VISOR: A Vision-Language Selector for Multimodal Time-Series Forecasting
Shared title terminologycs.CVSeunghan Lee, Jun Seo, Junhyeok Kang et al.
ET: Efficient Transfer from Softmax to Hybrid Attention
Shared title terminologycs.CVGuangfu Guo, Xiaoqian Lu, Linsey Pang et al.
BEARING: Who Is Talking to Whom? Grounding Acoustic Direction in Vision for Online Multi-Party Conversation
Shared title terminologycs.CVNader Lobandi, Lombe Chileshe, Mohammad Mehdi Hosseini et al.