LGARPFPLJul 8, 2023

Rosko: Row Skipping Outer Products for Sparse Matrix Multiplication Kernels

arXiv:2307.03930v12 citationsh-index: 6Has Code
Originality Highly original
AI Analysis

This addresses efficiency bottlenecks in deep learning inference on CPUs, offering a novel optimization that is incremental but integrates with existing methods.

The paper tackles the problem of reducing computation and memory access in sparse matrix multiplication for deep neural networks by proposing Rosko, a method that skips entire row computations with low overhead, resulting in up to a 6.5x runtime reduction on CPUs for sparsities from 65% to 99.8%.

We propose Rosko -- row skipping outer products -- for deriving sparse matrix multiplication (SpMM) kernels in reducing computation and memory access requirements of deep neural networks (DNNs). Rosko allows skipping of entire row computations during program execution with low sparsity-management overheads. We analytically derive sparse CPU kernels that adapt to given hardware characteristics to effectively utilize processor cores and minimize data movement without the need for auto-tuning or search space exploration. Rosko can be integrated with other outer product scheduling methods, allowing them to leverage row skipping by using Rosko's packing format to skip unnecessary computation. Rosko kernels outperform existing auto-tuning and search-based solutions as well as state-of-the-art vendor-optimized libraries on real hardware across a variety of neural network workloads. For matrices with sparsities ranging from 65% to 99.8% typically found in machine learning, Rosko kernels achieve up to a 6.5x runtime reduction on Intel and ARM CPUs.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes