CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention

嵌入 计算机科学 变压器 人工智能 分割 合并(版本控制) 计算机视觉 模式识别(心理学) 工程类 并行计算 电气工程 电压
作者
Wenxiao Wang,Yao Lu,Long Chen,Binbin Lin,Deng Cai,Xiaofei He,Wei Liu
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:38
标识
DOI:10.48550/arxiv.2108.00154
摘要

Transformers have made great progress in dealing with computer vision tasks. However, existing vision transformers do not yet possess the ability of building the interactions among features of different scales, which is perceptually important to visual inputs. The reasons are two-fold: (1) Input embeddings of each layer are equal-scale, so no cross-scale feature can be extracted; (2) to lower the computational cost, some vision transformers merge adjacent embeddings inside the self-attention module, thus sacrificing small-scale (fine-grained) features of the embeddings and also disabling the cross-scale interactions. To this end, we propose Cross-scale Embedding Layer (CEL) and Long Short Distance Attention (LSDA). On the one hand, CEL blends each embedding with multiple patches of different scales, providing the self-attention module itself with cross-scale features. On the other hand, LSDA splits the self-attention module into a short-distance one and a long-distance counterpart, which not only reduces the computational burden but also keeps both small-scale and large-scale features in the embeddings. Through the above two designs, we achieve cross-scale attention. Besides, we put forward a dynamic position bias for vision transformers to make the popular relative position bias apply to variable-sized images. Hinging on the cross-scale attention module, we construct a versatile vision architecture, dubbed CrossFormer, which accommodates variable-sized inputs. Extensive experiments show that CrossFormer outperforms the other vision transformers on image classification, object detection, instance segmentation, and semantic segmentation tasks. The code has been released: https://github.com/cheerss/CrossFormer.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
DW应助想长胖十斤采纳,获得10
1秒前
阿黛完成签到 ,获得积分10
1秒前
肽聚糖完成签到,获得积分10
2秒前
3秒前
凯文完成签到,获得积分10
4秒前
4秒前
5秒前
5秒前
6秒前
沐梓阳雨完成签到 ,获得积分10
6秒前
aaaa应助路咕咕嗼采纳,获得20
6秒前
优雅向露完成签到 ,获得积分10
7秒前
没得发布了新的文献求助10
7秒前
子叶关注了科研通微信公众号
7秒前
JAY关注了科研通微信公众号
7秒前
彭鱼燕完成签到,获得积分20
7秒前
mxy126354发布了新的文献求助10
7秒前
8秒前
博修发布了新的文献求助10
8秒前
8秒前
Jennie完成签到,获得积分10
8秒前
乐乐应助兴奋的台灯采纳,获得10
8秒前
qq发布了新的文献求助10
9秒前
9秒前
可爱的函函应助monica采纳,获得10
9秒前
wave发布了新的文献求助30
9秒前
所所应助monica采纳,获得10
9秒前
小飒的猫发布了新的文献求助30
9秒前
zdx12324完成签到,获得积分10
10秒前
RONNIE发布了新的文献求助10
11秒前
12秒前
开放如天发布了新的文献求助10
12秒前
12秒前
财财完成签到 ,获得积分20
12秒前
科研通AI6.2应助十一采纳,获得10
12秒前
AZE完成签到,获得积分10
13秒前
Longhy发布了新的文献求助10
13秒前
hmy发布了新的文献求助10
14秒前
15秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
A Case Study on Hotels as Noncongregate Emergency Living Accommodations for Returning Citizens 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7764382
求助须知:如何正确求助?哪些是违规求助? 9308581
关于积分的说明 20306689
捐赠科研通 7348987
什么是DOI,文献DOI怎么找? 3314361
关于科研通互助平台的介绍 2463914
邀请新用户注册赠送积分活动 2328488