Mela:基于转换假说的测试时记忆巩固
Mela: Test-Time Memory Consolidation based on Transformation Hypothesis
AI总结:
Mela通过引入层次记忆模块HMM,实现测试时在线记忆巩固,提升语言模型在长上下文和多粒度记忆表示上的性能。
摘要:
记忆巩固是将短暂经历转化为稳定结构表示的过程,是人类大脑的基础组织原则,但作为现代序列模型的设计原则仍鲜有研究。本文利用已建立的神经科学记忆巩固理论和跨频率耦合,提出层次记忆模块(HMM),由两个功能不同的子模块组成,分别在不同更新频率下运行。受转换假说启发,低频子模块生成高层表示,捕捉抽象知识,高频子模块生成细粒度表示,保留更丰富的事件细节。最终的记忆输出动态重建为上下文依赖的两者组合,类似人类记忆检索的重构性质。将HMM集成到基于Transformer的语言解码器中,形成Mela,即一组具有记忆增强的语言模型,可在测试时进行在线记忆巩固。为进一步利用HMM产生的多粒度记忆表示,引入MemStack方法,将不同层次的记忆特征分布到解码器的早期层中,不引入额外标记。在语言建模实验中,Mela在所有模型大小上均优于Transformer基线。此外,当预训练上下文长度固定在4K时,Mela在显著更长的上下文中保持性能,而Transformer基线在超出训练长度后迅速退化。广泛的消融研究验证了每个组件的贡献,并提供了实际配置的指导。
英文摘要:
Memory consolidation, the process by which transient experiences are transformed into stable, structured representations, is a foundational organizing principle in the human brain, yet it remains largely unexplored as a design principle for modern sequence models. In this work, we leverage established neuroscientific theories of memory consolidation and cross-frequency coupling to propose the Hierarchical Memory Module (HMM), a neural memory architecture composed of two functionally distinct sub-modules that operate at different update frequencies. Inspired by the transformation hypothesis, the low-frequency sub-module produces high-level representations that capture abstract, gist-level knowledge, while the high-frequency sub-module produces fine-grained representations that preserve richer episodic detail. The final memory output is dynamically reconstructed as a context-dependent combination of both representations, analogous to the reconstructive nature of human memory retrieval. We integrate HMM into a Transformer-based language decoder to form Mela, a family of memory-augmented language models that perform online memory consolidation at test time. To further exploit the multi-granularity memory representations produced by HMM, we introduce MemStack, a method that distributes different levels of memory features across the early layers of the decoder without introducing additional tokens. Experiments on language modeling demonstrate that Mela outperforms Transformer baselines across all the model sizes. Moreover, with the pretrained context length fixed at 4K, Mela maintains performance on significantly longer contexts, whereas Transformer baselines degrade rapidly beyond their training length. Extensive ablation studies validate the contribution of each component and provide guidance for practical configuration.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。