PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 21, 20240 citationsOpen Access

Masked Matrix Multiplication for Emergent Sparsity

View Full Paper
BWBrian WheatmanMMMeghana MadhyasthaRBRandal Burns

Key Points

Key points are not available for this paper at this time.

Abstract

Artificial intelligence workloads, especially transformer models, exhibit emergent sparsity in which computations perform selective sparse access to dense data. The workloads are inefficient on hardware designed for dense computations and do not map well onto sparse data representations. We build a vectorized and parallel matrix-multiplication system A X B = C that eliminates unnecessary computations and avoids branches based on a runtime evaluation of sparsity. We use a combination of dynamic code lookup to adapt to the specific sparsity encoded in the B matrix and preprocessing of sparsity maps of the A and B matrices to compute conditional branches once for the whole computation. For a wide range of sparsity, from 60% to 95% zeros, our implementation performs fewer instructions and increases performance when compared with Intel MKL's dense or sparse matrix multiply routines. Benefits can be as large as 2 times speedup and 4 times fewer instructions.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Wheatman et al. (2024) studied this question.

synapsesocial.com/papers/68e785a2b6db6435876f7f14https://doi.org/10.48550/arxiv.2402.14118
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1A Novel Compiler Transformation for Fast Sparse Matrix Multiplication in GPUs2025
  2. 2Arrow Matrix Decomposition: A Novel Approach for Communication-Efficient Sparse Matrix Multiplication2024 · 6 citations
  3. 3Low-Bandwidth Matrix Multiplication: Faster Algorithms and More General Forms of Sparsity2024
  4. 4SPALM: A Sparsity-Pattern-Adaptive Library for Matrices2026
  5. 5Bitmap-Based Sparse Matrix-Vector Multiplication with Tensor Cores2024 · 6 citations