Insum: Sparse GPU Kernels Simplified and Optimized with Indirect Einsums
Jaeyeon Won, Willow Ahrens, Joel S. Emer, Saman Amarasinghe

TL;DR
Insum introduces a new method for expressing and optimizing sparse GPU computations using indirect Einsums, resulting in significant speedups and code reduction compared to manual implementations.
Contribution
The paper presents a novel approach with format-conscious indirect Einsums and a compiler that efficiently generates GPU code, improving performance and reducing development effort.
Findings
Achieves 1.14x to 3.81x speedups on sparse GPU applications.
Reduces code complexity by up to 4491x compared to hand-written code.
Introduces fixed-length sparse formats GroupCOO and BlockGroupCOO.
Abstract
Programming high-performance sparse GPU kernels is notoriously difficult, requiring both substantial effort and deep expertise. Sparse compilers aim to simplify this process, but existing systems fall short in two key ways. First, they are primarily designed for CPUs and rarely produce high-performance GPU code. Second, when computations involve both sparse and dense regions, these compilers often fail to optimize the dense portions effectively. In this paper, we propose a new approach for expressing sparse computations. We start from format-agnostic Einsums over sparse tensors and rewrite them into format-conscious indirect Einsums, which explicitly encode format information by mapping sparse data and metadata onto dense tensor operations through indirect indexing. To execute indirect Einsums, we introduce the Insum compiler, which generates efficient GPU code for these Einsums by…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Advanced Data Storage Technologies · Graph Theory and Algorithms
