arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.04841cs.CLcs.AIcs.LG

联想循环记忆 Transformer

Associative Recurrent Memory Transformer

MIPT(莫斯科物理技术学院);AIRI(人工智能研究机构);London Institute for Mathematical Sciences(伦敦数学科学研究所)

Ivan Rodkin, Yuri Kuratov, Aydar Bulatov, Mikhail Burtsev

AI总结:

本文提出 ARMT 架构,结合局部自注意力与段级循环记忆,实现恒定时间长序列处理,并在联想检索及 BABILong 超 5000 万 token 任务上取得最优结果。

摘要:

本文解决构建一种面向极长序列的神经架构的挑战,该架构要求在每个时间步以恒定时间处理新信息。我们的方法——联想循环记忆 Transformer(Associative Recurrent Memory Transformer,ARMT)——基于用于局部上下文的 Transformer 自注意力,以及用于存储分布在长上下文中的任务特定信息的段级循环。我们证明,ARMT 在联想检索任务上优于现有替代方案,并在近期的 BABILong 多任务长上下文基准中创下新的性能纪录:其在超过 5000 万个 token 上回答单事实问题,准确率达到 79.9%。用于训练和评估的源代码可在 GitHub 上获取。

英文摘要:

This paper addresses the challenge of creating a neural architecture for very long sequences that requires constant time for processing new information at each time step. Our approach, Associative Recurrent Memory Transformer (ARMT), is based on transformer self-attention for local context and segment-level recurrence for storage of task specific information distributed over a long context. We demonstrate that ARMT outperfors existing alternatives in associative retrieval tasks and sets a new performance record in the recent BABILong multi-task long-context benchmark by answering single-fact questions over 50 million tokens with an accuracy of 79.9%. The source code for training and evaluation is available on github.

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

↑