mlsanityData to 7 Oct 2026

On the Role of Hidden States of Modern Hopfield Network in Transformer

arXiv 2511.20698 ↗First posted 24 Nov 2025cs.LG cs.AIcited by 1

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  7. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  8. 2017Random Erasing Data Augmentationcited by 1,235
  9. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  10. 2015Teaching Machines to Read and Comprehendcited by 1,039
  11. 2020Hopfield Networks is All You Needcited by 461
  12. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
35 more
  1. 2022How Do Vision Transformers Work?cited by 305
  2. 2021DeepViT: Towards Deeper Vision Transformercited by 288
  3. 2016Dense Associative Memory for Pattern Recognitioncited by 230
  4. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
  5. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  6. 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
  7. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  8. 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 110
  9. 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 75
  10. 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
  11. 2023Energy Transformercited by 69
  12. 2020RealFormer: Transformer Likes Residual Attentioncited by 62
  13. 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
  14. 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 54
  15. 2022Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Modelscited by 52
  16. 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 44
  17. 2021Associative Memories via Predictive Codingcited by 42
  18. 2023On Sparse Modern Hopfield Modelcited by 41
  19. 2024On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysiscited by 41
  20. 2023ContraNorm: A Contrastive Learning Perspective on Oversmoothing and Beyondcited by 39
  21. 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
  22. 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
  23. 2017What does Attention in Neural Machine Translation Pay Attention to?cited by 30
  24. 2024CAMELoT: Towards Large Language Models with Training-Free Consolidated Associative Memorycited by 24
  25. 2021Augmented Shortcuts for Vision Transformerscited by 19
  26. 2024Setting the Record Straight on Transformer Oversmoothingcited by 19
  27. 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
  28. 2021Biological learning in key-value memory networkscited by 18
  29. 2023Simplicial Hopfield networkscited by 16
  30. 2023End-to-end Differentiable Clustering with Associative Memoriescited by 15
  31. 2022Addressing Token Uniformity in Transformers via Singular Value Transformationcited by 14
  32. 2022Kernel Memory Networks: A Unifying Framework for Memory Modelingcited by 11
  33. 2023Should We Attend More or Less? Modulating Attention for Fairnesscited by 11
  34. 2024Energy-based Hopfield Boosting for Out-of-Distribution Detectioncited by 9
  35. 2024ReViT: Enhancing Vision Transformers Feature Diversity with Attention Residual Connectionscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.