Ring Attention with Blockwise Transformers for Near-Infinite Context

变压器 计算 计算机科学 前馈 推论 强化学习 数字用户线 建筑 计算机工程 人工智能 理论计算机科学 算法 计算机网络 工程类 电气工程 控制工程 艺术 视觉艺术 电压
作者
Hao Liu,Matei Zaharia,Pieter Abbeel
出处
期刊:Cornell University - arXiv 被引量:2
标识
DOI:10.48550/arxiv.2310.01889
摘要

Transformers have emerged as the architecture of choice for many state-of-the-art AI models, showcasing exceptional performance across a wide range of AI applications. However, the memory demands imposed by Transformers limit their ability to handle long sequences, thereby posing challenges in utilizing videos, actions, and other long-form sequences and modalities in complex environments. We present a novel approach, Ring Attention with Blockwise Transformers (Ring Attention), which leverages blockwise computation of self-attention and feedforward to distribute long sequences across multiple devices while fully overlapping the communication of key-value blocks with the computation of blockwise attention. Our approach enables training and inference of sequences that are up to device count times longer than those achievable by prior memory-efficient Transformers, without resorting to approximations or incurring additional communication and computation overheads. Extensive experiments on language modeling and reinforcement learning tasks demonstrate the effectiveness of our approach in allowing millions of tokens context size and improving performance.
最长约 10秒,即可获得该文献文件

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

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
小火孩完成签到,获得积分10
刚刚
刚刚
棋士应助赫连紫采纳,获得10
刚刚
棋士应助zhengke924采纳,获得10
刚刚
ZSJ完成签到,获得积分10
刚刚
刚刚
boluohu完成签到,获得积分10
1秒前
年轻的青柏完成签到,获得积分10
1秒前
逻辑完成签到,获得积分10
1秒前
虚幻的山兰完成签到,获得积分10
1秒前
合适夏天完成签到,获得积分10
1秒前
米修发布了新的文献求助10
2秒前
拉长的湘完成签到,获得积分10
2秒前
朱大头完成签到,获得积分10
2秒前
zww完成签到,获得积分10
2秒前
LLY完成签到,获得积分10
2秒前
烤全鱼呢完成签到,获得积分10
3秒前
Sissi完成签到,获得积分10
3秒前
亮星发布了新的文献求助10
4秒前
lq完成签到,获得积分10
4秒前
niceweiwei发布了新的文献求助10
4秒前
小豆豆应助佰斯特威采纳,获得30
5秒前
abc1122完成签到,获得积分10
5秒前
hou发布了新的文献求助10
5秒前
kkkklo完成签到,获得积分10
6秒前
南宫书瑶完成签到,获得积分10
6秒前
不会取名啊完成签到,获得积分10
6秒前
mu完成签到,获得积分10
6秒前
6秒前
祺屿梦完成签到,获得积分10
6秒前
toda_erica完成签到,获得积分10
6秒前
文献求助完成签到,获得积分10
7秒前
张岱帅z完成签到,获得积分10
8秒前
x笑一完成签到,获得积分10
8秒前
友好的惋清完成签到 ,获得积分10
8秒前
缓慢笑珊完成签到,获得积分10
9秒前
Dalia完成签到,获得积分10
9秒前
丘比特应助约克宁采纳,获得10
11秒前
皮皮蛙完成签到,获得积分10
11秒前
小甜发布了新的文献求助10
11秒前
高分求助中
The Mother of All Tableaux Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 2400
Ophthalmic Equipment Market by Devices(surgical: vitreorentinal,IOLs,OVDs,contact lens,RGP lens,backflush,diagnostic&monitoring:OCT,actorefractor,keratometer,tonometer,ophthalmoscpe,OVD), End User,Buying Criteria-Global Forecast to2029 2000
Optimal Transport: A Comprehensive Introduction to Modeling, Analysis, Simulation, Applications 800
Official Methods of Analysis of AOAC INTERNATIONAL 600
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 588
Residual Stress Measurement by X-Ray Diffraction, 2003 Edition HS-784/2003 588
T/CIET 1202-2025 可吸收再生氧化纤维素止血材料 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3950088
求助须知:如何正确求助?哪些是违规求助? 3495545
关于积分的说明 11077625
捐赠科研通 3226040
什么是DOI,文献DOI怎么找? 1783457
邀请新用户注册赠送积分活动 867687
科研通“疑难数据库(出版商)”最低求助积分说明 800874