Lune

NeurIPS2024顶会

Exploiting Activation Sparsity with Dense to Dynamic-k Mixture-of-Experts Conversion

Filip Szatkowski, Bartosz Wójcik, Mikolaj Piórczynski, Simone Scardapane

摘要

Transformer models can face practical limitations due to their high computational requirements. At the same time, such models exhibit significant activation sparsity, which can be leveraged to reduce the inference cost by converting parts of the network into equivalent Mixture-of-Experts (MoE) layers. Despite the crucial role played by activation sparsity, its impact on this process remains unexplored. We demonstrate that the efficiency of the conversion can be significantly enhanced by a proper regularization of the activation sparsity of the base model. Moreover, motivated by the high variance of the number of activated neurons for different inputs, we introduce a more effective dynamic-kk expert selection rule that adjusts the number of executed experts on a per-token basis. To achieve further savings, we extend this approach to multi-head attention projections. Finally, we develop an efficient implementation that translates these computational savings into actual wall-clock speedup. The proposed method, Dense to Dynamic-kk Mixture-of-Experts (D2DMoE), outperforms existing approaches on common NLP and vision tasks, reducing inference cost by up to 60% without significantly impacting performance.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Universal Properties of Activation Sparsity in Modern Large Language Models 引用了 Training-Free Activation Sparsity in Large Language Models
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Breaking ReLU Barrier: Generalized MoEfication for Dense Pretrained Models 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Scaling Vision with Sparse Mixture of Experts 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Vision with Sparse Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • GLaM: Efficient Scaling of Language Models with Mixture-of-Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Spark Transformer: Reactivating Sparsity in Transformer FFN and Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Spark Transformer: Reactivating Sparsity in Transformer FFN and Attention 引用了 Training-Free Activation Sparsity in Large Language Models
  • Spark Transformer: Reactivating Sparsity in Transformer FFN and Attention 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Mixture-of-Experts with Expert Choice Routing 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • OmniMoE: An Efficient MoE by Orchestrating Atomic Experts at Scale 引用了 GLaM: Efficient Scaling of Language Models with Mixture-of-Experts
  • OmniMoE: An Efficient MoE by Orchestrating Atomic Experts at Scale 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Universal Properties of Activation Sparsity in Modern Large Language ModelsFilip Szatkowski, Patryk Będkowski, Alessio Devoto, Jan Dubiński 等ICLR 2026 · 5 次引用
  2. Spark Transformer: Reactivating Sparsity in Transformer FFN and AttentionChong You, Kan Wu, Zhipeng Jia, Lin Chen 等NeurIPS 2025 · 3 次引用
  3. Breaking ReLU Barrier: Generalized MoEfication for Dense Pretrained ModelsJaeseong Lee, Seung-won Hwang, Wonpyo Park, Mingi JiEMNLP 2024 · 1 次引用
  4. Training-Free Activation Sparsity in Large Language ModelsJames Liu, Pragaash Ponnusamy, Tianle Cai, Han Guo 等ICLR 2025
  5. OmniMoE: An Efficient MoE by Orchestrating Atomic Experts at ScaleJingze Shi, Zhangyang Peng, Yizhang Zhu, Yifan WU 等ICML 2026

它引用的 Paper16

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  2. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
  3. Scaling Vision with Sparse Mixture of ExpertsCarlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann 等NeurIPS 2021 · 1,213 次引用
  4. GLaM: Efficient Scaling of Language Models with Mixture-of-ExpertsNan Du, Yanping Huang, Andrew M. Dai, Simon Tong 等ICML 2022 · 1,173 次引用
  5. Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用

相关 Paper

  1. XMoE: Sparse Models with Fine-grained and Adaptive Expert SelectionYuanhang Yang, Shiyi Qi, Wenchao Gu, Chaozheng Wang 等ACL Findings 2024 · 10 次引用
  2. Dynamic Mixture of Experts: An Auto-Tuning Approach for Efficient Transformer ModelsYongxin Guo, Zhenglin Cheng, Xiaoying Tang, Zhaopeng Tu 等ICLR 2025
  3. Dense2MoE: Restructuring Diffusion Transformer to MoE for Efficient Text-to-Image GenerationYouwei Zheng, Yuxi Ren, Xin Xia, Xuefeng Xiao 等ICCV 2025 · 1 次引用
  4. Masks Can be Learned as an Alternative to ExpertsPeiyu Liu, Tianwen Wei, Bo Zhu, Xin Zhao 等ACL 2025 · 1 次引用
  5. Exploring the Benefit of Activation Sparsity in Pre-trainingZhengyan Zhang, Chaojun Xiao, Qiujieli Qin, Yankai Lin 等ICML 2024 · 6 次引用
黄昏的海面,两侧是细线勾勒的悬崖