arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.34180cs.CLcs.AIcs.CV
收藏

记录重要内容:在循环记忆中解耦令牌选择与槽分配

Write What Matters: Disentangling Token Selection from Slot Allocation in Recurrent Memory

Hong Kong Baptist University(香港浸会大学);Anhui University(安徽大学)

Chen Chen, Rui Cheng

AI总结:

该研究提出因子化写入路由(FWR),解耦循环记忆中的令牌选择与槽分配,在长上下文查询任务中,针对不同数据密度验证了选择性写入的有效性,为循环记忆的写入策略提供了优化方向。

摘要:

长序列模型必须保留早期信息。全注意力机制保留所有过去令牌但计算成本高昂,而循环记忆模型将历史压缩为固定槽以实现线性时间处理。有限容量使得写入操作至关重要:干扰项会干扰有用内容,而被跳过的证据则无法被召回。现有多槽记忆模型将每个令牌写入相同数量的槽,将是否存储它与要更新的槽数量合并处理。我们提出因子化写入路由(FWR),它首先保留或跳过每个令牌,然后选择固定数量或令牌自适应数量的槽。查询仍会读取所有槽。在两个合成任务上进行十次随机种子实验,这些任务在长上下文后查询事实,我们观察到与密度相关的反转:每次写入使用四个槽时,在密集特征召回任务上,始终写入的准确率更高(0.472 vs 0.337),而在稀疏事实的Passkey任务上,学习到的选择性写入表现更好(0.222 vs 0.048)。在学习门控机制下,测试的自适应规则在两个任务上均逊于固定分配。部署时无法获取事实标签的诊断神谕在Passkey任务上达到0.372,显示出过滤干扰项的提升空间。结果表明,在信息密集的上下文应避免遗漏写入,而当干扰项占主导时需进行过滤。

英文摘要:

Long-sequence models must retain earlier information. Full attention keeps all past tokens but grows expensive, and recurrent-memory models compress history into fixed slots for linear-time processing. Limited capacity makes writes consequential: distractors can interfere with useful content, while skipped evidence cannot be recalled. Existing multi-slot memories write every token to the same number of slots, merging whether to store it with how many slots to update. We introduce Factorized Write Routing (FWR), which first keeps or skips each token and then chooses a fixed or token-adaptive number of slots. Queries still read all slots. Across ten seeds on two synthetic tasks that query facts after long contexts, we observe a density-dependent reversal. With four slots per write, long-context accuracy favors always writing on dense Feature Recall (0.472 vs 0.337), but learned selective writing on sparse-fact Passkey (0.222 vs 0.048). The tested adaptive rule underperforms fixed allocation under the learned gate on both tasks. A diagnostic oracle given fact labels unavailable at deployment reaches 0.372 on Passkey, showing headroom in filtering distractors. The results suggest avoiding missed writes in information-dense contexts and filtering distractors when they dominate.

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

↑