arrow
返回

COLAFormer: Communicating local-global features with linear computational complexity

delete2025-01-01
delete0
PRE
AI
Z
Zhengwei Miao
H
Hui Luo
M
Meihui Li
J
Jianlin Zhang *
DOI:10.1016/j.patcog.2024.110870delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Local and sparse attention effectively reduce the high computational cost of global self-attention. However, they suffer from non-global dependency and coarse feature capturing, respectively. While some subsequent models employ effective interaction techniques for better classification performance, we observe that the computation and memory of these models overgrow as the resolution increases. Consequently, applying them to downstream tasks with large resolutions takes time and effort. In response to this concern, we propose an effective backbone network based on a novel attention mechanism called Concatenating glObal tokens in Local Attention (COLA) with a linear computational complexity. The implementation of COLA is straightforward, as it incorporates global information into the local attention in a concatenating manner. We introduce a learnable condensing feature (LCF) module to capture high-quality global information. LCF possesses the following properties: (1) performing a function similar to clustering, aggregating image patches into a smaller number of tokens based on similarity. (2) a constant number of aggregated tokens regardless of the image size, ensuring that it is a linear complexity operator. Based on COLA, we build COLAFormer, which achieves global dependency and fine-grained feature capturing with linear computational complexity and demonstrates impressive performance across various vision tasks. Specifically, our COLAFormer-S achieves 84.5% classification accuracy, surpassing other advanced models by 0.4% with similar or less resource consumption. Furthermore, our COLAFormer-S can achieve a better object detection performance while consuming only 1/4 of the resources compared to other state-of-the-art models. The code and models will be made publicly available.
Keyword:
Computer vision
Vision transformer
Image classification
Computational complexity
Feature clustering

期刊

Pattern Recognition 封面图
Pattern Recognition
IF:
7.6
论文数:
1.3W
被引数:
4.5W

机构

C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
引用论文

引用论文

Stereoselective Pharmacokinetics of Methadone in Chronic Pain Patients
err1996-06-01
err0
PREAI
errKim Kristensen; Tine Blemmer; Helle R. Angelo; Lona L. Christrup; Niels E. Drenck; Søren N. Rasmussen; Per Sjøgren
err分享
err收藏
err分享
err收藏
学者 查看更多内容