Lune

EMNLP2023Top-tier venue

Towards A Unified View of Sparse Feed-Forward Network in Pretraining Large Language Model

Zeyu Liu, Tim Dettmers, Xi Lin, Veselin Stoyanov, Xian Li

Abstract

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).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Understanding the Mixture-of-Experts with Nadaraya-Watson Kernel cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Understanding the Mixture-of-Experts with Nadaraya-Watson Kernel cites Mixture-of-Experts with Expert Choice Routing
  • OneSparse: A Unified Framework for Sparse Activation Layers in Vision Models cites Improving Language Models by Retrieving from Trillions of Tokens
  • OneSparse: A Unified Framework for Sparse Activation Layers in Vision Models cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • OneSparse: A Unified Framework for Sparse Activation Layers in Vision Models cites Mixture-of-Experts with Expert Choice Routing
  • UMoE: Unifying Attention and FFN with Shared Experts cites Scaling Laws for Fine-Grained Mixture of Experts
  • UMoE: Unifying Attention and FFN with Shared Experts cites Mixture-of-Experts with Expert Choice Routing
  • Scaling Laws for Fine-Grained Mixture of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Scaling Laws for Fine-Grained Mixture of Experts cites Mixture-of-Experts with Expert Choice Routing
  • Mixture-of-Experts with Expert Choice Routing cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Scaling Laws for Fine-Grained Mixture of ExpertsJan Ludziejewski, Jakub Krajewski, Kamil Adamczewski, Maciej Pióro et al.ICML 2024 · 149 citations
  2. Understanding the Mixture-of-Experts with Nadaraya-Watson KernelChuanyang Zheng, Jiankai Sun, Yihang Gao, Enze Xie et al.ICLR 2026 · 6 citations
  3. UMoE: Unifying Attention and FFN with Shared ExpertsYuanhang Yang, Chaozheng Wang, Jing LiNeurIPS 2025 · 4 citations
  4. Steering Information Utility in Key-Value Memory for Language Model Post-TrainingChunyuan Deng, Ruidi Chang, Hanjie ChenNeurIPS 2025 · 2 citations
  5. OneSparse: A Unified Framework for Sparse Activation Layers in Vision ModelsXingkui Zhu, Dingkang Liang, Cheng Chen, Daoxin Zhang et al.CVPR 2026

Builds on11

  1. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  2. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen et al.ICLR 2021 · 1,954 citations
  3. Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai et al.ICML 2022 · 1,629 citations
  4. Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du et al.NeurIPS 2022 · 933 citations
  5. Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley et al.SC 2021 · 576 citations

Related papers

  1. Exploring the Benefit of Activation Sparsity in Pre-trainingZhengyan Zhang, Chaojun Xiao, Qiujieli Qin, Yankai Lin et al.ICML 2024 · 6 citations
  2. Hyperparameter Transfer with Mixture-of-Expert LayersTianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris HaninICML 2026 · 6 citations
  3. XMoE: Sparse Models with Fine-grained and Adaptive Expert SelectionYuanhang Yang, Shiyi Qi, Wenchao Gu, Chaozheng Wang et al.ACL Findings 2024 · 10 citations
  4. Approximating Two-Layer Feedforward Networks for Efficient TransformersRóbert Csordás, Kazuki Irie, Jürgen SchmidhuberEMNLP Findings 2023 · 7 citations
  5. Mixture of Tokens: Continuous MoE through Cross-Example AggregationSzymon Antoniak, Michal Krutul, Maciej Pióro, Jakub Krajewski et al.NeurIPS 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines