用户作为印迹:将每用户记忆内化为局部参数编辑
User as Engram: Internalizing Per-User Memory as Local Parametric Edits
AI总结:
提出User as Engram方法,将用户事实存储为Engram模型的哈希键控记忆表中的局部编辑,推理技能共享一个适配器,实现高精度间接推理且内存占用极小。
摘要:
语言模型中的个人记忆涉及两个问题:内容和推理技能。大脑将两者分开(每个情节在海马体中有一个稀疏的局部印迹,解释它的共享技能在缓慢的新皮层中),因此新事实不必覆盖其他一切。如今大多数个性化方法将用户事实保存在权重之外,存储在自然语言记忆文件或检索索引中。当事实被写入模型时,标准方法是每用户的LoRA适配器,这与大脑相反,将内容和技能折叠成一个全局权重增量。将用户事实写为LoRA会污染与它们无关的文本;将相同事实写为局部Engram行则数学上保持不变,导致内存占用大约减少33,000倍。因此,我们提出User as Engram:将用户内容存储为对Engram模型的哈希键控记忆表的手术式编辑,并将推理技能携带在一个共享适配器中。这种分层设计匹配了每用户LoRA的直接召回,同时平均提供5.6倍更高的间接推理准确性,并且从未使单个用户在推理方面比未触及的基座更差。编辑是一个玻璃盒:写入一个事实会在精确触发时打开其查找,添加答案所需的值,保持其他每个位置不变到最后一位,如果写入错误层则失败。由于不同用户的事实落在不相交的哈希槽中,它们的编辑可组合:许多用户同时共享一个表,可加性且无损地堆叠,而每用户LoRA(一个全局权重增量)只允许一个。在检索时,每用户Engram表不会随着检索器必须搜索的群体增长,因此在大约100个事实后,它超越了在2.5倍更大模型上的检索流水线。
英文摘要:
Personal memory in a language model is two problems: content and reasoning skill. The brain keeps the two apart (a sparse, local engram in the hippocampus for each episode, a slow neocortex for the shared skills that interpret it), so a new fact need not overwrite everything else. Most personalization today keeps a user's facts outside the weights, in a natural-language memory file or a retrieval index. When facts are written into the model instead, the standard recipe is the per-user LoRA adapter, which does the opposite of the brain, folding content and skill into one global weight delta. Writing a user's facts as a LoRA contaminates text unrelated to them; writing the same facts as local Engram rows leaves it mathematically untouched, resulting in a roughly 33,000x smaller memory footprint. We therefore propose User as Engram: store a user's content as surgical edits to the hash-keyed memory table of an Engram model, and carry the reasoning skill in one shared adapter. This layered design matches per-user LoRA's direct recall while delivering 5.6x higher indirect-reasoning accuracy on average, and never makes a single user worse at reasoning than the untouched base. The edit is a glass box: writing a fact switches on its lookup at exactly the trigger, adds the value the answer needs, leaves every other position unchanged to the last bit, and fails if written into the wrong layer. Because different users' facts land in disjoint hash slots, their edits compose: many users live in one shared table at once, stacking additively and losslessly, where a per-user LoRA, a single global weight delta, admits only one. Upon retrieval, a per-user Engram table does not grow with the population the retriever must search, so past ~100 facts it overtakes a retrieval pipeline on a 2.5x larger model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。