Hopfield Networks is All You Need | hopfield-layers
This blog post explains the paper Hopfield Networks is All You Need and the corresponding new PyTorch Hopfield layer. We introduce a new energy function and a corresponding new update rule which is guaranteed to converge to a local minimum of the energy function. The new energy function is a generalization (discrete states ⇒ ⇒ continuous states) of modern Hopfield Networks aka Dense Associative Memories introduced by Krotov and Hopfield and Demircigil et al. The new modern Hopfield Network with continuous states keeps the characteristics of its discrete counterparts: Due to its continuous states this new modern Hopfield Network is differentiable and can be integrated into deep learning architectures. Typically patterns are retrieved after one update which is compatible with activating the layers of deep networks. This enables an abundance of new deep learning architectures. Three useful types of Hopfield layers are provided. Surprisingly, the new update rule is the attention mechanis
Hopfield Networks is All You Need | hopfield-layers This blog post explains the paper Hopfield Networks is All You Need and the corresponding new PyTorch Hopfield layer . Table of Contents Main contributions What this blog post is about From classical Hopfield Networks to self-attention Hopfield Networks Modern Hopfield Networks New energy function for continuous-valued patterns and states The update of the new energy function is the self-attention of transformer networks Hopfield layers for Deep Learning architectures Layer Hopfield Layer HopfieldLayer Hopfield Lookup via HopfieldLayer Layer
Explore this link on the map →related reading
- Hopfield network - Wikipediaen.wikipedia.org
- Modern Hopfield network - Wikipediaen.wikipedia.org
- Neural Networks: Multi-Layer Perceptron and Hopfield Networknicolas.burrus.name
- A Mathematical Framework for Transformer Circuitstransformer-circuits.pub
- Aman's AI Journal • Primers • Ilya Sutskever's Top 30aman.ai
- Neural networks and deep learningneuralnetworksanddeeplearning.com
- Zoom In: An Introduction to Circuitsdistill.pub
- Understanding LSTM Networks -- colah's blogcolah.github.io
- NL.pdfabehrouz.github.io
- Neural Networks, Types, and Functional Programming -- colah's blogcolah.github.io
- Transformers from scratch | peterbloem.nlpeterbloem.nl
- The Little Book of Deep Learningfleuret.org