Spark Transformer: Reactivating Sparsity in FFN and Attention
Not on the map. Why?
Abstract (arXiv)
The discovery of the lazy neuron phenomenon in trained Transformers, where the vast majority of neurons in their feed-forward networks (FFN) are inactive for each token, has spurred tremendous interests in activation sparsity for enhancing large model efficiency. While notable progress has been made in translating such sparsity to wall-time benefits, modern Transformers have moved away from the ReLU activation function crucial to this phenomenon. Existing efforts on re-introducing activation sparsity often degrade model quality, increase parameter count, complicate or slow down training. Sparse attention, the application of sparse activation to the attention mechanism, often faces similar challenges. This paper introduces the Spark Transformer, a novel architecture that achieves a high level of activation sparsity in both FFN and the attention mechanism while maintaining model quality, parameter count, and standard training procedures. Our method realizes sparsity via top-k masking for explicit control over sparsity level. Crucially, we introduce statistical top-k, a hardware-accelerator-friendly, linear-time approximate algorithm that avoids costly sorting and mitigates significant training slowdown from standard top-k operators. Furthermore, Spark Transformer reallocates existing FFN parameters and attention key embeddings to form a low-cost predictor for identifying activated entries. This design not only mitigates quality loss from enforced sparsity, but also enhances wall-time benefit. Pretrained with the Gemma-2 recipe, Spark Transformer demonstrates competitive performance on standard benchmarks while exhibiting significant sparsity: only 8% of FFN neurons are activated, and each token attends to a maximum of 256 tokens. This sparsity translates to a 2.5x reduction in FLOPs, leading to decoding wall-time speedups of up to 1.79x on CPU and 1.40x on GPU.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 74 of its 96 references that are in the map. First posted on arXiv 7 Jun 2025.
Builds on
74 of 96 references.
References · 74
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2023Mistral 7Bcited by 3,164
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
38 more
- 2020GLU Variants Improve Transformercited by 1,804
- 2020Reformer: The Efficient Transformercited by 1,668
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023PaLM 2 Technical Reportcited by 1,162
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2016Language Modeling with Gated Convolutional Networkscited by 702
- 2021Carbon Emissions and Large Neural Network Trainingcited by 567
- 2023The Falcon Series of Open Language Modelscited by 535
- 2017Deep Gradient Compression: Reducing the Communication Bandwidth for Distributed Trainingcited by 478
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2023SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compressioncited by 367
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 245
- 2023PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUcited by 217
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 202
- 2020The Hardware Lotterycited by 160
- 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 152
- 2024Nemotron-4 340B Technical Reportcited by 144
- 2019Large Memory Layers with Product Keyscited by 124
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 122
- 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
- 2020The Cost of Training NLP Models: A Concise Overviewcited by 98
- 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 94
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
- 2024Mixture of A Million Expertscited by 72
- 2023Conditional Adapters: Parameter-efficient Transfer Learning with Fast Inferencecited by 69
- 2024ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMscited by 67
- 2021Memory-efficient Transformers via Top-k Attentioncited by 60
- 2019Understanding Top-k Sparsification in Distributed Deep Learningcited by 56
- 2024Training-Free Activation Sparsity in Large Language Modelscited by 55
50 most cited of 74 All 74 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Universal Properties of Activation Sparsity in Modern Large Language Modelscited by 7
- 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weightscited by 2
- 2026SmartGen: Seamless Disaggregated LLM Inference with Selective KV Cache Transfercited by 2
- 2025GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMscited by 1
- 2026Continual LLM Upcycling: A Predictor-Gated Bank-Wise Sparsity Training Recipe for Dense-to-Sparse LLMscited by 0
- 2026SmartGen: Seamless Disaggregated LLM Inference with Selective KV Cache Transfer30 Jul 2026
- 2026Continual LLM Upcycling: A Predictor-Gated Bank-Wise Sparsity Training Recipe for Dense-to-Sparse LLMs9 Jun 2026
- 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weights1 Feb 2026
- 2025Universal Properties of Activation Sparsity in Modern Large Language Models30 Aug 2025
- 2025GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMs19 Aug 2025