arXiv:2610.19308cs.DCOct 2026

Manuscript Offprint

arXiv:2610.19308

Parallel Sparse Outputs for Tensor Compilers

Adrian Gushin, Pau Sum, Willow Ahrens

Adrian Gushin

Georgia Institute of Technology

Atlanta, USA

agushin3@gatech.edu

Pau Sum

Georgia Institute of Technology

Atlanta, USA

pausum@gatech.edu

Willow Ahrens

Georgia Institute of Technology

Atlanta, USA

ahrens@gatech.edu

Abstract—Sparse tensor compilers are commonly used high-performance tools that optimize tensor algebra programs over notoriously complex sparse data structures. Despite the ever-increasing size and scale of sparse datasets, there exists astonishingly little research on developing a parallel sparse tensor compiler. Existing approaches fail to parallelize or make assumptions about access patterns or output formats that limit generality.

This paper presents Birdseed, the first tensor compiler to support all loop orderings over any standard sparse format in parallel. More specifically, Birdseed supports parallel sparse scatters and directly writes into list, bytemap, hash, and dense levels of fibertree sparse formats. Our approach exhibits asymptotic memory and time improvements over all previous work. We additionally demonstrate empirical speedups on challenging kernels to parallelize, such as histogram construction and SpMSpV.

Index Terms—sparse, tensor, parallelism, algorithms

I. INTRODUCTION

Sparse tensors are core computational abstractions that compress data containing mostly zero values, representing only the elements that contribute numerically. When data contains significantly more zeroes than nonzeroes, using a sparse representation facilitates significant memory and performance improvements [1]–[3]. Data lending itself to sparse representation appears frequently across scientific domains, including highly active research areas like quantum computing and neural networks [4]–[7]. Sparse data is massive, making performance essential to feasibility [8]–[11]. Maximizing efficiency requires optimizing for modern parallel architectures, especially on compute-bound bottleneck kernels like SpGEMM [12]. In particular, multicore CPU systems are critical targets for sparse programs because of their better branch management logic and use in edge AI systems [13]–[15].

Despite the importance of CPU-parallel sparse programming to high-performance computing, the area remains almost entirely uninvestigated. Existing systems' parallel capabilities are either fragmented and specialized or remain entirely in folklore. Vendor libraries such as Intel MKL [16], Eigen [17], and SuiteSparse GraphBLAS [18] either explicitly do not support parallelism with sparse outputs or only enable it for a highly limited number of kernels [14].

Tensor compilers offer another path to sparse programming. Systems like TACO [1], Finch [2], Taichi [19], COMET [20], and MLIR Sparse [21] enable a broader scope of expressible programs by providing a language to describe sparse tensor algebra. While some of these systems can parallelize programs with sparse inputs, none extend support to sparse outputs.

TABLE I: Feature comparison. Dense and sparse indicate output format. Appending kernels write in the order of iteration, whereas scattering kernels randomly access the output.

FrameworkParallel (CPU)
DenseSparse
AppendScatterAppendScatter
MLIR [21], [23]●●○○
TACO [1]●●○○
NACHO [22], [24]●●●○†
WingSpan [14]●●○*○*
Birdseed (this work)●●●●
  • = slower than serial. †\dagger = GPU only, ESC [25]

Two newer systems make genuine progress towards supporting parallel sparse programming. NACHO [22] optimally partitions a computation's nonzeroes and then distributes this work to multiple cores, which can all write in parallel to a sparse output. Unfortunately, NACHO's strategy is entirely unimplemented on CPUs for "scattering" kernels, which randomly access the output. Even if it were supported, NACHO's load balancing strategy requires a sorted state, preventing it from generalizing to the wider landscape of sparse tensor formats [2], [3]. WingSpan [14] has similar constraints. It uses a sharding strategy that does support sparse scatters, but requires at least one dimension in the output to be dense. It therefore supports commonly used sparse formats like compressed sparse columns (CSC), but for vectors or more compressed structures like doubly compressed sparse columns (DCSC), it relies on IO-intensive intermediate buffers that reduce performance, potentially to that of a serial algorithm.

Supporting unrestricted sparse parallelism presents significant challenges. Sparse structures require a set of strict invariants on their internal buffers. Even the most common formats, such as CSC, maintain a sorted internal state of cumulative sums [3]. Naively updating structures such as these in parallel is impossible, and lock-based strategies are slow due to over-contention [14]. Permitting a general program, which could randomly access an output stored in an arbitrary format, further increases complexity.

We propose Birdseed, the first tensor compiler to support speed-of-light construction of sparse outputs in parallel for all standard formats and programs, including both scattering and appending kernels. We summarize Birdseed's capabilities versus prior systems in Table I. We make the following specific contributions to enable these improvements:

  1. A lightweight merging algorithm to reduce privatized sparse accumulators. Our approach interoperates with arbitrary sparse outputs, including bytemaps and hash tables. Efficiently supporting these formats unlocks performance gains over hand-optimized implementations of critical scattering kernels, such as SpMSpV (2.9× geomean speedup) and outer product SpGEMM (4.1×).

  2. An interface to directly coalesce disjoint accumulators without preprocessing. This optimization allows Birdseed to avoid using symbolic execution to size its outputs, which could potentially double a kernel's work. Our fast path achieves 4.2×4.2\times geomean speedup over vendor libraries on appending kernels like SpAdd.

  3. A novel, randomized load balancing algorithm that ensures threads do not starve while merging private copies. Our approach is more general and lightweight than previous work and extends to unordered level formats, such as sparse hashes. We show our sampling strategy approximately balances work in expectation and that its runtime does not scale with the input size.

  4. A new hash structure, specialized for parallel sparse scatters in a compiler, which enables efficient outer product matrix multiply for the first time. Our hash achieves 5×5 \times serial speedup and scales to a 26.8×26.8 \times parallel speedup on outer product SpGEMM when compared to WingSpan, and 4.1×4.1 \times over parallel MKL.

References (50)