paper-with-me

Papers

Hopfield Networks is All You Need

2020-07-16 · ICLR 2021 1 · 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

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

📄 PDF Abstract BibTeX arXiv:2008.02217

Code (3)

ml-jku/hopfield-layers 공식 구현 pytorch
ml-jku/mhn-react pytorch
ppsp-team/pyhkbs pytorch

Tasks

AllDrug DesignImmune Repertoire ClassificationMultiple Instance LearningRetrieval

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Hopfield Layer A Hopfield Layer is a module that enables a network to associate two sets of vectors. This general functionality allows for…
WordPiece 설명 없음
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

A Single-Layer Asymmetric RNN: Potential Low Hardware Complexity Linear Equation Solver

2021-05-01 · Mohammad Samar Ansari

A single layer neural network for the solution of linear equations is presented. The proposed circuit is based on the standard Hopfield model albeit with the added flexibility that the interconnection weight matrix need …

Nonparametric Modern Hopfield Models

2024-04-05 · Jerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan 외

We present a nonparametric construction for deep learning compatible modern Hopfield models and utilize this framework to debut an efficient variant. Our key contribution stems from interpreting the memory storage and re…

Hopfield model with planted patterns: a teacher-student self-supervised learning model

2023-04-26 · Francesco Alemanno, Luca Camanzi, Gianluca Manzan, Daniele Tantari

While Hopfield networks are known as paradigmatic models for memory storage and retrieval, modern artificial intelligence systems mainly stand on the machine learning paradigm. We show that it is possible to formulate a …

MemorizationmodelRetrievalSelf-Supervised Learning

Brain memory working. Optimal control behavior for improved Hopfield-like models

2023-05-11 · Franco Cardin, Alberto Lovison, Amos Maritan, Aram Megighian

Recent works have highlighted the need for a new dynamical paradigm in the modeling of brain function and evolution. Specifically, these models should incorporate non-constant and asymmetric synaptic weights \(T_{ij}\) i…

On Sparse Modern Hopfield Model

2023-09-22 · NeurIPS 2023 11 · Jerry Yao-Chieh Hu, Donglin Yang, Dennis Wu, Chenwei Xu 외

We introduce the sparse modern Hopfield model as a sparse extension of the modern Hopfield model. Like its dense counterpart, the sparse modern Hopfield model equips a memory-retrieval dynamics whose one-step approximati…

modelRetrieval