4.6 Article

Image classification model based on large kernel attention mechanism and relative position self-attention mechanism

Journal

PEERJ COMPUTER SCIENCE
Volume 9, Issue -, Pages -

Publisher

PEERJ INC
DOI: 10.7717/peerj-cs.1344

Keywords

Attention mechanism; Image classification; Deep learning; Computer vision; Convolutional neural networks

Ask authors/readers for more resources

This paper proposes a hybrid model combining CNN and Transformer to optimize their shortcomings in capturing global feature representation and deteriorating local feature details. The model achieves accurate localization of features and efficient capture of long-range relationships on a large receptive field. Experimental results demonstrate the excellent performance of the proposed model on cifar10, cifar100, and birds400 datasets with fewer model parameters.
The Transformer has achieved great success in many computer vision tasks. With the in-depth exploration of it, researchers have found that Transformers can better obtain long-range features than convolutional neural networks (CNN). However, there will be a deterioration of local feature details when the Transformer extracts local features. Although CNN is adept at capturing the local feature details, it cannot easily obtain the global representation of features. In order to solve the above problems effectively, this paper proposes a hybrid model consisting of CNN and Transformer inspired by Visual Attention Net (VAN) and CoAtNet. This model optimizes its shortcomings in the difficulty of capturing the global representation of features by introducing Large Kernel Attention (LKA) in CNN while using the Transformer blocks with relative position self-attention variant to alleviate the problem of detail deterioration in local features of the Transformer. Our model effectively combines the advantages of the above two structures to obtain the details of local features more accurately and capture the relationship between features far apart more efficiently on a large receptive field. Our experiments show that in the image classification task without additional training data, the proposed model in this paper can achieve excellent results on the cifar10 dataset, the cifar100 dataset, and the birds400 dataset (a public dataset on the Kaggle platform) with fewer model parameters. Among them, SE_LKACAT achieved a Top-1 accuracy of 98.01% on the cifar10 dataset with only 7.5M parameters.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available