arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.11212cs.LG
收藏

面向压缩和可扩展的递归记忆

Towards Compressive and Scalable Recurrent Memory

LUMIA Lab(LUMIA实验室);School of Artificial Intelligence(人工智能学院);Shanghai Jiao Tong University(上海交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Innovation Institute(上海创新研究院)

Yunchong Song, Jushi Kai, Liming Lu, Kaixi Qiu, Zhouhan Lin

AI总结:

Elastic Memory通过引入基于HiPPO框架的新型记忆架构,在长上下文任务中实现了更高效的压缩和可扩展性,优于现有方法。

摘要:

在扩展到长上下文时,Transformer面临注意力的二次瓶颈。近期的方法引入了递归记忆来扩展上下文长度,但这些方法往往在理论原理和实际可扩展性之间存在根本性的权衡。为了解决这个问题,我们引入了Elastic Memory,这是一种基于HiPPO框架的在线函数逼近的新型记忆架构。Elastic Memory将历史序列视为连续信号的样本,通过最优的在线压缩将其编码为固定大小的记忆状态。在检索时,我们提出了一种灵活的多项式采样机制,从压缩状态中重建历史摘要。Elastic Memory在三个领域中,对长上下文(32k+)数据集始终优于基线。在同等参数下,它比Memorizing Transformer在内存方面高出16倍,甚至在Melodi有30%更多参数的情况下,也优于Melodi在所有内存大小。当扩展模型大小时,Elastic Memory始终优于所有基线,并且在4倍大小时比Melodi快很多。此外,其解耦设计允许在测试时注入归纳偏置以提升性能。

英文摘要:

Transformers face a quadratic bottleneck in attention when scaling to long contexts. Recent approaches introduce recurrent memory to extend context beyond the current window, yet these often face a fundamental trade-off between theoretical principles and practical scalability. To address this, we introduce Elastic Memory, a novel memory architecture grounded in the HiPPO framework for online function approximation. Elastic Memory treats historical sequence as samples from continuous signals, applying optimal online compression to encode them into a fixed-size memory state. For retrieval, we propose a flexible \textit{polynomial sampling} mechanism that reconstructs a history summary from this compressed state. Elastic Memory consistently outperformed baselines on long-context (32k+) datasets across three domains. With equal parameters, it beat Memorizing Transformer by 16x memory and outperformed Melodi at all memory sizes, even when Melodi had 30% more parameters. When scaling model size, Elastic Memory stayed ahead of all baselines and was significantly faster than Melodi at 4x size. Furthermore, its decoupled design allows for injecting inductive biases at test-time to boost performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑