Generating Long Sequences with Sparse Transformers

初始化 二次增长 计算机科学 字节 变压器 稀疏矩阵 序列(生物学) 建筑 并行计算 算法 理论计算机科学 人工智能 计算机硬件 程序设计语言 电气工程 工程类 生物 物理 艺术 视觉艺术 高斯分布 电压 量子力学 遗传学
作者
Rewon Child,Scott Gray,Alec Radford,Ilya Sutskever
出处
期刊:Cornell University - arXiv 被引量:596
标识
DOI:10.48550/arxiv.1904.10509
摘要

Transformers are powerful sequence models, but require time and memory that grows quadratically with the sequence length. In this paper we introduce sparse factorizations of the attention matrix which reduce this to $O(n \sqrt{n})$. We also introduce a) a variation on architecture and initialization to train deeper networks, b) the recomputation of attention matrices to save memory, and c) fast attention kernels for training. We call networks with these changes Sparse Transformers, and show they can model sequences tens of thousands of timesteps long using hundreds of layers. We use the same architecture to model images, audio, and text from raw bytes, setting a new state of the art for density modeling of Enwik8, CIFAR-10, and ImageNet-64. We generate unconditional samples that demonstrate global coherence and great diversity, and show it is possible in principle to use self-attention to model sequences of length one million or more.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
fcycukvujblk发布了新的文献求助10
刚刚
动人的cc完成签到,获得积分10
刚刚
量子星尘发布了新的文献求助30
1秒前
1秒前
李健的小迷弟应助大菊采纳,获得10
1秒前
zipzhang完成签到 ,获得积分10
2秒前
2秒前
2秒前
所所应助温差采纳,获得10
2秒前
lan发布了新的文献求助10
4秒前
Rondab应助Hexagram采纳,获得10
4秒前
4秒前
汉堡包应助科西西采纳,获得10
5秒前
香蕉觅云应助ocean采纳,获得10
5秒前
6秒前
beyondjun发布了新的文献求助10
6秒前
6秒前
Waaaan发布了新的文献求助10
6秒前
九号球完成签到,获得积分10
7秒前
黑煤球完成签到,获得积分10
7秒前
sohee发布了新的文献求助10
8秒前
slp发布了新的文献求助10
9秒前
9秒前
10秒前
WMYY完成签到,获得积分20
10秒前
CipherSage应助壮观梦易采纳,获得10
11秒前
小马甲应助壮观梦易采纳,获得30
11秒前
我是老大应助壮观梦易采纳,获得30
11秒前
xxy完成签到,获得积分10
12秒前
风趣的老太应助壮观梦易采纳,获得10
12秒前
12秒前
Owen应助壮观梦易采纳,获得10
12秒前
12秒前
12秒前
12秒前
12秒前
爆米花应助壮观梦易采纳,获得10
12秒前
情怀应助yiyi采纳,获得10
13秒前
小树完成签到,获得积分10
14秒前
14秒前
高分求助中
Picture Books with Same-sex Parented Families: Unintentional Censorship 1000
A new approach to the extrapolation of accelerated life test data 1000
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 500
Nucleophilic substitution in azasydnone-modified dinitroanisoles 500
Indomethacinのヒトにおける経皮吸収 400
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 370
基于可调谐半导体激光吸收光谱技术泄漏气体检测系统的研究 310
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3979840
求助须知:如何正确求助?哪些是违规求助? 3523885
关于积分的说明 11219083
捐赠科研通 3261375
什么是DOI,文献DOI怎么找? 1800602
邀请新用户注册赠送积分活动 879189
科研通“疑难数据库(出版商)”最低求助积分说明 807202