Lune

DAC2025Top-tier venue

Pipirima: Predicting Patterns in Sparsity to Accelerate Matrix Algebra

Ubaid Bakhtiar, Donghyeon Joo, Bahar Asgari

Abstract

While sparsity, a feature of data in many applications, provides optimization opportunities such as reducing unnecessary computations, data transfers, and storage, it causes several challenges, too. For instance, even in state-of-the-art sparse accelerators, sparsity can result in load imbalance; a performance bottleneck. To solve such challenges, our key insight is that if while reading/streaming compressed sparse matrices we can quickly anticipate the locations of the non-zero values in a sparse matrix, we can leverage this knowledge to accelerate processing sparse matrices. To enable this, we propose Pipirima, a lightweight prediction-based sparse accelerator. Inspired by traditional branch predictors, Pipirima uses resource-friendly simple counters to predict the patterns of non-zero values in the sparse matrices. We evaluate Pipirima based on sparse matrix vector multiplication (SpMV) and sparse matrix-dense matrix multiplication (SpMM) kernels on CSR compressed matrices derived from both scientific computing and transformer models. On average, our experiments show 6×6 \times and 4×4 \times speed up over Tensaurus for SpMM and SpMV, respectively on SuiteSparse workload. Pipirima also shows 40×40 \times speed up over ExTensor for SpMM. We achieve 8.3×8.3 \times, 48.2×48.2 \times over Tensaurus and Extensor in lesser sparse transformer workloads. Piprima consumes 5.621 mm25.621 \mathrm{~mm}^{2} area and 544.93 mW power using 45 nm technology with predictor related components as the least expensive ones.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Chasoň: Supporting Cross HBM Channel Data Migration to Enable Efficient Sparse Algebraic Acceleration cites Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • Chasoň: Supporting Cross HBM Channel Data Migration to Enable Efficient Sparse Algebraic Acceleration cites MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product
  • Chasoň: Supporting Cross HBM Channel Data Migration to Enable Efficient Sparse Algebraic Acceleration cites Tensaurus: A Versatile Accelerator for Mixed Sparse-Dense Tensor Computations
  • Chasoň: Supporting Cross HBM Channel Data Migration to Enable Efficient Sparse Algebraic Acceleration cites Dual-side Sparse Tensor Core
  • Chasoň: Supporting Cross HBM Channel Data Migration to Enable Efficient Sparse Algebraic Acceleration cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
  • Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral Clustering cites Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral Clustering cites MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product
  • Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral Clustering cites Tensaurus: A Versatile Accelerator for Mixed Sparse-Dense Tensor Computations
  • Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral Clustering cites Dual-side Sparse Tensor Core
  • Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral Clustering cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
  • MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product cites Tensaurus: A Versatile Accelerator for Mixed Sparse-Dense Tensor Computations
  • MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
  • Misam: Machine Learning Assisted Dataflow Selection in Accelerators for Sparse Matrix Multiplication cites Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • Misam: Machine Learning Assisted Dataflow Selection in Accelerators for Sparse Matrix Multiplication cites MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product
  • Misam: Machine Learning Assisted Dataflow Selection in Accelerators for Sparse Matrix Multiplication cites Tensaurus: A Versatile Accelerator for Mixed Sparse-Dense Tensor Computations
  • Misam: Machine Learning Assisted Dataflow Selection in Accelerators for Sparse Matrix Multiplication cites Dual-side Sparse Tensor Core
  • Misam: Machine Learning Assisted Dataflow Selection in Accelerators for Sparse Matrix Multiplication cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
  • Dual-side Sparse Tensor Core cites MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product
  • Dual-side Sparse Tensor Core cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Misam: Machine Learning Assisted Dataflow Selection in Accelerators for Sparse Matrix MultiplicationSanjali Yadav, Amirmahdi Namjoo, Bahar AsgariMICRO 2025 · 6 citations
  2. Chasoň: Supporting Cross HBM Channel Data Migration to Enable Efficient Sparse Algebraic AccelerationUbaid Bakhtiar, Amirmahdi Namjoo, Bahar AsgariMICRO 2025 · 2 citations
  3. Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral ClusteringSanjali Yadav, Bahar AsgariMICRO 2025 · 2 citations

Builds on15

  1. SpArch: Efficient Architecture for Sparse Matrix MultiplicationZhekai Zhang, Hanrui Wang, Song Han, William J. DallyHPCA 2020 · 280 citations
  2. MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise ProductNitish Kumar Srivastava, Hanchen Jin, Jie Liu, David H. Albonesi et al.MICRO 2020 · 223 citations
  3. Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable ArchitectureLiqiang Lu, Yicheng Jin, Hangrui Bi, Zizhang Luo et al.MICRO 2021 · 221 citations
  4. Tensaurus: A Versatile Accelerator for Mixed Sparse-Dense Tensor ComputationsNitish Kumar Srivastava, Hanchen Jin, Shaden Smith, Hongbo Rong et al.HPCA 2020 · 121 citations
  5. Dual-side Sparse Tensor CoreYang Wang, Chen Zhang, Zhiqiang Xie, Cong Guo et al.ISCA 2021 · 109 citations

Related papers

  1. SpaceA: Sparse Matrix Vector Multiplication on Processing-in-Memory AcceleratorXinfeng Xie, Zheng Liang, Peng Gu, Abanti Basak et al.HPCA 2021 · 111 citations
  2. SparseCore: stream ISA and processor specialization for sparse computationGengyu Rao, Jingji Chen, Jason Yik, Xuehai QianASPLOS 2022 · 19 citations
  3. ALRESCHA: A Lightweight Reconfigurable Sparse-Computation AcceleratorBahar Asgari, Ramyad Hadidi, Tushar Krishna, Hyesoon Kim et al.HPCA 2020 · 63 citations
  4. High Performance Unstructured SpMM Computation Using Tensor CoresPatrik Okanovic, Grzegorz Kwasniewski, Paolo Sylos Labini, Maciej Besta et al.SC 2024 · 15 citations
  5. SLAWS: Spatial Locality Analysis and Workload Orchestration for Sparse Matrix MultiplicationGuoyu Li, Zheng Guan, Beichen Zhang, Jun Yu et al.ASPLOS 2026
Dusk over the sea between two cliffs drawn in fine vertical lines