On Sparse Modern Hopfield Model
Jerry Yao-Chieh Hu, Donglin Yang, Dennis Wu, Chenwei Xu, Bo-Yu Chen, Han Liu
摘要
We introduce the sparse modern Hopfield model as a sparse extension of the modern Hopfield model. Like its dense counterpart, the sparse modern Hopfield model equips a memory-retrieval dynamics whose one-step approximation corresponds to the sparse attention mechanism. Theoretically, our key contribution is a principled derivation of a closed-form sparse Hopfield energy using the convex conjugate of the sparse entropic regularizer. Building upon this, we derive the sparse memory retrieval dynamics from the sparse energy function and show its one-step approximation is equivalent to the sparse-structured attention. Importantly, we provide a sparsity-dependent memory retrieval error bound which is provably tighter than its dense analog. The conditions for the benefits of sparsity to arise are therefore identified and discussed. In addition, we show that the sparse modern Hopfield model maintains the robust theoretical properties of its dense counterpart, including rapid fixed point convergence and exponential memory capacity. Empirically, we use both synthetic and real-world datasets to demonstrate that the sparse Hopfield model outperforms its dense counterpart in many situations. Code is available at GitHub; future updates are on arXiv. [Version: Novermber, 28, 2023] 1 While this equivalence only holds when the retrieval dynamics is applied exactly once, as originally shown in [Ramsauer et al., 2021] and later emphasized in [Krotov and Hopfield, 2021] , it allows us to view modern Hopfield models as generalized attentions with additional functionalities and hence opens new avenues for Hopfield-based architecture designs. See Appendix C for more discussions.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 31 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- 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 引用了 Language Models are Few-Shot Learners
- The Closeness of In-Context Learning and Weight Shifting for Softmax Regression 引用了 Outlier-Efficient Hopfield Layers for Large Transformer-Based 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)
- The Closeness of In-Context Learning and Weight Shifting for Softmax Regression 引用了 On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
- FiLM: Frequency improved Legendre Memory Model for Long-term Time Series Forecasting 引用了 Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 Hopfield Networks is All You Need
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
- On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models 引用了 Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models 引用了 Hopfield Networks is All You Need
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models 引用了 Language Models are Few-Shot Learners
- Outlier-Efficient Hopfield Layers for Large Transformer-Based Models 引用了 On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
- On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis 引用了 Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
- 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
- On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 Language Models are Few-Shot Learners
- On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 Outlier-Efficient Hopfield Layers for Large Transformer-Based Models
- On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
- On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis 引用了 Hopfield Networks is All You Need
- On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper31
- The Closeness of In-Context Learning and Weight Shifting for Softmax RegressionShuai Li, Zhao Song, Yu Xia, Tong Yu 等NeurIPS 2024 · 53 次引用
- 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 次引用
- On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity AnalysisJerry Yao-Chieh Hu, Thomas Lin, Zhao Song, Han LiuICML 2024 · 47 次引用
- Outlier-Efficient Hopfield Layers for Large Transformer-Based ModelsJerry Yao-Chieh Hu, Pei-Hsuan Chang, Haozheng Luo, Hong-Yu Chen 等ICML 2024 · 46 次引用
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield ModelsDennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han LiuICML 2024 · 44 次引用
它引用的 Paper16
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang 等AAAI 2021 · 7,289 次引用
- Hopfield Networks is All You NeedHubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl 等ICLR 2021 · 620 次引用
- FiLM: Frequency improved Legendre Memory Model for Long-term Time Series ForecastingTian Zhou, Ziqing Ma, Xue Wang, Qingsong Wen 等NeurIPS 2022 · 410 次引用
相关 Paper
- Nonparametric Modern Hopfield ModelsJerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan 等ICML 2025
- Dynamical properties of dense associative memoryKazushi Mimura, Jun'ichi Takeuchi, Yuto Sumikawa, Yoshiyuki Kabashima 等ICLR 2026 · 6 次引用
- Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory ModelsBeren Millidge, Tommaso Salvatori, Yuhang Song, Thomas Lukasiewicz 等ICML 2022 · 72 次引用
- Sparse and Structured Hopfield NetworksSaul José Rodrigues dos Santos, Vlad Niculae, Daniel C. McNamee, André F. T. MartinsICML 2024 · 12 次引用
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield ModelChenwei Xu, Yu-Chao Huang, Jerry Yao-Chieh Hu, Weijian Li 等ICML 2024 · 26 次引用
