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

恒定内存注意力块

Constant Memory Attention Block

Borealis AI(Borealis人工智能公司);Mila – Université de Montréal(米拉研究所——蒙特利尔大学)

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

AI总结:

提出恒定内存注意力块(CMAB),在恒定内存和计算下处理上下文,应用于神经过程和时点过程,实现高效且与最先进方法竞争的性能。

摘要:

现代基础模型架构依赖注意力机制来有效捕获上下文。然而,这些方法在输入/数据点数量方面需要线性或二次内存,限制了它们在低计算领域的适用性。在这项工作中,我们提出了恒定内存注意力块(CMAB),一种新颖的通用注意力块,它在恒定内存中计算其输出,并在恒定计算中执行更新。为了突出CMAB的功效,我们介绍了用于神经过程和时点过程的方法。实验上,我们展示了我们提出的方法在显著更节省内存的同时,达到了与最先进方法竞争的结果。

英文摘要:

Modern foundation model architectures rely on attention mechanisms to effectively capture context. However, these methods require linear or quadratic memory in terms of the number of inputs/datapoints, limiting their applicability in low-compute domains. In this work, we propose Constant Memory Attention Block (CMAB), a novel general-purpose attention block that computes its output in constant memory and performs updates in constant computation. Highlighting CMABs efficacy, we introduce methods for Neural Processes and Temporal Point Processes. Empirically, we show our proposed methods achieve results competitive with state-of-the-art while being significantly more memory efficient.

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

↑