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.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
jasmine完成签到,获得积分10
刚刚
小丸子完成签到 ,获得积分10
1秒前
Motorhead发布了新的文献求助10
1秒前
3秒前
3秒前
852应助Sirius_Black采纳,获得10
3秒前
4秒前
5秒前
哈哈哈发布了新的文献求助10
6秒前
6秒前
香蕉觅云应助有点儿采纳,获得10
7秒前
寒冷怜南完成签到,获得积分10
7秒前
慧儿完成签到 ,获得积分10
7秒前
量子星尘发布了新的文献求助10
8秒前
Jasper应助赵小坤堃采纳,获得10
8秒前
无极微光应助延陵君采纳,获得100
8秒前
Orange应助chuan采纳,获得10
8秒前
Gu发布了新的文献求助10
8秒前
鱼鱼发布了新的文献求助10
9秒前
科研通AI6.1应助holly采纳,获得10
10秒前
10秒前
无情夏槐发布了新的文献求助10
11秒前
11秒前
Owen应助猪猪hero采纳,获得10
12秒前
12秒前
CipherSage应助zcx采纳,获得10
13秒前
13秒前
无风完成签到 ,获得积分20
14秒前
Motorhead发布了新的文献求助10
14秒前
14秒前
小八统治世界完成签到,获得积分10
15秒前
哈哈发布了新的文献求助10
15秒前
ll发布了新的文献求助30
15秒前
15秒前
chelsea完成签到,获得积分10
16秒前
17秒前
量子星尘发布了新的文献求助10
17秒前
是莉莉娅发布了新的文献求助10
17秒前
侧耳倾听发布了新的文献求助10
17秒前
tangnan发布了新的文献求助10
17秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Introduction to strong mixing conditions volume 1-3 5000
Clinical Microbiology Procedures Handbook, Multi-Volume, 5th Edition 2000
从k到英国情人 1500
Ägyptische Geschichte der 21.–30. Dynastie 1100
„Semitische Wissenschaften“? 1100
Real World Research, 5th Edition 800
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5736188
求助须知:如何正确求助?哪些是违规求助? 5364682
关于积分的说明 15332653
捐赠科研通 4880103
什么是DOI,文献DOI怎么找? 2622609
邀请新用户注册赠送积分活动 1571580
关于科研通互助平台的介绍 1528408