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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
自由的从凝完成签到,获得积分10
刚刚
2秒前
2秒前
晚星发布了新的文献求助10
2秒前
2秒前
yzy发布了新的文献求助10
2秒前
大气的沛槐完成签到,获得积分10
2秒前
小白发布了新的文献求助10
2秒前
打打应助yy采纳,获得50
3秒前
Jasper应助麦麦采纳,获得10
3秒前
3秒前
jewel9发布了新的文献求助10
3秒前
拥你入怀发布了新的文献求助10
3秒前
扎心发布了新的文献求助10
3秒前
滴滴答答发布了新的文献求助10
4秒前
4秒前
研友_LjbjzL完成签到,获得积分10
4秒前
酷波er应助李治博采纳,获得10
4秒前
北侨发布了新的文献求助50
4秒前
stuffmatter发布了新的文献求助10
4秒前
LANGTAI发布了新的文献求助10
4秒前
4秒前
东坡应助Dihxxxx采纳,获得20
5秒前
Jessie发布了新的文献求助10
6秒前
QGK完成签到,获得积分10
6秒前
6秒前
6秒前
海马回发布了新的文献求助10
6秒前
6秒前
7秒前
7秒前
佚名发布了新的文献求助10
7秒前
赵小坤堃完成签到,获得积分10
7秒前
研友_VZG7GZ应助安蓝采纳,获得10
7秒前
宇智波梅钢蛋儿完成签到,获得积分10
7秒前
7秒前
陈呵呵发布了新的文献求助10
7秒前
流心奶黄包完成签到,获得积分10
7秒前
ljxsbn完成签到,获得积分10
8秒前
Jasper应助晚星采纳,获得10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Multiple Self-States Drawing Technique 600
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Rosenblum, Global Change Biology 500
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7769393
求助须知:如何正确求助?哪些是违规求助? 9312574
关于积分的说明 20329412
捐赠科研通 7354777
什么是DOI,文献DOI怎么找? 3316069
关于科研通互助平台的介绍 2464936
邀请新用户注册赠送积分活动 2330637