arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23735cs.CLcs.AI
收藏

ATLAS:学习在测试时最优地记忆上下文

ATLAS: Learning to Optimally Memorize the Context at Test Time

Google(谷歌)

Ali Behrouz, Zeman Li, Praneeth Kacham, Majid Daliri, Yuan Deng, Peilin Zhong, Meisam Razaviyayn, Vahab Mirrokni

AI总结:

本文提出高容量长期记忆模块 ATLAS,通过基于当前和过去 token 优化记忆克服传统模型在线更新缺陷,并构建严格泛化原始 Transformer 的 DeepTransformers 架构,在多项任务中超越现有模型且在长上下文基准上准确率显著提升。

摘要:

Transformers 已被确立为序列建模中最受欢迎的骨干网络,这主要归功于它们在上下文检索任务中的有效性以及大规模学习的能力。然而,其二次方的内存和时间复杂度限制了它们在更长序列中的适用性,从而促使研究人员探索有效的替代架构,例如现代循环神经网络(即长期循环记忆模块)。尽管它们最近在多种下游任务中取得了成功,但在需要长上下文理解和外推到更长序列的任务中仍然表现不佳。我们观察到,这些缺陷源于其设计中三个互不相关的方面:(1)受限于记忆架构和输入特征映射的有限记忆容量;(2)更新的在线特性,即仅针对最后一个输入优化记忆;以及(3)对其固定大小记忆的表达能力较弱的管理。为了改善这三个方面,我们提出了 ATLAS,一种具有高容量的长期记忆模块,它通过基于当前和过去的 token 优化记忆来学习记忆上下文,克服了长期记忆模型的在线特性。基于这一见解,我们提出了一种类似 Transformer 的新架构系列,称为 DeepTransformers,它是原始 Transformer 架构的严格泛化。我们在语言建模、常识推理、召回密集型和长上下文理解任务上的实验结果表明,ATLAS 超越了 Transformers 和最近的线性循环模型的性能。ATLAS 进一步提升了 Titans 的长上下文性能,在 BABILong 基准的 10M 上下文长度下实现了 +80% 的准确率。

英文摘要:

Transformers have been established as the most popular backbones in sequence modeling, mainly due to their effectiveness in in-context retrieval tasks and the ability to learn at scale. Their quadratic memory and time complexity, however, bound their applicability in longer sequences and so has motivated researchers to explore effective alternative architectures such as modern recurrent neural networks (a.k.a long-term recurrent memory module). Despite their recent success in diverse downstream tasks, they struggle in tasks that requires long context understanding and extrapolation to longer sequences. We observe that these shortcomings come from three disjoint aspects in their design: (1) limited memory capacity that is bounded by the architecture of memory and feature mapping of the input; (2) online nature of update, i.e., optimizing the memory only with respect to the last input; and (3) less expressive management of their fixed-size memory. To enhance all these three aspects, we present ATLAS, a long-term memory module with high capacity that learns to memorize the context by optimizing the memory based on the current and past tokens, overcoming the online nature of long-term memory models. Building on this insight, we present a new family of Transformer-like architectures, called DeepTransformers, that are strict generalizations of the original Transformer architecture. Our experimental results on language modeling, common-sense reasoning, recall-intensive, and long-context understanding tasks show that ATLAS surpasses the performance of Transformers and recent linear recurrent models. ATLAS further improves the long context performance of Titans, achieving +80\% accuracy in 10M context length of BABILong benchmark.

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

↑