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

DeltaNet-PC:无需通过时间反向传播的测试时记忆

DeltaNet-PC: Test-Time Memory Without Backpropagation Through Time

Columbia University(哥伦比亚大学)

Todd Morrill, Richard Zemel

AI总结:

DeltaNet-PC将序列记忆更新视为潜在变量,推导了PC原生的逐字序列记忆方案,经实证测试可实现单/多序列及键值对的完美召回,且无需BPTT。

摘要:

序列信息的测试时记忆是任何需要快速存储和检索数据的智能系统的基础能力,大型语言模型中的注意力机制已证明了这一点。然而,Transformer及其线性注意力变体通过通过时间反向传播(BPTT)进行训练,存在内存需求巨大等缺陷。预测编码(PC)是一种通过局部更新优化预测误差能量函数的算法,它提供了一种引人注目的解决方案,但仍缺乏针对序列数据的测试时记忆。我们通过将每一步的记忆更新ΔS_t视为潜在变量而非需要学习的慢权重,开发了该问题的解决方案。通过基于标准PC的概率模型取对数概率,我们推导了适用于逐字序列记忆的PC原生解决方案,并将我们的更新规则与线性注意力文献中的常见选择(如DeltaNet)相关联。我们进行了大量实证测试以探究系统的特性,包括其扩展能力、内存占用以及从证据中推断上下文的能力(例如“bank(河流)”与“bank(金钱)”)。我们展示了DeltaNet-PC如何用于存储单条数据序列、多条数据序列以及键值关联记忆对,且具有完美的召回准确率。

英文摘要:

Test-time memorization of sequential information is a foundational capability for any intelligent system that needs to rapidly store and retrieve data, as demonstrated by the attention mechanism in large language models. However, Transformers and linear attention variants are trained via backpropagation through time (BPTT), which has drawbacks such as its enormous memory requirements. Predictive coding (PC), an algorithm that optimizes a prediction-error energy function with local updates, offers a compelling solution but still lacks test-time memory for sequential data. We develop a solution to this problem by treating the per-step memory update $ΔS_t$ as a latent variable, as opposed to a slow weight to be learned. By taking the log probability of a standard PC-based probabilistic model, we derive a PC-native solution for verbatim sequence memory, and relate our update rule to common choices in the linear attention literature (e.g., DeltaNet). We present an extensive set of empirical tests to probe our system's properties, including its scaling capacity, memory footprint, and ability to infer a context from evidence (e.g., bank (river) vs. bank (money)). We show how DeltaNet-PC can be used for storing single sequences of data, multiple sequences of data, and key-value associative memory pairs with perfect recall accuracy.

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

↑