Transformer Acceleration with Dynamic Sparse Attention

加速 利用 计算机科学 瓶颈 计算 变压器 软件部署 计算机工程 二次方程 一套 并行计算 算法 嵌入式系统 软件工程 电压 工程类 计算机安全 历史 几何学 电气工程 数学 考古
作者
Liu Liu,Zheng Qu,Zhaodong Chen,Yufei Ding,Yuan Xie
出处
期刊:Cornell University - arXiv 被引量:10
标识
DOI:10.48550/arxiv.2110.11299
摘要

Transformers are the mainstream of NLP applications and are becoming increasingly popular in other domains such as Computer Vision. Despite the improvements in model quality, the enormous computation costs make Transformers difficult at deployment, especially when the sequence length is large in emerging applications. Processing attention mechanism as the essential component of Transformer is the bottleneck of execution due to the quadratic complexity. Prior art explores sparse patterns in attention to support long sequence modeling, but those pieces of work are on static or fixed patterns. We demonstrate that the sparse patterns are dynamic, depending on input sequences. Thus, we propose the Dynamic Sparse Attention (DSA) that can efficiently exploit the dynamic sparsity in the attention of Transformers. Compared with other methods, our approach can achieve better trade-offs between accuracy and model complexity. Moving forward, we identify challenges and provide solutions to implement DSA on existing hardware (GPUs) and specialized hardware in order to achieve practical speedup and efficiency improvements for Transformer execution.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
Owen应助Song采纳,获得10
刚刚
t铁核桃1985完成签到 ,获得积分10
1秒前
rose发布了新的文献求助10
1秒前
FnDs完成签到,获得积分10
1秒前
3秒前
章铭-111完成签到 ,获得积分10
3秒前
熊大对熊二说熊要有个熊样完成签到,获得积分10
4秒前
JINWEIJIANG完成签到,获得积分10
6秒前
7秒前
JINWEIJIANG发布了新的文献求助30
8秒前
shepherd完成签到,获得积分10
8秒前
EasyNan应助rose采纳,获得30
9秒前
科目三应助涛涛采纳,获得10
9秒前
Rearn完成签到 ,获得积分10
11秒前
12秒前
秋纳瑞完成签到,获得积分10
12秒前
12秒前
悲伤西米露应助友好凌波采纳,获得10
13秒前
科研通AI5应助吴兰田采纳,获得30
16秒前
16秒前
16秒前
16秒前
ywqu发布了新的文献求助10
17秒前
无与伦比发布了新的文献求助20
17秒前
聂课朝发布了新的文献求助30
20秒前
清新的寄风完成签到 ,获得积分10
20秒前
热心的芷雪完成签到,获得积分10
21秒前
bzc229完成签到,获得积分10
21秒前
涛涛发布了新的文献求助10
21秒前
by完成签到,获得积分20
23秒前
安静复天完成签到,获得积分10
23秒前
842782026完成签到,获得积分10
24秒前
大恐龙的噗噗关注了科研通微信公众号
27秒前
华仔应助聂课朝采纳,获得10
27秒前
29秒前
Yuan完成签到,获得积分20
30秒前
鸠摩智完成签到,获得积分10
32秒前
33秒前
搜集达人应助无语的菠萝采纳,获得10
34秒前
高分求助中
All the Birds of the World 4000
Production Logging: Theoretical and Interpretive Elements 3000
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Am Rande der Geschichte : mein Leben in China / Ruth Weiss 1500
CENTRAL BOOKS: A BRIEF HISTORY 1939 TO 1999 by Dave Cope 1000
Machine Learning Methods in Geoscience 1000
Resilience of a Nation: A History of the Military in Rwanda 888
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3737385
求助须知:如何正确求助?哪些是违规求助? 3281209
关于积分的说明 10023728
捐赠科研通 2997939
什么是DOI,文献DOI怎么找? 1644880
邀请新用户注册赠送积分活动 782304
科研通“疑难数据库(出版商)”最低求助积分说明 749762