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

LM2:大记忆模型

LM2: Large Memory Models

Convergence Labs Ltd.(康弗金思实验室有限公司)

Jikun Kang, Wenqi Wu, Filippos Christianos, Alex J. Chan, Fraser Greenlee, George Thomas, Marvin Purtorab, Andy Toulis

AI总结:

本文提出仅解码器Transformer架构LM2,通过辅助记忆模块解决标准Transformer在长上下文多步推理等任务的局限,在BABILong基准上大幅超越RMT和Llama-3.2,MMLU上也有提升,验证显式记忆的增强作用。

摘要:

本文介绍了大记忆模型(LM2),这是一种仅解码器Transformer架构,通过辅助记忆模块增强,旨在解决标准Transformer在多步推理、关系论证及综合长上下文分散信息方面的局限性。所提出的LM2整合了一个记忆模块,该模块作为上下文表示库,通过交叉注意力与输入标记交互,并通过门控机制更新。为保留Transformer的通用能力,LM2在集成互补记忆路径的同时维持原始信息流。在BABILong基准测试的实验结果表明,LM2模型在各任务上平均优于记忆增强的RMT模型37.1%,优于基线Llama-3.2模型86.3%。LM2在多跳推理、数值推理和大上下文问答中展现出卓越能力。在MMLU数据集上,它比预训练的 vanilla 模型提升了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.

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

↑