arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.05505cs.CL
收藏

FlashMem: 通过计算复用提炼内在潜在记忆

FlashMem: Distilling Intrinsic Latent Memory via Computation Reuse

School of ASEE, Beihang University(北京航空航天大学ASEE学院);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);School of BME, Beijing Advanced Innovation Center for BME, Beihang University(北京航空航天大学生物医学工程学院/北京生物医学工程高精尖创新中心);CAIR and CECS, VinUniversity(VinUniversity计算与人工智能研究中心/计算机工程与计算机科学系)

Yubo Hou, Zhisheng Chen, Tao Wan, Zengchang Qin

AI总结:

FlashMem通过计算复用直接从临时推理状态提炼内在记忆,消除冗余重参数化,提升推理效率和持久认知能力。

摘要:

大型语言模型的无状态架构本质上缺乏保存动态上下文的机制,迫使代理重复处理历史以维持长周期自主性。尽管潜在记忆提供了解决方案,但当前方法受限于架构分离,依赖辅助编码器将记忆与推理骨干解耦。我们提出FlashMem框架,通过计算复用直接从临时推理状态提炼内在记忆。利用内部表示唯一编码输入轨迹的性质,FlashMem将最后一个隐藏状态作为交互历史的充分统计量。这使共享键值融合器能够通过直接关注骨干的冻结缓存合成记忆,消除冗余重参数化。此外,无参数的认知监控器利用注意力熵,仅在检测到高认知不确定性时触发融合。实验表明,FlashMem在性能上与重基线模型相当,同时将推理延迟减少5倍,有效弥合了效率与持久认知之间的差距。

英文摘要:

The stateless architecture of Large Language Models inherently lacks the mechanism to preserve dynamic context, compelling agents to redundantly reprocess history to maintain long-horizon autonomy. While latent memory offers a solution, current approaches are hindered by architectural segregation, relying on auxiliary encoders that decouple memory from the reasoning backbone. We propose FlashMem, a framework that distills intrinsic memory directly from transient reasoning states via computation reuse. Leveraging the property that internal representations uniquely encode input trajectories, FlashMem identifies the last hidden state as a sufficient statistic for the interaction history. This enables a Shared-KV Consolidator to synthesize memory by attending directly to the backbone's frozen cache, eliminating redundant re-parameterization. Furthermore, a parameter-free Cognitive Monitor leverages attention entropy to adaptively trigger consolidation only when high epistemic uncertainty is detected. Experiments demonstrate that FlashMem matches the performance of heavy baselines while reducing inference latency by 5 times, effectively bridging the gap between efficiency and persistent cognition.

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

↑