arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.02217cs.NEcs.CLcs.LGstat.ML
收藏

Hopfield网络是您所需要的一切

Hopfield Networks is All You Need

Johannes Kepler University Linz(林茨约翰开普勒大学);Institute of Advanced Research in Artificial Intelligence (IARAI)(高级人工智能研究所(IARAI));University of Oslo(奥斯陆大学)
Hubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl, Michael Widrich, Thomas Adler, Lukas Gruber, Markus Holzleitner, Milena Pavlović, Geir Kjetil … 展开作者

Hubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl, Michael Widrich, Thomas Adler, Lukas Gruber, Markus Holzleitner, Milena Pavlović, Geir Kjetil Sandve, Victor Greiff, David Kreil, Michael Kopp, Günter Klambauer, Johannes Brandstetter, Sepp Hochreiter

摘要:

我们介绍了一个现代Hopfield网络的连续状态和相应的更新规则。新的Hopfield网络可以存储指数(与关联空间的维数)许多模式,检索模式与一个更新,并具有指数小检索错误。它有三种类型的能量最小值(更新的固定点):(1)所有模式的全局固定点平均值,(2)模式子集的亚稳态平均值,以及(3)存储单个模式的固定点。新的更新规则等价于Transformers中使用的注意力机制。这种等效性使得能够表征Transformer模型的头部。这些头在第一层中优选地执行全局平均,并且在更高层中经由亚稳态执行部分平均。新的现代Hopfield网络可以作为层集成到深度学习架构中,以允许存储和访问原始输入数据、中间结果或学习的原型。这些Hopfield层实现了深度学习的新方法,超越了全连接、卷积或循环网络,并提供了池化、记忆、关联和注意力机制。我们展示了Hopfield层在各个领域的广泛适用性。Hopfield层改进了四分之三的多实例学习问题以及数十万实例的免疫库分类。在UCI的小型分类任务基准集合中,深度学习方法通常会遇到困难,与不同的机器学习方法相比,Hopfield层产生了一种新的最先进的方法。最后,Hopfield层在两个药物设计数据集上达到了最先进的水平。该实现可从以下网址获得:https://github.com/ml-jku/hopfield-layers

英文摘要:

We introduce a modern Hopfield network with continuous states and a corresponding update rule. The new Hopfield network can store exponentially (with the dimension of the associative space) many patterns, retrieves the pattern with one update, and has exponentially small retrieval errors. It has three types of energy minima (fixed points of the update): (1) global fixed point averaging over all patterns, (2) metastable states averaging over a subset of patterns, and (3) fixed points which store a single pattern. The new update rule is equivalent to the attention mechanism used in transformers. This equivalence enables a characterization of the heads of transformer models. These heads perform in the first layers preferably global averaging and in higher layers partial averaging via metastable states. The new modern Hopfield network can be integrated into deep learning architectures as layers to allow the storage of and access to raw input data, intermediate results, or learned prototypes. These Hopfield layers enable new ways of deep learning, beyond fully-connected, convolutional, or recurrent networks, and provide pooling, memory, association, and attention mechanisms. We demonstrate the broad applicability of the Hopfield layers across various domains. Hopfield layers improved state-of-the-art on three out of four considered multiple instance learning problems as well as on immune repertoire classification with several hundreds of thousands of instances. On the UCI benchmark collections of small classification tasks, where deep learning methods typically struggle, Hopfield layers yielded a new state-of-the-art when compared to different machine learning methods. Finally, Hopfield layers achieved state-of-the-art on two drug design datasets. The implementation is available at: https://github.com/ml-jku/hopfield-layers

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

↑