Towards A Unified View of Sparse Feed-Forward Network in Pretraining Large Language Model
Zeyu Liu, Tim Dettmers, Xi Lin, Veselin Stoyanov, Xian Li
摘要
Large and sparse feed-forward layers (S-FFN) such as Mixture-of-Experts (MoE) have proven effective in scaling up Transformers model size for pretraining large language models. By only activating part of the FFN parameters conditioning on input, S-FFN improves generalization performance while keeping training and inference costs (in FLOPs) fixed. In this work, we analyzed two major design choices of S-FFN: the memory block (a.k.a. expert) size and the memory block selection method under a general conceptual framework of sparse neural memory. Using this unified framework, we compare several S-FFN architectures for language modeling and provide insights into their relative efficacy and efficiency. We found a simpler selection method — Avg-K that selects blocks through their mean aggregated hidden states, achieving lower perplexity in language model pretraining compared to existing MoE architectures including Switch Transformer (Fedus et al., 2021) and HashLayer (Roller et al., 2021).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Understanding the Mixture-of-Experts with Nadaraya-Watson Kernel 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Understanding the Mixture-of-Experts with Nadaraya-Watson Kernel 引用了 Mixture-of-Experts with Expert Choice Routing
- OneSparse: A Unified Framework for Sparse Activation Layers in Vision Models 引用了 Improving Language Models by Retrieving from Trillions of Tokens
- OneSparse: A Unified Framework for Sparse Activation Layers in Vision Models 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- OneSparse: A Unified Framework for Sparse Activation Layers in Vision Models 引用了 Mixture-of-Experts with Expert Choice Routing
- UMoE: Unifying Attention and FFN with Shared Experts 引用了 Scaling Laws for Fine-Grained Mixture of Experts
- UMoE: Unifying Attention and FFN with Shared Experts 引用了 Mixture-of-Experts with Expert Choice Routing
- Scaling Laws for Fine-Grained Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Scaling Laws for Fine-Grained Mixture of Experts 引用了 Mixture-of-Experts with Expert Choice Routing
- Mixture-of-Experts with Expert Choice Routing 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
引用它的顶会 Paper6
- Scaling Laws for Fine-Grained Mixture of ExpertsJan Ludziejewski, Jakub Krajewski, Kamil Adamczewski, Maciej Pióro 等ICML 2024 · 149 次引用
- Understanding the Mixture-of-Experts with Nadaraya-Watson KernelChuanyang Zheng, Jiankai Sun, Yihang Gao, Enze Xie 等ICLR 2026 · 6 次引用
- UMoE: Unifying Attention and FFN with Shared ExpertsYuanhang Yang, Chaozheng Wang, Jing LiNeurIPS 2025 · 4 次引用
- Steering Information Utility in Key-Value Memory for Language Model Post-TrainingChunyuan Deng, Ruidi Chang, Hanjie ChenNeurIPS 2025 · 2 次引用
- OneSparse: A Unified Framework for Sparse Activation Layers in Vision ModelsXingkui Zhu, Dingkang Liang, Cheng Chen, Daoxin Zhang 等CVPR 2026
它引用的 Paper11
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
- GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
- Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai 等ICML 2022 · 1,629 次引用
- Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用
- Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley 等SC 2021 · 576 次引用
相关 Paper
- Exploring the Benefit of Activation Sparsity in Pre-trainingZhengyan Zhang, Chaojun Xiao, Qiujieli Qin, Yankai Lin 等ICML 2024 · 6 次引用
- Hyperparameter Transfer with Mixture-of-Expert LayersTianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris HaninICML 2026 · 6 次引用
- XMoE: Sparse Models with Fine-grained and Adaptive Expert SelectionYuanhang Yang, Shiyi Qi, Wenchao Gu, Chaozheng Wang 等ACL Findings 2024 · 10 次引用
- Approximating Two-Layer Feedforward Networks for Efficient TransformersRóbert Csordás, Kazuki Irie, Jürgen SchmidhuberEMNLP Findings 2023 · 7 次引用
- Mixture of Tokens: Continuous MoE through Cross-Example AggregationSzymon Antoniak, Michal Krutul, Maciej Pióro, Jakub Krajewski 等NeurIPS 2024 · 6 次引用
