Lune

NeurIPS2024顶会

Provably Optimal Memory Capacity for Modern Hopfield Models: Transformer-Compatible Dense Associative Memories as Spherical Codes

Jerry Yao-Chieh Hu, Dennis Wu, Han Liu

摘要

We study the optimal memorization capacity of modern Hopfield models and Kernelized Hopfield Models (KHMs), a transformer-compatible class of Dense Associative Memories. We present a tight analysis by establishing a connection between the memory configuration of KHMs and spherical codes from information theory. Specifically, we treat the stored memory set as a specialized spherical code. This enables us to cast the memorization problem in KHMs into a point arrangement problem on a hypersphere. We show that the optimal capacity of KHMs occurs when the feature space allows memories to form an optimal spherical code. This unique perspective leads to: (i) An analysis of how KHMs achieve optimal memory capacity, and identify corresponding necessary conditions. Importantly, we establish an upper capacity bound that matches the well-known exponential lower bound in the literature. This provides the first tight and optimal asymptotic memory capacity for modern Hopfield models. (ii) A sub-linear time algorithm U-Hop\mathtt{U}\text{-}\mathtt{Hop}+ to reach KHMs' optimal capacity. (iii) An analysis of the scaling behavior of the required feature dimension relative to the number of stored memories. These efforts improve both the retrieval capability of KHMs and the representation learning of corresponding transformers. Experimentally, we provide thorough numerical results to back up theoretical findings.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimization 引用了 Hopfield Networks is All You Need
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression 引用了 On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 Hopfield Networks is All You Need
  • ATLAS: Learning to Optimally Memorize the Context at Test Time 引用了 It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online Optimization
  • ATLAS: Learning to Optimally Memorize the Context at Test Time 引用了 Hopfield Networks is All You Need
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 Scalable Diffusion Models with Transformers
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 Hopfield Networks is All You Need
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper19

  1. It's All Connected: A Journey Through Test-Time Memorization, Attentional Bias, Retention, and Online OptimizationAli Behrouz, Meisam Razaviyayn, Peilin Zhong, Vahab MirrokniICLR 2026 · 63 次引用
  2. ATLAS: Learning to Optimally Memorize the Context at Test TimeAli Behrouz, Zeman Li, Praneeth Kacham, Majid Daliri 等ICML 2026 · 57 次引用
  3. The Closeness of In-Context Learning and Weight Shifting for Softmax RegressionShuai Li, Zhao Song, Yu Xia, Tong Yu 等NeurIPS 2024 · 53 次引用
  4. On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)Jerry Yao-Chieh Hu, Weimin Wu, Zhuoru Li, Sophia Pi 等NeurIPS 2024 · 49 次引用
  5. Uniform Memory Retrieval with Larger Capacity for Modern Hopfield ModelsDennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han LiuICML 2024 · 44 次引用

它引用的 Paper31

  1. Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo 等NeurIPS 2022 · 8,168 次引用
  2. Scalable Diffusion Models with TransformersWilliam Peebles, Saining XieICCV 2023 · 5,568 次引用
  3. Hopfield Networks is All You NeedHubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl 等ICLR 2021 · 620 次引用
  4. Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm SelectionYu Bai, Fan Chen, Huan Wang, Caiming Xiong 等NeurIPS 2023 · 356 次引用
  5. A Geometric Analysis of Neural Collapse with Unconstrained FeaturesZhihui Zhu, Tianyu Ding, Jinxin Zhou, Xiao Li 等NeurIPS 2021 · 303 次引用

相关 Paper

  1. Nonparametric Modern Hopfield ModelsJerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan 等ICML 2025
  2. Geometric Entropy and Retrieval Phase Transitions in Continuous Thermal Dense Associative MemoryTatiana Petrova, Evgeny Polyachenko, Radu StateICML 2026
  3. Dense Associative Memory Through the Lens of Random FeaturesBenjamin Hoover, Duen Horng Chau, Hendrik Strobelt, Parikshit Ram 等NeurIPS 2024 · 18 次引用
  4. On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity AnalysisJerry Yao-Chieh Hu, Thomas Lin, Zhao Song, Han LiuICML 2024 · 47 次引用
  5. Dynamical properties of dense associative memoryKazushi Mimura, Jun'ichi Takeuchi, Yuto Sumikawa, Yoshiyuki Kabashima 等ICLR 2026 · 6 次引用
黄昏的海面,两侧是细线勾勒的悬崖