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)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
划水小羊完成签到,获得积分10
1秒前
cara33完成签到,获得积分10
2秒前
完美世界应助昭奚采纳,获得10
3秒前
5秒前
区区应助gybreeze采纳,获得10
5秒前
在水一方应助McbxM采纳,获得10
5秒前
dr_luo发布了新的文献求助10
5秒前
言希发布了新的文献求助10
5秒前
6秒前
7秒前
瘦瘦妖妖发布了新的文献求助10
9秒前
轻舟发布了新的文献求助10
9秒前
9秒前
JW完成签到,获得积分10
9秒前
lllllnnnnj完成签到,获得积分10
10秒前
镓氧锌钇铀应助加菲丰丰采纳,获得20
10秒前
玖玖完成签到,获得积分10
12秒前
12秒前
syx发布了新的文献求助10
12秒前
15秒前
dr_luo完成签到,获得积分10
15秒前
pat发布了新的文献求助10
17秒前
17秒前
Huang_being发布了新的文献求助10
17秒前
18秒前
四月完成签到,获得积分10
19秒前
怪怪发布了新的文献求助30
19秒前
19秒前
19秒前
20秒前
20秒前
yjj6809完成签到,获得积分10
21秒前
花花发布了新的文献求助10
21秒前
22秒前
虾仁饭完成签到 ,获得积分10
22秒前
三三椋椋发布了新的文献求助10
22秒前
bbbbuuuoo发布了新的文献求助30
23秒前
张怡完成签到,获得积分20
23秒前
24秒前
JamesPei应助糖家未央采纳,获得10
24秒前
高分求助中
Pipeline and riser loss of containment 2001 - 2020 (PARLOC 2020) 1000
哈工大泛函分析教案课件、“72小时速成泛函分析:从入门到入土.PDF”等 660
Comparing natural with chemical additive production 500
The Leucovorin Guide for Parents: Understanding Autism’s Folate 500
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 500
A Manual for the Identification of Plant Seeds and Fruits : Second revised edition 500
The Social Work Ethics Casebook: Cases and Commentary (revised 2nd ed.) 400
热门求助领域 (近24小时)
化学 医学 生物 材料科学 工程类 有机化学 内科学 生物化学 物理 计算机科学 纳米技术 遗传学 基因 复合材料 化学工程 物理化学 病理 催化作用 免疫学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 5208415
求助须知:如何正确求助?哪些是违规求助? 4385955
关于积分的说明 13659345
捐赠科研通 4244900
什么是DOI,文献DOI怎么找? 2328993
邀请新用户注册赠送积分活动 1326790
关于科研通互助平台的介绍 1279012