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

HeLa-Mem:基于Hebb学习和联想记忆的LLM代理

HeLa-Mem: Hebbian Learning and Associative Memory for LLM Agents

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Jilin University(吉林大学);The Chinese University of Hong Kong(香港中文大学)

Jinchang Zhu, Jindong Li, Cheng Zhang, Jiahong Liu, Menglin Yang

AI总结:

HeLa-Mem通过生物启发的动态图模型,结合联想学习与语义存储,提升LLM在长时记忆中的表现,实验显示在四个问题类别上效果更优且使用更少上下文令牌。

摘要:

长期记忆是大型语言模型代理的关键挑战,固定上下文窗口无法在长对话中保持连贯性。现有记忆系统将对话历史表示为无结构嵌入向量,通过语义相似性检索信息。这种范式无法捕捉人类记忆的联想结构,其中相关经验通过重复共激活逐步加强联系。受认知神经科学启发,我们识别出三个生物记忆核心机制:联想、巩固和扩散激活,这些机制在现有研究中仍缺失。为此,我们提出HeLa-Mem,一种生物启发的记忆架构,将记忆建模为具有Hebb学习动态的动态图。HeLa-Mem采用双层组织:(1)一个通过共激活模式演变的事件记忆图,(2)通过Hebbian蒸馏填充的语义记忆存储,其中反思代理识别密集连接的记忆枢纽并将其蒸馏为结构化、可重用的语义知识。这种双路径设计利用了语义相似性和学习的关联,模仿人类认知中的事件-语义区分。在LoCoMo实验中,HeLa-Mem在四个问题类别上表现更优,同时使用显著更少的上下文令牌。代码可在GitHub上获得:https://github.com/ReinerBRO/HeLa-Mem

英文摘要:

Long-term memory is a critical challenge for Large Language Model agents, as fixed context windows cannot preserve coherence across extended interactions. Existing memory systems represent conversation history as unstructured embedding vectors, retrieving information through semantic similarity. This paradigm fails to capture the associative structure of human memory, wherein related experiences progressively strengthen interconnections through repeated co-activation. Inspired by cognitive neuroscience, we identify three mechanisms central to biological memory: association, consolidation, and spreading activation, which remain largely absent in current research. To bridge this gap, we propose HeLa-Mem, a bio-inspired memory architecture that models memory as a dynamic graph with Hebbian learning dynamics. HeLa-Mem employs a dual-level organization: (1) an episodic memory graph that evolves through co-activation patterns, and (2) a semantic memory store populated via Hebbian Distillation, wherein a Reflective Agent identifies densely connected memory hubs and distills them into structured, reusable semantic knowledge. This dual-path design leverages both semantic similarity and learned associations, mirroring the episodic-semantic distinction in human cognition. Experiments on LoCoMo demonstrate superior performance across four question categories while using significantly fewer context tokens. Code is available on GitHub: https://github.com/ReinerBRO/HeLa-Mem

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

↑