On the Role of Hidden States of Modern Hopfield Network in Transformer
Not on the map. Why?
Abstract (arXiv)
Associative memory models based on Hopfield networks and self-attention based on key-value mechanisms have been popular approaches in the study of memory mechanisms in deep learning. It has been pointed out that the state update rule of the modern Hopfield network (MHN) in the adiabatic approximation is in agreement with the self-attention layer of Transformer. In this paper, we go beyond this approximation and investigate the relationship between MHN and self-attention. Our results show that the correspondence between Hopfield networks and Transformers can be established in a more generalized form by adding a new variable, the hidden state derived from the MHN, to self-attention. This new attention mechanism, modern Hopfield attention (MHA), allows the inheritance of attention scores from the input layer of the Transformer to the output layer, which greatly improves the nature of attention weights. In particular, we show both theoretically and empirically that MHA hidden states significantly improve serious problem of deep Transformers known as rank collapse and token uniformity. We also confirm that MHA can systematically improve accuracy without adding training parameters to the Vision Transformer or GPT. Our results provide a new case in which Hopfield networks can be a useful perspective for improving the Transformer architecture.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 47 of its 63 references that are in the map. First posted on arXiv 24 Nov 2025.
Builds on
47 of 63 references.
References · 47
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2017Random Erasing Data Augmentationcited by 1,235
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2020Hopfield Networks is All You Needcited by 461
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
35 more
- 2022How Do Vision Transformers Work?cited by 305
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2016Dense Associative Memory for Pattern Recognitioncited by 230
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
- 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 110
- 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 75
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
- 2023Energy Transformercited by 69
- 2020RealFormer: Transformer Likes Residual Attentioncited by 62
- 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
- 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 54
- 2022Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Modelscited by 52
- 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 44
- 2021Associative Memories via Predictive Codingcited by 42
- 2023On Sparse Modern Hopfield Modelcited by 41
- 2024On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysiscited by 41
- 2023ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyondcited by 39
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2017What does Attention in Neural Machine Translation Pay Attention to?cited by 30
- 2024CAMELoT: Towards Large Language Models with Training-Free Consolidated Associative Memorycited by 24
- 2021Augmented Shortcuts for Vision Transformerscited by 19
- 2024Setting the Record Straight on Transformer Oversmoothingcited by 19
- 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
- 2021Biological learning in key-value memory networkscited by 18
- 2023Simplicial Hopfield networkscited by 16
- 2023End-to-end Differentiable Clustering with Associative Memoriescited by 15
- 2022Addressing Token Uniformity in Transformers via Singular Value Transformationcited by 14
- 2022Kernel Memory Networks: A Unifying Framework for Memory Modelingcited by 11
- 2023Should We Attend More or Less? Modulating Attention for Fairnesscited by 11
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detectioncited by 9
- 2024ReViT: Enhancing Vision Transformers Feature Diversity with Attention Residual Connectionscited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.