Lune

ICML2024顶会

Outlier-Efficient Hopfield Layers for Large Transformer-Based Models

Jerry Yao-Chieh Hu, Pei-Hsuan Chang, Haozheng Luo, Hong-Yu Chen, Weijian Li, Wei-Po Wang, Han Liu

摘要

We introduce an Outlier-Efficient Modern Hopfield Model (termed OutEffHop\mathrm{OutEffHop}) and use it to address the outlier inefficiency problem of training gigantic transformer-based models. Our main contribution is a novel associative memory model facilitating outlier-efficient associative memory retrievals. Interestingly, this memory model manifests a model-based interpretation of an outlier-efficient attention mechanism (Softmax1{\rm Softmax}_1): it is an approximation of the memory retrieval process of OutEffHop\mathrm{OutEffHop}. Methodologically, this allows us to introduce novel outlier-efficient Hopfield layers as powerful alternatives to traditional attention mechanisms, with superior post-quantization performance. Theoretically, the Outlier-Efficient Modern Hopfield Model retains and improves the desirable properties of standard modern Hopfield models, including fixed point convergence and exponential storage capacity. Empirically, we demonstrate the efficacy of the proposed model across large-scale transformer-based and Hopfield-based models (including BERT, OPT, ViT, and STanHop-Net), benchmarking against state-of-the-art methods like Clipped_Softmax\mathtt{Clipped\_Softmax} and Gated_Attention\mathtt{Gated\_Attention}. Notably, OutEffHop\mathrm{OutEffHop} achieves an average reduction of 22+% in average kurtosis and 26+% in the maximum infinity norm of model outputs across four models. Code is available at GitHub; models are on Hugging Face Hub; future updates are on arXiv.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
  • Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models 引用了 Language Models are Few-Shot Learners
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models 引用了 On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)
  • On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs) 引用了 The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language 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 引用了 The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
  • The Closeness of In-Context Learning and Weight Shifting for Softmax Regression 引用了 The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • 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 引用了 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
  • 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 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • 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 引用了 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
  • 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) 引用了 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
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper22

  1. The Closeness of In-Context Learning and Weight Shifting for Softmax RegressionShuai Li, Zhao Song, Yu Xia, Tong Yu 等NeurIPS 2024 · 53 次引用
  2. 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 次引用
  3. On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity AnalysisJerry Yao-Chieh Hu, Thomas Lin, Zhao Song, Han LiuICML 2024 · 47 次引用
  4. Uniform Memory Retrieval with Larger Capacity for Modern Hopfield ModelsDennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han LiuICML 2024 · 44 次引用
  5. The Fine-Grained Complexity of Gradient Computation for Training Large Language ModelsJosh Alman, Zhao SongNeurIPS 2024 · 33 次引用

它引用的 Paper33

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  3. Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang 等AAAI 2021 · 7,289 次引用
  4. Hopfield Networks is All You NeedHubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl 等ICLR 2021 · 620 次引用
  5. Outlier Suppression: Pushing the Limit of Low-bit Transformer Language ModelsXiuying Wei, Yunchen Zhang, Xiangguo Zhang, Ruihao Gong 等NeurIPS 2022 · 238 次引用

相关 Paper

  1. Quantizable Transformers: Removing Outliers by Helping Attention Heads Do NothingYelysei Bondarenko, Markus Nagel, Tijmen BlankevoortNeurIPS 2023 · 196 次引用
  2. On the Role of Hidden States of Modern Hopfield Network in TransformerTsubasa Masumura, Masato TakiNeurIPS 2025 · 2 次引用
  3. Nonparametric Modern Hopfield ModelsJerry Yao-Chieh Hu, Bo-Yu Chen, Dennis Wu, Feng Ruan 等ICML 2025
  4. Fast and Low-Cost Genomic Foundation Models via Outlier RemovalHaozheng Luo, Chenghao Qiu, Maojiang Su, Zhihan Zhou 等ICML 2025
  5. On Sparse Modern Hopfield ModelJerry Yao-Chieh Hu, Donglin Yang, Dennis Wu, Chenwei Xu 等NeurIPS 2023 · 52 次引用
黄昏的海面,两侧是细线勾勒的悬崖