2025-02-11 · 专家 · 自然语言处理

LM2: Large Memory Models

本文提出了大型记忆模型LM2,这是一种增强型解码器Transformer架构,通过引入辅助记忆模块来解决标准Transformer在多步推理、关系论证和长文本信息综合方面的局限性,在BABILong基准测试中取得了显著的性能提升。

更新于 2025-02-11。作者:Jikun Kang、Wenqi Wu、Filippos Christianos、Alex J. Chan、Fraser Greenlee、George Thomas、Marvin Purtorab、Andy Toulis。

中文摘要

本文介绍了大型记忆模型 (LM2),这是一种仅解码器的 Transformer 架构,它增强了一个辅助记忆模块,旨在解决标准 Transformer 在多步推理、关系论证和合成分布在长上下文中的信息方面的局限性。提出的 LM2 集成一个充当上下文表示存储库的记忆模块,通过交叉注意力与输入标记交互,并通过门控机制进行更新。为了保持 Transformer 的通用能力,LM2 保持了原始信息流,同时集成了一个补充的记忆通路。在 BABILong 基准测试上的实验结果表明,在各项任务上,LM2 模型的平均性能比增强记忆的 RMT 模型高出 37.1%,比基线 Llama-3.2 模型高出 86.3%。LM2 在多跳推理、数值推理和长上下文问答方面表现出卓越的能力。在 MMLU 数据集上,它比预训练的普通模型提高了 5.0%,这表明它的记忆模块不会降低一般任务的性能。此外,在我们的分析中,我们探讨了记忆的可解释性、记忆模块的有效性以及测试时的行为。我们的研究结果强调了显式记忆在增强 Transformer 架构中的重要性。

英文摘要

This paper introduces the Large Memory Model (LM2), a decoder-only Transformer architecture enhanced with an auxiliary memory module that aims to address the limitations of standard Transformers in multi-step reasoning, relational argumentation, and synthesizing information distributed over long contexts. The proposed LM2 incorporates a memory module that acts as a contextual representation repository, interacting with input tokens via cross attention and updating through gating mechanisms. To preserve the Transformers general-purpose capabilities, LM2 maintains the original information flow while integrating a complementary memory pathway. Experimental results on the BABILong benchmark demonstrate that the LM2model outperforms both the memory-augmented RMT model by 37.1% and the baseline Llama-3.2 model by 86.3% on average across tasks. LM2 exhibits exceptional capabilities in multi-hop inference, numerical reasoning, and large-context question-answering. On the MMLU dataset, it achieves a 5.0% improvement over a pre-trained vanilla model, demonstrating that its memory module does not degrade performance on general tasks. Further, in our analysis, we explore the memory interpretability, effectiveness of memory modules, and test-time behavior. Our findings emphasize the importance of explicit memory in enhancing Transformer architectures.

解读

一句话总结

本文提出了大型记忆模型LM2,这是一种增强型解码器Transformer架构,通过引入辅助记忆模块来解决标准Transformer在多步推理、关系论证和长文本信息综合方面的局限性,在BABILong基准测试中取得了显著的性能提升。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt