通过目标端阅读器适配实现跨模型记忆迁移
观点分析 · 2026/08/19
大型语言模型中的知识使用方法通常分为非参数检索和参数适应两类。本文研究了一种中间机制——Engram风格的哈希记忆,它通过外部可寻址表存储学习信息,并通过小型学习读取器消费。核心问题是:当这种记忆跨模型迁移时,冻结的记忆本身和目标侧读取器哪个更重要。通过跨模型冻结记忆提取实验,发现学习到的记忆内容和正确寻址都很重要,但迁移的表只有通过与目标模型对齐的读取器才能发挥作用。在下游问答任务中,双层四分支读取器几乎弥合了同模型和跨模型重用之间的差距,在受控评估协议下平均得分38.8。此外,当提供者读取器与目标接口直接兼容时,冻结工件无需目标侧训练即可提供实质性效用,而可选的读取器适应可进一步改进。结果表明,只要目标具有兼容的读取器接口,Engram可作为可重用的外部知识工件;当直接读取器重用不足时,目标侧适应可进一步改善对齐。
本文探讨了跨模型记忆迁移中冻结记忆与目标侧读取器的相对重要性,为可重用外部知识工件提供了新视角,实验设计严谨,结果具有实际指导意义。
Methods for improving knowledge use in large language models typically fall into two regimes. Non-parametric retrieval offers flexible access to external knowledge, but adds retrieval latency, context overhead, and only shallow integration with the backbone. Parametric adaptation is efficient at inference time, but entangles knowledge with model weights and can be hard to update, audit, or transfer. Engram-style hashed memory occupies a middle regime: it stores learned information in an external, addressable table, yet consumes that table through a small learned reader. This raises a basic question: when such a memory is moved across backbones, what matters more, the frozen memory itself or the target-side reader? We study this question through cross-model frozen-memory extraction, in which a memory trained on a source model is frozen and attached to a different target model, with only a lightweight reader trained. Ablations show that learned memory content and correct addressing both matter, but the transferred table becomes useful only through a reader aligned to the target model. In downstream question answering tasks, a dual-layer, four-branch reader nearly closes the gap between same-model and cross-model reuse, achieving an average score of 38.8 under our controlled evaluation protocol. Moreover, when the provider reader is directly compatible with the target interface, the frozen artifact can provide substantial utility without target-side training, while optional reader adaptation yields further improvement. These results suggest that Engram can serve as a reusable external knowledge artifact, provided that the target has access to a compatible reader interface; target-side adaptation can further improve alignment when direct reader reuse is insufficient.