亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

BiFormer: Vision Transformer with Bi-Level Routing Attention

计算机科学 内存占用 安全性令牌 计算 变压器 分割 人工智能 并行计算 计算机网络 算法 量子力学 操作系统 物理 电压
作者
Lei Zhu,Xinjiang Wang,Zhanghan Ke,Wei Zhang,Rynson W. H. Lau
出处
期刊: 卷期号:: 10323-10333 被引量:974
标识
DOI:10.1109/cvpr52729.2023.00995
摘要

As the core building block of vision transformers, attention is a powerful tool to capture long-range dependency. However, such power comes at a cost: it incurs a huge computation burden and heavy memory footprint as pairwise token interaction across all spatial locations is computed. A series of works attempt to alleviate this problem by introducing handcrafted and content-agnostic sparsity into attention, such as restricting the attention operation to be inside local windows, axial stripes, or dilated windows. In contrast to these approaches, we propose a novel dynamic sparse attention via bi-level routing to enable a more flexible allocation of computations with content awareness. Specifically, for a query, irrelevant key-value pairs are first filtered out at a coarse region level, and then fine-grained token-to-token attention is applied in the union of remaining candidate regions (i.e., routed regions). We provide a simple yet effective implementation of the proposed bilevel routing attention, which utilizes the sparsity to save both computation and memory while involving only GPU-friendly dense matrix multiplications. Built with the proposed bi-level routing attention, a new general vision transformer, named BiFormer, is then presented. As BiFormer attends to a small subset of relevant tokens in a query adaptive manner without distraction from other irrelevant ones, it enjoys both good performance and high computational efficiency, especially in dense prediction tasks. Empirical results across several computer vision tasks such as image classification, object detection, and semantic segmentation verify the effectiveness of our design. Code is available at https://github.com/rayleizhu/BiFormer.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
8秒前
July完成签到 ,获得积分10
10秒前
一只熊发布了新的文献求助10
13秒前
20秒前
25秒前
qwddjb发布了新的文献求助10
31秒前
科研通AI6.2应助pigff采纳,获得10
42秒前
48秒前
51秒前
54秒前
pigff发布了新的文献求助10
57秒前
1分钟前
ka完成签到 ,获得积分10
1分钟前
Sinkei发布了新的文献求助10
1分钟前
顺利的山柳完成签到,获得积分10
1分钟前
Sinkei完成签到,获得积分10
1分钟前
炙热初夏完成签到,获得积分10
1分钟前
1分钟前
2分钟前
科研通AI6.4应助pigff采纳,获得10
2分钟前
2分钟前
一只熊发布了新的文献求助10
2分钟前
2分钟前
pigff发布了新的文献求助10
2分钟前
我是笨蛋完成签到 ,获得积分10
2分钟前
科研通AI6.4应助pigff采纳,获得10
2分钟前
科研通AI6.2应助pigff采纳,获得10
2分钟前
2分钟前
在水一方完成签到,获得积分0
3分钟前
包容的初阳完成签到,获得积分10
3分钟前
pigff发布了新的文献求助10
3分钟前
pigff发布了新的文献求助10
3分钟前
科研通AI6.4应助pigff采纳,获得10
3分钟前
3分钟前
欧阳万仇发布了新的文献求助10
3分钟前
欧阳万仇完成签到,获得积分10
3分钟前
3分钟前
一只熊发布了新的文献求助10
3分钟前
pigff发布了新的文献求助10
3分钟前
4分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Principles of town planning: translating concepts to applications 1000
2016 Venous Blood Study (VBS) (Final V3.0) 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
从技术问题到科学问题:国家自然科学基金申请书写作指南 500
The Effective Clinical Neurologist 3ed 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7700205
求助须知:如何正确求助?哪些是违规求助? 9259479
关于积分的说明 20019232
捐赠科研通 7275690
什么是DOI,文献DOI怎么找? 3293708
关于科研通互助平台的介绍 2449226
邀请新用户注册赠送积分活动 2300139