CAMELoT:面向无需训练的统一联想记忆的大语言模型
CAMELoT: Towards Large Language Models with Training-Free Consolidated Associative Memory
AI总结:
本文提出CAMELoT,一种无需训练的联想记忆模块,可耦合到任意冻结的大语言模型,通过将token表示整合为非参数分布模型来处理任意长序列,显著降低长上下文建模困惑度并改进上下文学习。
摘要:
大语言模型(LLMs)由于高昂的内存和运行时成本,难以处理长输入序列。记忆增强模型已成为解决这一问题的一种有前景的方案,但当前方法受限于有限的记忆容量,并且需要昂贵的重新训练才能与新的LLM集成。在这项工作中,我们引入了一个联想记忆模块,该模块可以无需重新训练地耦合到任何预训练(冻结的)基于注意力的LLM上,使其能够处理任意长的输入序列。与以往方法不同,我们的联想记忆模块将单个token的表示整合到一个非参数分布模型中,并通过适当平衡输入数据的新颖性和新近性来动态管理。通过从这个统一的联想记忆中检索信息,基础LLM在标准基准上评估时,与其他基线相比,在长上下文建模中可以实现显著的困惑度降低(在Arxiv上最高达29.7%)。这种我们称之为CAMELoT(Consolidated Associative Memory Enhanced Long Transformer,统一联想记忆增强的长Transformer)的架构,即使在仅有128个token的极小上下文窗口下也展现出优越的性能,并且还能够在更大规模的演示集上实现改进的上下文学习。
英文摘要:
Large Language Models (LLMs) struggle to handle long input sequences due to high memory and runtime costs. Memory-augmented models have emerged as a promising solution to this problem, but current methods are hindered by limited memory capacity and require costly re-training to integrate with a new LLM. In this work, we introduce an associative memory module which can be coupled to any pre-trained (frozen) attention-based LLM without re-training, enabling it to handle arbitrarily long input sequences. Unlike previous methods, our associative memory module consolidates representations of individual tokens into a non-parametric distribution model, dynamically managed by properly balancing the novelty and recency of the incoming data. By retrieving information from this consolidated associative memory, the base LLM can achieve significant (up to 29.7% on Arxiv) perplexity reduction in long-context modeling compared to other baselines evaluated on standard benchmarks. This architecture, which we call CAMELoT (Consolidated Associative Memory Enhanced Long Transformer), demonstrates superior performance even with a tiny context window of 128 tokens, and also enables improved in-context learning with a much larger set of demonstrations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。