Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality

对偶(序理论) 变压器 算法 状态空间 数学 计算机科学 数学优化 域代数上的 纯数学 电气工程 工程类 电压 统计
作者
Tri Dao,Albert G. Gu
出处
期刊:Cornell University - arXiv 被引量:64
标识
DOI:10.48550/arxiv.2405.21060
摘要

While Transformers have been the main architecture behind deep learning's success in language modeling, state-space models (SSMs) such as Mamba have recently been shown to match or outperform Transformers at small to medium scale. We show that these families of models are actually quite closely related, and develop a rich framework of theoretical connections between SSMs and variants of attention, connected through various decompositions of a well-studied class of structured semiseparable matrices. Our state space duality (SSD) framework allows us to design a new architecture (Mamba-2) whose core layer is an a refinement of Mamba's selective SSM that is 2-8X faster, while continuing to be competitive with Transformers on language modeling.
最长约 10秒,即可获得该文献文件

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

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
之贻发布了新的文献求助10
1秒前
www完成签到,获得积分20
1秒前
HJQ发布了新的文献求助10
2秒前
2秒前
2秒前
量子星尘发布了新的文献求助10
3秒前
研友_Z6k5Q8发布了新的文献求助10
3秒前
3秒前
www发布了新的文献求助10
4秒前
4秒前
hanyangyang完成签到,获得积分10
4秒前
吃定彩虹关注了科研通微信公众号
4秒前
科目三应助乐乐采纳,获得10
5秒前
coco234完成签到,获得积分10
6秒前
NineLiar完成签到,获得积分10
6秒前
ZS发布了新的文献求助10
6秒前
Zorion发布了新的文献求助10
6秒前
乐观依云发布了新的文献求助10
6秒前
wise111发布了新的文献求助10
7秒前
7秒前
LJ发布了新的文献求助10
7秒前
8秒前
9秒前
菠萝吹雪发布了新的文献求助10
9秒前
ljact完成签到,获得积分10
10秒前
10秒前
ding应助优秀问丝采纳,获得10
10秒前
心驰天外完成签到,获得积分10
11秒前
牵猫散步的鱼完成签到,获得积分10
11秒前
李禹晗发布了新的文献求助10
11秒前
11秒前
yolo完成签到,获得积分10
12秒前
12秒前
小东西完成签到,获得积分10
12秒前
12秒前
天天快乐应助谦谦采纳,获得10
13秒前
田様应助陈M雯采纳,获得10
13秒前
want_top_journal完成签到,获得积分10
14秒前
欢呼南晴完成签到,获得积分10
14秒前
ztq完成签到 ,获得积分10
14秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Social Work Ethics Casebook: Cases and Commentary (revised 2nd ed.).. Frederic G. Reamer 1070
The Complete Pro-Guide to the All-New Affinity Studio: The A-to-Z Master Manual: Master Vector, Pixel, & Layout Design: Advanced Techniques for Photo, Designer, and Publisher in the Unified Suite 1000
按地区划分的1,091个公共养老金档案列表 801
The International Law of the Sea (fourth edition) 800
Machine Learning for Polymer Informatics 500
A Guide to Genetic Counseling, 3rd Edition 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5410122
求助须知:如何正确求助?哪些是违规求助? 4527656
关于积分的说明 14112011
捐赠科研通 4442051
什么是DOI,文献DOI怎么找? 2437805
邀请新用户注册赠送积分活动 1429747
关于科研通互助平台的介绍 1407769