Saved in:
Bibliographic Details
Main Authors: Li, Chenghao, Zhang, Chaoning, Zeng, Boheng, Lu, Yi, Shi, Pengbo, Chen, Qingzi, Liu, Jirui, Zhu, Lingyun, Yang, Yang, Shen, Heng Tao
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2401.05738
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913592648925184
author Li, Chenghao
Zhang, Chaoning
Zeng, Boheng
Lu, Yi
Shi, Pengbo
Chen, Qingzi
Liu, Jirui
Zhu, Lingyun
Yang, Yang
Shen, Heng Tao
author_facet Li, Chenghao
Zhang, Chaoning
Zeng, Boheng
Lu, Yi
Shi, Pengbo
Chen, Qingzi
Liu, Jirui
Zhu, Lingyun
Yang, Yang
Shen, Heng Tao
contents Attention mechanisms have significantly advanced visual models by capturing global context effectively. However, their reliance on large-scale datasets and substantial computational resources poses challenges in data-scarce and resource-constrained scenarios. Moreover, traditional self-attention mechanisms lack inherent spatial inductive biases, making them suboptimal for modeling local features critical to tasks involving smaller datasets. In this work, we introduce Large Kernel Convolutional Attention (LKCA), a novel formulation that reinterprets attention operations as a single large-kernel convolution. This design unifies the strengths of convolutional architectures locality and translation invariance with the global context modeling capabilities of self-attention. By embedding these properties into a computationally efficient framework, LKCA addresses key limitations of traditional attention mechanisms. The proposed LKCA achieves competitive performance across various visual tasks, particularly in data-constrained settings. Experimental results on CIFAR-10, CIFAR-100, SVHN, and Tiny-ImageNet demonstrate its ability to excel in image classification, outperforming conventional attention mechanisms and vision transformers in compact model settings. These findings highlight the effectiveness of LKCA in bridging local and global feature modeling, offering a practical and robust solution for real-world applications with limited data and resources.
format Preprint
id arxiv_https___arxiv_org_abs_2401_05738
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Interpreting and Improving Attention From the Perspective of Large Kernel Convolution
Li, Chenghao
Zhang, Chaoning
Zeng, Boheng
Lu, Yi
Shi, Pengbo
Chen, Qingzi
Liu, Jirui
Zhu, Lingyun
Yang, Yang
Shen, Heng Tao
Computer Vision and Pattern Recognition
Attention mechanisms have significantly advanced visual models by capturing global context effectively. However, their reliance on large-scale datasets and substantial computational resources poses challenges in data-scarce and resource-constrained scenarios. Moreover, traditional self-attention mechanisms lack inherent spatial inductive biases, making them suboptimal for modeling local features critical to tasks involving smaller datasets. In this work, we introduce Large Kernel Convolutional Attention (LKCA), a novel formulation that reinterprets attention operations as a single large-kernel convolution. This design unifies the strengths of convolutional architectures locality and translation invariance with the global context modeling capabilities of self-attention. By embedding these properties into a computationally efficient framework, LKCA addresses key limitations of traditional attention mechanisms. The proposed LKCA achieves competitive performance across various visual tasks, particularly in data-constrained settings. Experimental results on CIFAR-10, CIFAR-100, SVHN, and Tiny-ImageNet demonstrate its ability to excel in image classification, outperforming conventional attention mechanisms and vision transformers in compact model settings. These findings highlight the effectiveness of LKCA in bridging local and global feature modeling, offering a practical and robust solution for real-world applications with limited data and resources.
title Interpreting and Improving Attention From the Perspective of Large Kernel Convolution
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2401.05738