SegFold: Accelerating Sparse GEMM with a Fine-Grained Dynamic Dataflow
摘要
Generalized sparse matrix-matrix multiplication (SpGEMM) is critical in many domains. Existing CPUs and GPUs, as well as specialized accelerators, rely on static dataflows (e.g., inner product, outer product, Gustavson, etc.). Each static dataflow sacrifices some data reuse opportunities and imposes constraints on load balance. To address this inefficiency, we extend the typical SpGEMM dataflows by considering dynamism. Specifically, we add fine-grained dynamic scheduling to optimize reuse and reduce resource contention. We also develop dynamic remapping of partially completed work to improve load balance and parallelism. These ideas are formalized into a specific dataflow called Segment. To demonstrate Segment, we codesign a SpGEMM accelerator called SegFold. SegFold includes a memory controller that identifies fine-grained reuse opportunities in a local window of the stationary input array and exploits them through dynamic work assignment. It also incorporates a merge network that routes inputs to appropriate processing elements (PEs) for computation while dynamically remapping the work assigned to each PE to balance load. Across diverse densities and matrix sizes, SegFold achieves a geometric-mean speedup over state-of-the-art SpGEMM accelerators and over the best static dataflow configuration, demonstrating that adding dynamism to the dataflow design space unlocks reuse and load-balance gains that no static scheduling choice can achieve in isolation.
引用
@article{arxiv.2606.26701,
title = {SegFold: Accelerating Sparse GEMM with a Fine-Grained Dynamic Dataflow},
author = {Xinrui Wu and Hanyu Wang and Jason Cong and Tony Nowatzki},
journal= {arXiv preprint arXiv:2606.26701},
year = {2026}
}
备注
Accepted to the 53rd Annual International Symposium on Computer Architecture (ISCA 2026)