Lune

ICML2024Top-tier venue

On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis

Jerry Yao-Chieh Hu, Thomas Lin, Zhao Song, Han Liu

Abstract

We investigate the computational limits of the memory retrieval dynamics of modern Hopfield models from the fine-grained complexity analysis. Our key contribution is the characterization of a phase transition behavior in the efficiency of all possible modern Hopfield models based on the norm of patterns. Specifically, we establish an upper bound criterion for the norm of input query patterns and memory patterns. Only below this criterion, sub-quadratic (efficient) variants of the modern Hopfield model exist, assuming the Strong Exponential Time Hypothesis (SETH). To showcase our theory, we provide a formal example of efficient constructions of modern Hopfield models using low-rank approximation when the efficient criterion holds. This includes a derivation of a lower bound on the computational time, scaling linearly with max⁡{\max\{# of stored memory patterns, length of input query sequence}\}. In addition, we prove its memory retrieval error bound and exponential memory capacity.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP cites Modern Hopfield Networks and Attention for Immune Repertoire Classification
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models cites Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models cites The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models cites Language Models are Few-Shot Learners
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models cites On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression cites The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression cites Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression cites Language Models are Few-Shot Learners
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression cites On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)
  • Hopfield Networks is All You Need cites Modern Hopfield Networks and Attention for Immune Repertoire Classification
  • Hopfield Networks is All You Need cites Large Associative Memory Problem in Neurobiology and Machine Learning
  • Large Associative Memory Problem in Neurobiology and Machine Learning cites Hopfield Networks is All You Need
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models cites CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models cites Modern Hopfield Networks and Attention for Immune Repertoire Classification
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models cites Hopfield Networks is All You Need
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models cites Large Associative Memory Problem in Neurobiology and Machine Learning
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
  • Large Associative Memory Problem in Neurobiology and Machine Learning cites Modern Hopfield Networks and Attention for Immune Repertoire Classification
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Modern Hopfield Networks and Attention for Immune Repertoire Classification
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Hopfield Networks is All You Need
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Language Models are Few-Shot Learners
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Large Associative Memory Problem in Neurobiology and Machine Learning
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites Hopfield Networks is All You Need
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites Language Models are Few-Shot Learners
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. The Closeness of In-Context Learning and Weight Shifting for Softmax RegressionShuai Li, Zhao Song, Yu Xia, Tong Yu et al.NeurIPS 2024 · 53 citations
  2. On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)Jerry Yao-Chieh Hu, Weimin Wu, Zhuoru Li, Sophia Pi et al.NeurIPS 2024 · 49 citations
  3. Outlier-Efficient Hopfield Layers for Large Transformer-Based ModelsJerry Yao-Chieh Hu, Pei-Hsuan Chang, Haozheng Luo, Hong-Yu Chen et al.ICML 2024 · 46 citations
  4. Uniform Memory Retrieval with Larger Capacity for Modern Hopfield ModelsDennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han LiuICML 2024 · 44 citations
  5. The Fine-Grained Complexity of Gradient Computation for Training Large Language ModelsJosh Alman, Zhao SongNeurIPS 2024 · 33 citations

Builds on26

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Hopfield Networks is All You NeedHubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl et al.ICLR 2021 · 620 citations
  3. Large Associative Memory Problem in Neurobiology and Machine LearningDmitry Krotov, John J. HopfieldICLR 2021 · 202 citations
  4. Modern Hopfield Networks and Attention for Immune Repertoire ClassificationMichael Widrich, Bernhard Schäfl, Milena Pavlovic, Hubert Ramsauer et al.NeurIPS 2020 · 152 citations
  5. CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIPAndreas Fürst, Elisabeth Rumetshofer, Johannes Lehner, Viet T. Tran et al.NeurIPS 2022 · 131 citations

Related papers

  1. Nonparametric Modern Hopfield ModelsJerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan et al.ICML 2025
  2. Dynamical properties of dense associative memoryKazushi Mimura, Jun'ichi Takeuchi, Yuto Sumikawa, Yoshiyuki Kabashima et al.ICLR 2026 · 6 citations
  3. On Sparse Modern Hopfield ModelJerry Yao-Chieh Hu, Donglin Yang, Dennis Wu, Chenwei Xu et al.NeurIPS 2023 · 52 citations
  4. Provably Optimal Memory Capacity for Modern Hopfield Models: Transformer-Compatible Dense Associative Memories as Spherical CodesJerry Yao-Chieh Hu, Dennis Wu, Han LiuNeurIPS 2024 · 26 citations
  5. Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer ModelsJerry Yao-Chieh Hu, Maojiang Su, En-Jui Kuo, Zhao Song et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines