NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sparse Computations in Deep Learning Inference

Ioanna Tasou, Panagiotis Mpakos, Angelos Vlachos, Dionysios Adamopoulos, Georgios Giannakopoulos, Konstantinos Katsikopoulos, Ioannis Karaparisis, Maria Lazou, Spyridon Loukovitis, Areti Mei, Anastasia Poulopoulou, Angeliki Dimitriou, Giorgos Filandrianos, Dimitrios Galanopoulos, Vasileios Karampinis, Ilias Mitsouras, Nikolaos Spanos, Petros Anastasiadis, Ioannis Doudalis, Konstantinos Nikas, George Retsinas, Paraskevi K. Tzouveli, Christina Giannoula, Nectarios Koziris, Nikela Papadopoulou, Giorgos Stamou, Athanasios Voulodimos, Georgios I. GoumasarXiv 2025 · DOI

TL;DR

This paper addresses the growing computational demands of deep learning inference by exploring sparsity as a key mechanism for efficiency. It provides a comprehensive overview of sparsity types, sparse kernels, datasets, software tools, and performance evaluations, aiming to equip performance engineers to deploy efficient sparse DNNs in production.

What Problem Does This Paper Address?

The paper tackles the immense and ever-increasing computational, energy, and environmental footprint of deep neural network (DNN) inference. While training costs often grab headlines, the continuous operation of these models demands significant resources. Sparsity, the presence of many zero-valued elements in data or parameters, is identified as a critical but underutilized solution to drastically reduce these demands. The authors highlight that despite its potential, sparsity is not yet fully integrated into production AI systems, creating a gap that this paper aims to bridge by providing practical knowledge for performance engineers.

Methods

The paper offers a multi-faceted approach to understanding and enabling sparse DNN inference:

  • Taxonomy of Sparsity: It categorizes sparsity into enforced (weight pruning, attention sparsification), natural (inherent in graph data), and ephemeral (from activation functions like ReLU).
  • Sparse Kernels: It details how dense computations transform into sparse kernels, focusing on Sparse Matrix-Vector Multiplication (SpMV), Sparse Matrix-Matrix Multiplication (SpMM), Sampled Dense-Dense Matrix Multiplication (SDDMM), and Sparse Convolution.
  • Bibliographic Review: An extensive review of state-of-the-art implementations of these kernels on CPUs and GPUs is presented.
  • Dataset Analysis: The availability and characteristics of datasets supporting sparsity research are discussed.
  • Software Ecosystem: Current software tools and frameworks offering sparsity support are explored.
  • Performance Evaluation: The paper presents empirical results evaluating key SpMM and SDDMM kernels on CPU and GPU platforms, analyzing performance across different datasets, sparsity levels, and embedding dimensions.

Datasets

  • Graph Datasets: A collection of 18 representative graphs from diverse domains (bioinformatics, social networks, citation graphs) were used, primarily exhibiting very high sparsity (around 99.9%).
  • DLMC (Deep Learning Matrix Collection): This dataset, curated from weight tensors of pruned layers of Transformer and ResNet-50 models, was used for evaluating SpMM and SDDMM kernels. It reflects real-world sparsity patterns from deep learning models.
  • Generated Attention Masks: For SDDMM evaluation, attention masks (random, windowed, global, and BigBird) were generated based on methodologies described in the literature, combined with DLMC-derived feature values.

Key Insights and Ideas

  • Sparsity is Multifaceted: Sparsity isn't a single concept; it arises from different sources (enforced, natural, ephemeral) and manifests in various forms (structured, unstructured, semi-structured), each with distinct implications for hardware and software.
  • The "AI Race" Prioritizes Accuracy Over Efficiency (Currently): The paper suggests that the current focus on achieving higher accuracy in AI models has led to a temporary neglect of computational efficiency, but this will become critical for sustainability.
  • Performance Engineers are Crucial: The complexity of sparsity optimization requires deeper involvement from performance engineers, not just domain experts, to unlock its full potential.
  • GPU vs. CPU Performance Disparity: While GPUs generally outperform CPUs, the performance of sparse kernels on both platforms is often significantly lower than theoretical peak performance, highlighting optimization challenges.
  • LLMs Present New Sparsity Challenges: The massive scale of modern LLMs alters model redundancy profiles, making traditional sparsification techniques less reliable and necessitating new approaches.

Key Results

  • SpMM Performance: On GPUs, SpMM achieved comparable average performance across graph and DLMC datasets, utilizing only about 2.5% of theoretical peak performance. On CPUs, DLMC matrices performed better than graph matrices, especially when within the Last-Level Cache (LLC).
  • SDDMM Performance: On GPUs, DLMC matrices showed better performance than graph matrices, reaching about 2.3% of peak performance. CPU performance was generally low, with graph matrices outperforming DLMC.
  • Sparsity Impact: Increasing sparsity significantly decreases performance for both SpMM and SDDMM, with GPUs showing a steeper drop as they become underutilized.
  • Embedding Dimension (k) Impact: On GPUs, increasing 'k' boosted DLMC performance due to higher computational intensity, while graph matrices were less affected. CPU performance was more complex, influenced by LLC capacity.
  • Vendor Libraries vs. Research Kernels: Vendor libraries (cuSPARSE, MKL) offered stability and ease of integration but lower peak performance, while research kernels showed higher potential but required significant effort for integration and validation.

Limitations and Future Work

  • Limited Dataset Relevance: The DLMC dataset, while foundational, uses older models (Transformer, ResNet-50) that don't reflect the scale and architectural nuances of modern LLMs. Future work should include datasets reflecting LLM characteristics like grouped attention, fused kernels, and dynamic sparsity.
  • Missing Benchmarking Standards: The lack of standardized benchmarking processes makes fair comparison of sparse kernel implementations challenging.
  • Software Support Gaps: While semi-structured sparsity and GNNs have good support, end-to-end frameworks for deploying unstructured sparse DNNs with production quality are still missing.
  • CPU Performance Lag: CPU implementations for sparse kernels, especially SDDMM, lag significantly behind GPUs.
  • Combined Sparsity Research: The benefits of combining different sparsity forms (e.g., weight and activation sparsity in GNNs) are an interesting but currently limited research area.
  • Sparse Attention Datasets: Datasets to support experimentation with learnable sparse attention mechanisms are lacking.
  • Activation Sparsity Datasets: Datasets reflecting outputs of different activation mechanisms in modern networks are needed to facilitate performance engineer involvement.

Summary updated

BibTeX
@misc{tasou2025sparse,
  author = {Ioanna Tasou and Panagiotis Mpakos and Angelos Vlachos and Dionysios Adamopoulos and Georgios Giannakopoulos and Konstantinos Katsikopoulos and Ioannis Karaparisis and Maria Lazou and Spyridon Loukovitis and Areti Mei and Anastasia Poulopoulou and Angeliki Dimitriou and Giorgos Filandrianos and Dimitrios Galanopoulos and Vasileios Karampinis and Ilias Mitsouras and Nikolaos Spanos and Petros Anastasiadis and Ioannis Doudalis and Konstantinos Nikas and George Retsinas and Paraskevi K. Tzouveli and Christina Giannoula and Nectarios Koziris and Nikela Papadopoulou and Giorgos Stamou and Athanasios Voulodimos and Georgios I. Goumas},
  title = {{Sparse Computations in Deep Learning Inference}},
  year = {2025},
  eprint = {2512.02550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.02550},
}
Figure