Lune

ICML2024Top-tier venue

Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models

Dennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han Liu

Abstract

We propose a two-stage memory retrieval dynamics for modern Hopfield models, termed U-Hop\mathtt{U\text{-}Hop}, with enhanced memory capacity. Our key contribution is a learnable feature map Φ\Phi which transforms the Hopfield energy function into kernel space. This transformation ensures convergence between the local minima of energy and the fixed points of retrieval dynamics within the kernel space. Consequently, the kernel norm induced by Φ\Phi serves as a novel similarity measure. It utilizes the stored memory patterns as learning data to enhance memory capacity across all modern Hopfield models. Specifically, we accomplish this by constructing a separation loss LΦ\mathcal{L}_\Phi that separates the local minima of kernelized energy by separating stored memory patterns in kernel space. Methodologically, U-Hop\mathtt{U\text{-}Hop} memory retrieval process consists of: (Stage I) minimizing separation loss for a more uniform memory (local minimum) distribution, followed by (Stage II) standard Hopfield energy minimization for memory retrieval. This results in a significant reduction of possible metastable states in the Hopfield energy function, thus enhancing memory capacity by preventing memory confusion. Empirically, with real-world datasets, we demonstrate that U-Hop\mathtt{U\text{-}Hop} outperforms all existing modern Hopfield models and state-of-the-art similarity measures, achieving substantial improvements in both associative memory retrieval and deep learning tasks. Code is available at https://github.com/MAGICS-LAB/UHop ; future updates are on arXiv:2404.03827

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.

27 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

  • Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
  • 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 Fine-Grained Complexity of Gradient Computation for Training Large Language Models cites On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
  • On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis cites The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting cites Reformer: The Efficient Transformer
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
  • 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 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)
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression cites On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models cites On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
  • On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) cites On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers27

  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. On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity AnalysisJerry Yao-Chieh Hu, Thomas Lin, Zhao Song, Han LiuICML 2024 · 47 citations
  4. 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
  5. The Fine-Grained Complexity of Gradient Computation for Training Large Language ModelsJosh Alman, Zhao SongNeurIPS 2024 · 33 citations

Builds on39

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
  4. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  5. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations

Related papers

  1. 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
  2. Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory ModelsBeren Millidge, Tommaso Salvatori, Yuhang Song, Thomas Lukasiewicz et al.ICML 2022 · 72 citations
  3. Nonparametric Modern Hopfield ModelsJerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan et al.ICML 2025
  4. Adaptive Hopfield Network: Rethinking Similarities in Associative MemoryShurong Wang, Yuqi Pan, Zhuoyang Shen, Meng Zhang et al.ICLR 2026 · 1 citation
  5. On Sparse Modern Hopfield ModelJerry Yao-Chieh Hu, Donglin Yang, Dennis Wu, Chenwei Xu et al.NeurIPS 2023 · 52 citations
Dusk over the sea between two cliffs drawn in fine vertical lines