arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.03156cs.LGcs.AI
收藏

MELODI:面向长上下文的内存压缩探索

MELODI: Exploring Memory Compression for Long Contexts

Google DeepMind(谷歌DeepMind)

Yinpeng Chen, DeLesley Hutchins, Aren Jansen, Andrey Zhmoginov, David Racz, Jesper Andersen

AI总结:

本研究提出新型内存架构MELODI,通过跨层与跨窗口的分层压缩方案实现长文档高效处理,相比Memorizing Transformer基线性能更优且内存占用降至1/8。

摘要:

我们提出了MELODI,这是一种新型内存架构,旨在利用短上下文窗口高效处理长文档。MELODI的核心原理是将短期和长期内存表示为跨网络层与上下文窗口的分层压缩方案。具体而言,短期内存通过跨多层的上下文窗口循环压缩实现,确保窗口间的平滑过渡。与之不同,长期内存在单个中间层内执行进一步压缩,并跨上下文窗口聚合信息,有效整合整个历史中的关键信息。与强基线——在大型长期内存(64K个键值对)上采用密集注意力的Memorizing Transformer相比,我们的方法在多种长上下文数据集上表现出更优性能,同时内存占用显著降低了8倍。

英文摘要:

We present MELODI, a novel memory architecture designed to efficiently process long documents using short context windows. The key principle behind MELODI is to represent short-term and long-term memory as a hierarchical compression scheme across both network layers and context windows. Specifically, the short-term memory is achieved through recurrent compression of context windows across multiple layers, ensuring smooth transitions between windows. In contrast, the long-term memory performs further compression within a single middle layer and aggregates information across context windows, effectively consolidating crucial information from the entire history. Compared to a strong baseline - the Memorizing Transformer employing dense attention over a large long-term memory (64K key-value pairs) - our method demonstrates superior performance on various long-context datasets while remarkably reducing the memory footprint by a factor of 8.

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

↑