Efficient Vision Transformer via Token Merger

安全性令牌 计算机科学 增采样 合并(版本控制) 推论 人工智能 令牌传递 变压器 计算机视觉 情报检索 图像(数学) 计算机网络 物理 量子力学 电压
作者
Zhanzhou Feng,Shiliang Steven Zhang
出处
期刊:IEEE transactions on image processing [Institute of Electrical and Electronics Engineers]
卷期号:32: 4156-4169 被引量:59
标识
DOI:10.1109/tip.2023.3293763
摘要

Vision Transformers (ViTs) split an image into fixed-size patches as tokens. This strategy has succeeded in computer vision tasks, but introduces considerable tokens similar in semantics and appearances. This work proposes Token Merger to spot redundant tokens and merge them into a compact representation to accelerate ViTs. For each forward inference, the Token Merger first identifies meta tokens to represent meaningful cues of the image content, then adaptively merges similar tokens into a uniform one referring to meta tokens. To pursue a reasonable tradeoff between accuracy and efficiency, we further introduce learnable gates to adaptively decide the token merge ratios of different layers. As a generalizable module, Token Merger can be easily plugged into different layers of ViTs to boost their efficiency. Visualizations show that Token Merger progressively merges tokens and finally learns a compact set of tokens representing clear semantics. Compared with token pruning methods, Token Merger is more effective in preserving meaning contextual cues, thus performs and generalizes substantially better in different vision tasks. Extensive experiments and comparisons with other state-of-the-art downsampling methods also demonstrate its promising performance. For instance, it reduces 95% tokens and accelerates the inference speed by 62%. Meanwhile, the ImageNet classification accuracy only drops by 0.4%. The code will be available.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
霜序发布了新的文献求助100
刚刚
moss完成签到 ,获得积分10
刚刚
小慕完成签到,获得积分10
刚刚
秋波发布了新的文献求助10
刚刚
2秒前
2秒前
2秒前
3秒前
3秒前
4秒前
FashionBoy的应助被qqq采纳,获得10
4秒前
werty发布了新的文献求助10
4秒前
4秒前
4秒前
移动马桶发布了新的文献求助20
4秒前
无聊的朋友完成签到,获得积分10
4秒前
无私藏鸟发布了新的文献求助10
4秒前
6秒前
Sxue完成签到,获得积分10
6秒前
lyj_eye完成签到,获得积分10
6秒前
尹颂发布了新的文献求助10
6秒前
香蕉秋柳完成签到,获得积分10
6秒前
6秒前
搜集达人的应助被bulabulabu采纳,获得10
7秒前
隐形曼青的应助被kll采纳,获得10
7秒前
7秒前
所所的应助被江波采纳,获得10
8秒前
cxx发布了新的文献求助10
8秒前
活泼的以松完成签到,获得积分10
8秒前
8秒前
8秒前
8秒前
8秒前
8秒前
8秒前
大个的应助被科研通管家采纳,获得10
8秒前
华仔的应助被科研通管家采纳,获得30
9秒前
小花发布了新的文献求助10
9秒前
9秒前
研友_VZG7GZ的应助被科研通管家采纳,获得10
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Martian climate revisited : atmosphere and environment of a desert planet 600
Musizierpraxis im Biedermeier: Spezifika und Kontext einer vermeintlich vertrauten Epoche 590
Profilaxis antimicrobiana en uretrocistoscopias. Estudio comparativo 500
Sleisenger and Fordtran's Gastrointestinal and Liver Disease - 2 Volume Set Pathophysiology, Diagnosis, Management 500
[Radiotherapy of prostatic cancer at the loco-regional stage: therapeutic results and prognostic factors] 500
[Experiences with intensive radiotherapy of prostatic cancer in conjunction with surgery (transurethral resection, pelvic lymph node excision)] 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8223648
求助须知:如何正确求助?哪些是违规求助? 9603106
关于积分的说明 22012284
捐赠科研通 7833689
什么是DOI,文献DOI怎么找? 3447540
关于科研通互助平台的介绍 2568524
邀请新用户注册赠送积分活动 2496317