Gated Associative Memory: A Parallel O(N) Architecture for Efficient Sequence Modeling

作者
Acharya, Rishiraj
出处
期刊:Cornell University - arXiv [Cornell University]
标识
DOI:10.48550/arxiv.2509.00605
摘要

The Transformer architecture, underpinned by the self-attention mechanism, has become the de facto standard for sequence modeling tasks. However, its core computational primitive scales quadratically with sequence length (O(N^2)), creating a significant bottleneck for processing long contexts. In this paper, we propose the Gated Associative Memory (GAM) network, a novel, fully parallel architecture for sequence modeling that exhibits linear complexity (O(N)) with respect to sequence length. The GAM block replaces the self-attention layer with two parallel pathways: a causal convolution to efficiently capture local, position-dependent context, and a parallel associative memory retrieval mechanism to model global, content-based patterns. These pathways are dynamically fused using a gating mechanism, allowing the model to flexibly combine local and global information for each token. We implement GAM from scratch and conduct a rigorous comparative analysis against a standard Transformer model and a modern linear-time baseline (Mamba) on the WikiText-2 benchmark, as well as against the Transformer on the TinyStories dataset. Our experiments demonstrate that GAM is consistently faster, outperforming both baselines on training speed, and achieves a superior or competitive final validation perplexity across all datasets, establishing it as a promising and efficient alternative for sequence modeling.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
丘比特的应助被Dylan采纳,获得10
1秒前
羊翊婕发布了新的文献求助10
2秒前
xhj发布了新的文献求助10
2秒前
炙热的雪莲完成签到,获得积分10
3秒前
奶茶电竞精神完成签到 ,获得积分10
3秒前
工头工头发布了新的文献求助10
3秒前
李健的应助被Catherine_采纳,获得10
5秒前
江阳宏发布了新的文献求助10
6秒前
小二郎的应助被skywalker采纳,获得10
7秒前
HuE完成签到,获得积分10
8秒前
迅速雨琴完成签到,获得积分10
8秒前
9秒前
xhj发布了新的文献求助10
9秒前
leo发布了新的文献求助10
10秒前
所所的应助被江阳宏采纳,获得10
11秒前
愤青完成签到 ,获得积分10
11秒前
勤恳芙完成签到,获得积分10
11秒前
想啥呢哦哦完成签到,获得积分10
11秒前
bao完成签到,获得积分10
11秒前
11秒前
cgcgcg完成签到,获得积分10
11秒前
CodeCraft的应助被Teneeduu采纳,获得10
12秒前
tang完成签到,获得积分10
12秒前
阿芫发布了新的文献求助40
12秒前
黎l完成签到 ,获得积分20
14秒前
历史真相完成签到,获得积分10
14秒前
思源的应助被cgcgcg采纳,获得10
14秒前
mofadaoshi完成签到,获得积分10
15秒前
打打的应助被董文强采纳,获得10
15秒前
完美世界的应助被72727采纳,获得10
16秒前
16秒前
害怕的刚完成签到,获得积分10
17秒前
充电宝的应助被杨yang采纳,获得10
17秒前
17秒前
matcha123的应助被lchen采纳,获得10
17秒前
18秒前
境随心转发布了新的文献求助10
18秒前
18秒前
mofadaoshi发布了新的文献求助20
18秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Spec 401: Standards for Jet Fuel Facility and Equipment Commissioning and Flushing at Airports, 2026.1 (Original Issue) 1000
Spec 103: Standard for Jet Fuel Quality Control at Airports, Revision 2026.1 1000
Chinese Traditional Wisdom and Contemporary Education Values 600
AI Disclosure in Annual Reports: Evolution, Determinants, and Capital Market Participants’ Perceptions 500
5th World Conference on Detergents: Reinventing the Industry : Opportunities and Challenges 500
Erzählte Gnade 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8105539
求助须知:如何正确求助?哪些是违规求助? 9514621
关于积分的说明 21492931
捐赠科研通 7682120
什么是DOI,文献DOI怎么找? 3409757
关于科研通互助平台的介绍 2537367
邀请新用户注册赠送积分活动 2449698