arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14567cs.LGcs.CV
收藏

通过常数内存注意力块实现内存高效的神经过程

Memory Efficient Neural Processes via Constant Memory Attention Block

Borealis AI(博雷亚利斯人工智能公司);Mila – Université de Montréal(米拉-蒙特利尔大学)

Leo Feng, Frederick Tung, Hossein Hajimirsadeghi, Yoshua Bengio, Mohamed Osama Ahmed

AI总结:

针对神经过程注意力机制内存开销大的问题,提出常数内存注意力块(CMAB)及CMANPs模型,实现常数内存与计算更新,在基准上取得最先进结果且内存效率显著提升。

摘要:

神经过程(NPs)是用于高效建模预测不确定性的流行元学习方法。然而,最近的最先进方法利用了昂贵的注意力机制,限制了其应用,特别是在资源匮乏的环境中。在这项工作中,我们提出了常数内存注意力神经过程(CMANPs),一种仅需要常数内存的NP变体。为此,我们首先为交叉注意力提出了一种高效的更新操作。利用该更新操作,我们提出了常数内存注意力块(CMAB),一种新颖的注意力块,它(i)具有排列不变性,(ii)在常数内存中计算其输出,并且(iii)执行常数计算更新。最后,基于CMAB,我们详细阐述了常数内存注意力神经过程。实验上,我们展示了CMANPs在流行的NP基准上取得了最先进的结果,同时比先前方法在内存效率上显著更高。

英文摘要:

Neural Processes (NPs) are popular meta-learning methods for efficiently modelling predictive uncertainty. Recent state-of-the-art methods, however, leverage expensive attention mechanisms, limiting their applications, particularly in low-resource settings. In this work, we propose Constant Memory Attentive Neural Processes (CMANPs), an NP variant that only requires constant memory. To do so, we first propose an efficient update operation for Cross Attention. Leveraging the update operation, we propose Constant Memory Attention Block (CMAB), a novel attention block that (i) is permutation invariant, (ii) computes its output in constant memory, and (iii) performs constant computation updates. Finally, building on CMAB, we detail Constant Memory Attentive Neural Processes. Empirically, we show CMANPs achieve state-of-the-art results on popular NP benchmarks while being significantly more memory efficient than prior methods.

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

↑