Approximating Two-Layer Feedforward Networks for Efficient Transformers
Not on the map. Why?
Cited by 21 in Mixture-of-experts, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
How to reduce compute and memory requirements of neural networks (NNs) without sacrificing performance? Many recent works use sparse Mixtures of Experts (MoEs) to build resource-efficient large language models (LMs). Here we introduce several novel perspectives on MoEs, presenting a general framework that unifies various methods to approximate two-layer NNs (e.g., feedforward blocks of Transformers), including product-key memories (PKMs). Leveraging insights from this framework, we propose methods to improve both MoEs and PKMs. Unlike prior work that compares MoEs with dense baselines under the compute-equal condition, our evaluation condition is parameter-equal, which is crucial to properly evaluate LMs. We show that our MoEs are competitive with the dense Transformer-XL on both the WikiText-103 and enwiki8 datasets at two different scales, while being much more resource efficient. This demonstrates that MoEs are relevant not only to extremely large LMs but also to any-scale resource-efficient LMs. Our code is public.
Key facts. Cited by 27 papers in the map (data through 14 Oct 2026). Builds on 36 of its 49 references that are in the map. First posted on arXiv 16 Oct 2023.
Builds on
36 of 49 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
24 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2022Toy Models of Superpositioncited by 971
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2018Universal Transformerscited by 647
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 320
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2022Unified Scaling Laws for Routed Language Modelscited by 253
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
- 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 191
- 2016Long Short-Term Memory-Networks for Machine Readingcited by 161
- 2022On the Representation Collapse of Sparse Mixture of Expertscited by 157
- 2019Large Memory Layers with Product Keyscited by 124
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 122
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2023A Study on ReLU and Softmax in Transformercited by 53
- 2021Unbiased Gradient Estimation with Balanced Assignments for Mixtures of Expertscited by 10
Built on by
Citing papers per year: 2023: 1; 2024: 12; 2025: 7; 2026: 7.
27 papers.
Sort:
By area:
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2024Mixture of A Million Expertscited by 72
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
- 2024MoEUT: Mixture-of-Experts Universal Transformerscited by 59
- 2024Upcycling Large Language Models into Mixture of Expertscited by 49
- 2023SwitchHead: Accelerating Transformers with Mixture-of-Experts Attentioncited by 34
- 2024Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Expertscited by 24
- 2024On Least Square Estimation in Softmax Gating Mixture of Expertscited by 23
- 2024Prompt-prompted Adaptive Structured Pruning for Efficient LLM Generationcited by 21
- 2024Learn To be Efficient: Build Structured Sparsity in Large Language Modelscited by 20
- 2024Ultra-Sparse Memory Networkcited by 19
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routingcited by 14
15 more
- 2026Fast-weight Product Key Memorycited by 13
- 2026Sparse Layers are Critical to Scaling Looped Language Modelscited by 11
- 2024HiRE: High Recall Approximate Top-k Estimation for Efficient LLM Inferencecited by 7
- 2024Learning Neural Networks with Sparse Activationscited by 6
- 2024LIBMoE: A Library for comprehensive benchmarking Mixture of Experts in Large Language Modelscited by 6
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2025UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learningcited by 5
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspectivecited by 4
- 2025Convergence Rates for Softmax Gating Mixture of Expertscited by 4
- 2025Improving Routing in Sparse Mixture of Experts with Graph of Tokenscited by 4
- 2026MoRE: Mixture of Reused Expertscited by 3
- 2026MoE-ViE: Mixture of Experts Vision Encoder for Efficient Image and Video Understandingcited by 1
- 2026Rethinking Multinomial Logistic Mixture of Experts with Sigmoid Gating Functioncited by 0
- 2026Mixture of Predefined Experts: Maximizing Data Usage on Vertical Federated Learningcited by 0
- 2026FoMoE: Breaking the Full-Replica Barrier with a Federation of MoEscited by 0
- 2026MoRE: Mixture of Reused Experts16 Sep 2026
- 2026MoE-ViE: Mixture of Experts Vision Encoder for Efficient Image and Video Understanding18 Aug 2026
- 2026FoMoE: Breaking the Full-Replica Barrier with a Federation of MoEs17 Jun 2026
- 2026Sparse Layers are Critical to Scaling Looped Language Models9 May 2026
- 2026Mixture of Predefined Experts: Maximizing Data Usage on Vertical Federated Learning13 Feb 2026
- 2026Rethinking Multinomial Logistic Mixture of Experts with Sigmoid Gating Function1 Feb 2026
- 2026Fast-weight Product Key Memory2 Jan 2026
- 2025UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learning26 Aug 2025
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attention7 Jun 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
- 2025Improving Routing in Sparse Mixture of Experts with Graph of Tokens1 May 2025
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing1 May 2025
15 more
- 2025Convergence Rates for Softmax Gating Mixture of Experts5 Mar 2025
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspective1 Feb 2025
- 2024Ultra-Sparse Memory Network19 Nov 2024
- 2024LIBMoE: A Library for comprehensive benchmarking Mixture of Experts in Large Language Models1 Nov 2024
- 2024Upcycling Large Language Models into Mixture of Experts10 Oct 2024
- 2024Mixture of A Million Experts4 Jul 2024
- 2024Learning Neural Networks with Sparse Activations26 Jun 2024
- 2024MoEUT: Mixture-of-Experts Universal Transformers25 May 2024
- 2024Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts22 May 2024
- 2024Prompt-prompted Adaptive Structured Pruning for Efficient LLM Generation1 Apr 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2024HiRE: High Recall Approximate Top-k Estimation for Efficient LLM Inference14 Feb 2024
- 2024Learn To be Efficient: Build Structured Sparsity in Large Language Models9 Feb 2024
- 2024On Least Square Estimation in Softmax Gating Mixture of Experts5 Feb 2024
- 2023SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention13 Dec 2023
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2024Mixture of A Million Expertscited by 72
- 2024MoEUT: Mixture-of-Experts Universal Transformerscited by 59
- 2024Upcycling Large Language Models into Mixture of Expertscited by 49
- 2023SwitchHead: Accelerating Transformers with Mixture-of-Experts Attentioncited by 34
- 2024Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Expertscited by 24
- 2024On Least Square Estimation in Softmax Gating Mixture of Expertscited by 23
- 2024Prompt-prompted Adaptive Structured Pruning for Efficient LLM Generationcited by 21
- 2024Ultra-Sparse Memory Networkcited by 19
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routingcited by 14
- 2026Sparse Layers are Critical to Scaling Looped Language Modelscited by 11
- 2024LIBMoE: A Library for comprehensive benchmarking Mixture of Experts in Large Language Modelscited by 6
12 most cited of 19 All 19 (JSON)
- 2026MoRE: Mixture of Reused Experts16 Sep 2026
- 2026FoMoE: Breaking the Full-Replica Barrier with a Federation of MoEs17 Jun 2026
- 2026Sparse Layers are Critical to Scaling Looped Language Models9 May 2026
- 2026Mixture of Predefined Experts: Maximizing Data Usage on Vertical Federated Learning13 Feb 2026
- 2025UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learning26 Aug 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
- 2025Improving Routing in Sparse Mixture of Experts with Graph of Tokens1 May 2025
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing1 May 2025
- 2025Convergence Rates for Softmax Gating Mixture of Experts5 Mar 2025
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspective1 Feb 2025
- 2024Ultra-Sparse Memory Network19 Nov 2024
- 2024LIBMoE: A Library for comprehensive benchmarking Mixture of Experts in Large Language Models1 Nov 2024
12 newest of 19 All 19 (JSON)
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
- 2024Learn To be Efficient: Build Structured Sparsity in Large Language Modelscited by 20
- 2026Fast-weight Product Key Memorycited by 13
- 2024Learning Neural Networks with Sparse Activationscited by 6
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2026Fast-weight Product Key Memory2 Jan 2026
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attention7 Jun 2025
- 2024Learning Neural Networks with Sparse Activations26 Jun 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2024Learn To be Efficient: Build Structured Sparsity in Large Language Models9 Feb 2024
Similar, not cited
Close in wording, no citation either way
- 2023Towards A Unified View of Sparse Feed-Forward Network in Pretraining Large Language Model
- 2022Efficient Sparsely Activated Transformers
- 2022Who Says Elephants Can't Run: Bringing Large Scale MoE Models into Cloud Scale Production
- 2025Analytical FFN-to-MoE Restructuring via Activation Pattern Analysis
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Models
- 2024Dense Training, Sparse Inference: Rethinking Training of Mixture-of-Experts Language Models
- 2024Toward Inference-optimal Mixture-of-Expert Large Language Models
- 2023Towards Being Parameter-Efficient: A Stratified Sparsely Activated Transformer with Dynamic Capacity