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

异构记忆增强神经网络

Heterogenous Memory Augmented Neural Networks

Tsinghua University(清华大学);University of Montréal(蒙特利尔大学);BAAI(北京智源人工智能研究院);Peking University(北京大学);HKUST(香港科技大学)

Zihan Qiu, Zhen Liu, Shuicheng Yan, Shanghang Zhang, Jie Fu

AI总结:

提出异构记忆增强方法,通过可学习记忆标记与注意力机制,在低计算开销下提升神经网络在分布内和分布外场景的性能,可即插即用于多种骨干网络。

摘要:

已有研究表明,半参数方法(将标准神经网络与外部记忆模块和数据检索等非参数组件相结合)在数据稀缺和分布外(OOD)场景中特别有用。然而,现有的半参数方法大多依赖于独立的原始数据点——这种策略由于计算成本高以及当前注意力机制无法处理大量标记,难以扩展。在本文中,我们提出了一种新颖的异构记忆增强方法用于神经网络,通过引入带有注意力机制的可学习记忆标记,可以在不产生巨大计算开销的情况下有效提升性能。我们的通用方法可以以即插即用的方式与各种骨干网络(MLP、CNN、GNN和Transformer)无缝结合。我们在分布内(ID)和OOD条件下的各种图像和基于图的任务上广泛评估了我们的方法,并展示了其与任务特定的最先进方法相比具有竞争力的性能。代码可在\url{https://github.com/qiuzh20/HMA}获取。

英文摘要:

It has been shown that semi-parametric methods, which combine standard neural networks with non-parametric components such as external memory modules and data retrieval, are particularly helpful in data scarcity and out-of-distribution (OOD) scenarios. However, existing semi-parametric methods mostly depend on independent raw data points - this strategy is difficult to scale up due to both high computational costs and the incapacity of current attention mechanisms with a large number of tokens. In this paper, we introduce a novel heterogeneous memory augmentation approach for neural networks which, by introducing learnable memory tokens with attention mechanism, can effectively boost performance without huge computational overhead. Our general-purpose method can be seamlessly combined with various backbones (MLP, CNN, GNN, and Transformer) in a plug-and-play manner. We extensively evaluate our approach on various image and graph-based tasks under both in-distribution (ID) and OOD conditions and show its competitive performance against task-specific state-of-the-art methods. Code is available at \url{https://github.com/qiuzh20/HMA}.

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

↑