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

神经注意力记忆

Neural Attention Memory

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Hyoungwook Nam, Seung Byum Seo

AI总结:

提出将注意力机制重新定义为可读写记忆架构的神经注意力记忆(NAM),在算法零样本泛化、少样本学习及长距离注意力任务中展现出优于基线的性能,可作为缩放点积注意力的高效替代。

摘要:

我们通过将注意力机制重新构想为神经网络的一种记忆架构,提出了一种新颖的视角,即神经注意力记忆(NAM)。NAM是一种可通过可微线性代数操作进行读写的内存结构。我们探索了NAM的三种用例:记忆增强神经网络(MANN)、少样本学习和高效的长距离注意力。首先,我们设计了两种基于NAM的MANN,即长短期记忆(LSAM)和NAM图灵机(NAM-TM),它们在算法零样本泛化任务中相比其他基线(如可微神经计算机(DNC))展现出更强的计算能力。接下来,我们将NAM应用于N-way K-shot学习任务,并表明与基线余弦分类器相比,它在减少假阳性方面更为有效。最后,我们实现了一个带有NAM的高效Transformer,并用长距离竞技场任务进行评估,以表明NAM可以成为缩放点积注意力的高效且有效的替代方案。

英文摘要:

We propose a novel perspective of the attention mechanism by reinventing it as a memory architecture for neural networks, namely Neural Attention Memory (NAM). NAM is a memory structure that is both readable and writable via differentiable linear algebra operations. We explore three use cases of NAM: memory-augmented neural network (MANN), few-shot learning, and efficient long-range attention. First, we design two NAM-based MANNs of Long Short-term Memory (LSAM) and NAM Turing Machine (NAM-TM) that show better computational powers in algorithmic zero-shot generalization tasks compared to other baselines such as differentiable neural computer (DNC). Next, we apply NAM to the N-way K-shot learning task and show that it is more effective at reducing false positives compared to the baseline cosine classifier. Finally, we implement an efficient Transformer with NAM and evaluate it with long-range arena tasks to show that NAM can be an efficient and effective alternative for scaled dot-product attention.

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

↑