mlsanityData to 14 Oct 2026

Spark Transformer: Reactivating Sparsity in FFN and Attention

arXiv 2506.06644 ↗First posted 7 Jun 2025cs.LG stat.MLcited by 5

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

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  7. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  8. 2020Longformer: The Long-Document Transformercited by 3,413
  9. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  10. 2023Mistral 7Bcited by 3,164
  11. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  12. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
38 more
  1. 2020GLU Variants Improve Transformercited by 1,804
  2. 2020Reformer: The Efficient Transformercited by 1,668
  3. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  4. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  6. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  7. 2023PaLM 2 Technical Reportcited by 1,162
  8. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
  9. 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
  10. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
  11. 2016Language Modeling with Gated Convolutional Networkscited by 702
  12. 2021Carbon Emissions and Large Neural Network Trainingcited by 567
  13. 2023The Falcon Series of Open Language Modelscited by 535
  14. 2017Deep Gradient Compression: Reducing the Communication Bandwidth for Distributed Trainingcited by 478
  15. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  16. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
  17. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
  18. 2023SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compressioncited by 367
  19. 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 245
  20. 2023PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUcited by 217
  21. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
  22. 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 202
  23. 2020The Hardware Lotterycited by 160
  24. 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 152
  25. 2024Nemotron-4 340B Technical Reportcited by 144
  26. 2019Large Memory Layers with Product Keyscited by 124
  27. 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 122
  28. 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
  29. 2020The Cost of Training NLP Models: A Concise Overviewcited by 98
  30. 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 94
  31. 2021Sparse is Enough in Scaling Transformerscited by 86
  32. 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
  33. 2024Mixture of A Million Expertscited by 72
  34. 2023Conditional Adapters: Parameter-efficient Transfer Learning with Fast Inferencecited by 69
  35. 2024ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMscited by 67
  36. 2021Memory-efficient Transformers via Top-k Attentioncited by 60
  37. 2019Understanding Top-k Sparsification in Distributed Deep Learningcited by 56
  38. 2024Training-Free Activation Sparsity in Large Language Modelscited by 55

50 most cited of 74 All 74 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.