MemoryAthena:在潜在记忆与生成记忆上的自适应路由

·

研究论文 · 2026/09/24

学习型记忆方法将信息存储在显式表中,并通过单独的读取器使用,允许寻址、存储和读取独立修改。我们研究有用的记忆是否也可以生成而不仅仅是检索。MemoryAthena 使用三条路径:直接 Engram 检索(E)、从检索到的 Engram 线索生成(GE),以及不查询记忆表而从因果骨干状态生成(GH)。生成的记忆有条件地有用:在一个上下文中可以补充 E,但在另一个上下文中可能干扰 E。因此,MemoryAthena 将 E 视为锚点,并学习何时应让生成的表示介入。在骨干、记忆、生成器和读取器冻结的情况下,一个轻量级因果路由头根据 GE 和 GH 相对于 E 的反事实未来令牌似然优势进行训练。在推理时,被接受的候选通过有界插值修改 E 残差,而拒绝则精确恢复直接路径。在问答任务上,MemoryAthena 将同一检查点的直接路径的五任务平均值从 37.65 提高到 39.28,而六任务通用 NLP 平均值从 76.73 提高到 79.13。完整的记忆侧系统包含约 2.01 亿参数,不包括冻结的骨干。进一步分析显示 E、GE 和 GH 在不同任务和输入之间具有互补优势。这些结果支持将生成记忆作为直接检索的选择性校正,并强调路由何时、哪个以及以多强程度介入是核心挑战。

该研究提出了一种新颖的记忆增强框架,通过动态路由生成记忆来选择性修正直接检索,在多个任务上取得一致提升,且参数效率高,为记忆增强模型的设计提供了新思路。

Learned-memory methods store information in an explicit table and consume it through a separate reader, allowing addressing, storage, and reading to be modified independently. We study whether useful memory can also be generated rather than only retrieved. MemoryAthena uses three pathways: direct Engram retrieval (E), generation from retrieved Engram cues (GE), and generation from causal backbone states without consulting the memory table (GH). Generated memory is conditionally useful: it can complement E in one context but interfere with it in another. MemoryAthena therefore treats E as an anchor and learns when a generated representation should intervene. With the backbone, memory, generators, and readers frozen, a lightweight causal routing head is trained from counterfactual future-token likelihood advantages of GE and GH relative to E. At inference time, an admitted candidate modifies the E residual through bounded interpolation, while rejection recovers the direct pathway exactly. On question answering, MemoryAthena raises the five-task average from 37.65 to 39.28 over the direct pathway of the same checkpoint, while the six-task general-NLP average increases from 76.73 to 79.13. The complete memory-side system contains approximately 201M parameters, excluding the frozen backbone. Further analyses show complementary strengths among E, GE, and GH across tasks and inputs. These results support generated memory as a selective correction to direct retrieval and highlight routing when, which, and how strongly to intervene as the central challenge.

阅读原文

参与讨论