Mamba: Linear-Time Sequence Modeling with Selective State Spaces

计算机科学 变压器 推论 安全性令牌 人工智能 计算机工程 理论计算机科学 工程类 计算机安全 电压 电气工程
作者
Albert Gu,Tri Dao
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:986
标识
DOI:10.48550/arxiv.2312.00752
摘要

Foundation models, now powering most of the exciting applications in deep learning, are almost universally based on the Transformer architecture and its core attention module. Many subquadratic-time architectures such as linear attention, gated convolution and recurrent models, and structured state space models (SSMs) have been developed to address Transformers' computational inefficiency on long sequences, but they have not performed as well as attention on important modalities such as language. We identify that a key weakness of such models is their inability to perform content-based reasoning, and make several improvements. First, simply letting the SSM parameters be functions of the input addresses their weakness with discrete modalities, allowing the model to selectively propagate or forget information along the sequence length dimension depending on the current token. Second, even though this change prevents the use of efficient convolutions, we design a hardware-aware parallel algorithm in recurrent mode. We integrate these selective SSMs into a simplified end-to-end neural network architecture without attention or even MLP blocks (Mamba). Mamba enjoys fast inference (5$\times$ higher throughput than Transformers) and linear scaling in sequence length, and its performance improves on real data up to million-length sequences. As a general sequence model backbone, Mamba achieves state-of-the-art performance across several modalities such as language, audio, and genomics. On language modeling, our Mamba-3B model outperforms Transformers of the same size and matches Transformers twice its size, both in pretraining and downstream evaluation.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
雪泪发布了新的文献求助10
1秒前
1秒前
子良完成签到 ,获得积分10
1秒前
Djtc发布了新的文献求助10
2秒前
3秒前
milan发布了新的文献求助10
3秒前
缓慢的篮球的应助被liva采纳,获得10
3秒前
4秒前
yeruotong完成签到,获得积分10
4秒前
5秒前
6秒前
hello完成签到 ,获得积分10
6秒前
6秒前
trumpJack的应助被liva采纳,获得10
7秒前
璐璐的应助被平常太阳采纳,获得20
8秒前
洞若观烟火完成签到,获得积分10
8秒前
9秒前
aha完成签到,获得积分10
9秒前
赘婿的应助被尚尚尚采纳,获得30
10秒前
科研通AI6.2的应助被MaxDYi采纳,获得10
10秒前
小二郎的应助被1212采纳,获得10
11秒前
ala完成签到,获得积分10
11秒前
超级龙虾人的应助被liva采纳,获得10
12秒前
daisy发布了新的文献求助10
12秒前
12秒前
石大李克完成签到,获得积分10
12秒前
13秒前
14秒前
15秒前
深情安青的应助被liva采纳,获得30
16秒前
和谐书易完成签到,获得积分10
17秒前
HEQ发布了新的文献求助10
18秒前
daisy完成签到,获得积分10
18秒前
2232完成签到,获得积分10
19秒前
19秒前
平常太阳完成签到,获得积分10
19秒前
orixero的应助被曹雪采纳,获得10
20秒前
20秒前
21秒前
MaxDYi完成签到,获得积分10
22秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
CLSI VET01S Ed7 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals 1000
Performance standards for antimicrobial disk and dilution susceptibility tests for bacteria isolated from animals 888
Rosenblum, Global Change Biology 800
Holistic Discourse Analysis, Second Edition by Robert E. Longacre (2012-09-10) 666
Berberine regulates the TLR4 signaling pathway to suppress hypoxia-induced proliferation and migration of pulmonary arterial smooth muscle cells 530
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 物理 有机化学 化学工程 内科学 生物化学 复合材料 催化作用 心理学 细胞生物学 无机化学 电极 光电子学 人工智能
热门帖子
关注 科研通微信公众号,转发送积分 7867120
求助须知:如何正确求助?哪些是违规求助? 9384192
关于积分的说明 20747788
捐赠科研通 7467740
什么是DOI,文献DOI怎么找? 3349546
关于科研通互助平台的介绍 2490750
邀请新用户注册赠送积分活动 2375141