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

Author:

Liu Siqi1,Wei Jiangshu1,Liu Gang1,Zhou Bei1

Affiliation:

1. College of Information Engineering, Sichuan Agricultural University, Ya’an, Sichuan, China

Abstract

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.

Funder

The Sichuan Province Department of Education

Publisher

PeerJ

Subject

General Computer Science

Reference34 articles.

1. Semantic image segmentation with deep convolutional nets and fully connected crfs;Chen,2014

2. Coatnet: marrying convolution and attention for all data sizes;Dai;Advances in Neural Information Processing Systems (NeurIPS),2021

3. Imagenet: a large-scale hierarchical image database;Deng,2009

4. Scaling up your kernels to 31x31: revisiting large kernel design in cnns;Ding,2022

5. An image is worth 16 × 16 words: transformers for image recognition at scale;Dosovitskiy;International Conference on Learning Representations (ICLR),2021

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3