arXiv:2610.19489cs.PFOct 2026

Manuscript Offprint

arXiv:2610.19489

How the Dirty Set Moves: Characterizing Schedule Reuse in Incremental Sparse Matrix Multiplication

Hunter Horne, Eric Spencer, Alex Henningfield, Arslan Bisharat

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hunter Horne*, Eric Spencer†, Alex Henningfield, Arslan Bisharat†

*HorneSci

†Loyola University Chicago, Chicago, IL, United States of America

{hunter.horne, alex.henningfield}@hornesci.com, {espencer2, marslan}@luc.edu

Abstract—Sparse matrices, in which most entries are zero, are central to scientific simulation, graph analytics and machine learning, and their multiplication with dense inputs is a core parallel kernel. In many applications the matrix stays fixed while only a few input rows change per step, so the result can be updated from those rows alone, which we call the dirty set. Sparse kernels often add a second optimization based on the inspector-executor principle, in which a tiled schedule is prepared once and reused across calls. However, when this reuse remains profitable as the dirty set moves is not well characterized. In this paper, we show that retained tiled execution rarely beats direct CSC in incremental sparse matrix multiplication, although incremental execution itself remains highly profitable. Across 21 SuiteSparse matrices and controlled patterns of motion, a direct column-wise incremental update is 2.1−8.2×2.1-8.2\times faster than the best of eight full-recomputation codes, among them Intel oneMKL and PyTorch. Yet the same direct update outperforms a tiled executor that retains tile preparation and caches assembled schedules in 779 of 837 workloads. Separating reuse into per-tile preparation and cached schedules shows that the benefit comes from preparation; extra cache capacity seldom helps because a tile set rarely returns after a different one has intervened. Tiling is faster only when tiles merge many entries into each output write, a structural property that we predicted before measurement and confirmed on four held-out matrices of the same family. These results show that the structure of the matrix and the motion of the dirty set, rather than the sophistication of the schedule, determine whether reuse is profitable. We anticipate that our methodology and guidelines will help developers decide when to build schedule reuse into incremental sparse runtimes.

I. INTRODUCTION [1], [2]

A sparse matrix is a matrix in which most entries are zero. Matrices from circuit simulation, power-grid analysis, structural mechanics and graph analytics routinely have millions of rows but only a few nonzeros per row [3]. Sparse formats store only the nonzero entries and their positions. The compressed sparse row (CSR) format groups the nonzeros of each row, and the compressed sparse column (CSC) format groups the nonzeros of each column. Kernels that operate on these formats skip the zeros entirely, so their cost scales with the number of nonzeros rather than with the full matrix size. The product of a sparse matrix with a dense vector (SpMV) or with a dense matrix of several columns (SpMM) is therefore a core kernel in scientific computing, graph analytics and machine learning [4], [5].

In many applications the sparse matrix, or operator, stays fixed while its input evolves gradually. A recommender system rescores items as users submit new ratings [6]. Streaming graph systems propagate updates from a small set of modified vertices [7]. Incremental view maintenance and differential dataflow apply the same principle to queries and iterative computations [8], [9]. In each case, a step changes only a small subset of the input rows.

For a fixed operator A, this structure allows an exact incremental update. Let Xt=Xt−1+ΔXtX_t = X_{t-1} + \Delta X_t hold B input columns at step t, and let DtD_t be the indices of the nonzero rows of ΔXt\Delta X_t, that is, the row support of the update. Following the systems convention of marking modified data as dirty, we call DtD_t the dirty set. Let ADtA_{D_t} denote the columns of A indexed by DtD_t, and let ZtZ_t denote the rows of ΔXt\Delta X_t indexed by DtD_t. By linearity,

Yt=AXt=Yt−1+ADtZt.(1)Y_{t}=A X_{t}=Y_{t-1}+A_{D_{t}}Z_{t}. \tag{1}

The update touches only the columns of A indexed by DtD_t, so its cost scales with the dirty set rather than with the input. We refer to this computation as delta-input SpMM and to its use in place of full recomputation as delta execution. For B=1B = 1 it reduces to sparse matrix by sparse vector multiplication (SpMSpV). The way DtD_t changes from step to step is the support motion, and the fraction of DtD_t replaced per step is the turnover rate. Existing approaches. Sparse kernels for sparse inputs select active columns and sum their contributions [10]–[12]. Recent designs go further and prepare the operator for repeated use. A common preparation is tiling, which groups a small number of neighboring columns into a block called a tile; the kernel prepares each tile once and then processes it as a unit. TileSpMSpV converts the matrix into tiles and reuses the conversion across calls [13]. DB-SpMSpV shares blocked payloads across row and column views for changing vectors [14]. Adaptive SpMV/SpMSpV and HAM-SpMSpV select kernels from input features [15], [16]. Table I summarizes the closest designs. These designs inherit the inspector-executor principle, in which an upfront analysis is amortized over many executions that share an access pattern [17], [18].

Limitations. In delta-input SpMM, the access pattern is the dirty set, and the dirty set moves. Rows leave and join DtD_{t} at every step, so a schedule prepared for one step may not apply to the next. This implicit amortization assumption leads to three limitations in current practice. ① No study has separated the parts of a prepared schedule that survive support motion from the parts that do not. ② Current studies report kernel time and measure conversion or setup separately, so the complete cost of reuse (setup, state maintenance and output delivery) remains unknown. ③ Practitioners lack guidance on when schedule

TABLE I

CLOSEST SPARSE-INPUT EXECUTION STRATEGIES. ROWS SUMMARIZE WHAT EACH CITED STUDY EXECUTES, HOW LONG ITS PREPARED STATE LIVES, WHICH INPUTS IT ADAPTS TO AT RUN TIME AND WHICH COSTS IT REPORTS. ENTRIES DESCRIBE THE CITED STUDIES AND ARE NOT PERFORMANCE COMPARISONS ACROSS HARDWARE. THIS STUDY DIFFERS BY VARYING THE TWO LIFETIMES OF PREPARED STATE SEPARATELY AND BY CHARGING SETUP, STATE AND OUTPUT DELIVERY.

MethodExecution unitPreparation lifetimeRuntime inputsReported cost scope
Work-efficient SpMSpV [10]Selected CSC columns, output bucketsExisting CSC matrix, per-call buffersSparse vector indices and valuesMultithreaded SpMSpV, kernel time along BFS frontiers
Adaptive SpMV/SpMSpV [15]Eight GPU kernel pathsCSR/CSC and matrix features retained, trained selectorCurrent vector features, vector conversion when neededKernels, prediction overhead, BFS and incremental PageRank
TileSpMSpV [13]Matrix and vector tiles, push and pullConverted matrix reused across callsCurrent sparse-vector tiles and frontierSpMSpV and BFS, conversion measured separately
DB-SpMSpV [14]Dual-view blocks sharing one payloadOffline matrix conversion reused across vectorsGlobal block sparsity and local vector masksGPU kernels, BFS and decoding, online metadata and storage
This studyDirect columns or tile sets, B inputs sharing one dirty setOperator preparation and session reuse, varied separatelyIdentical dirty-set streams, recorded reuse historyMatched interventions, setup-inclusive epochs, state, memory and output delivery

reuse is worth implementing at all. In our measurements, a tiled executor is up to 5.75×5.75\times faster than rebuilding a CSR view after every change, yet direct CSC outperforms it in 93% of workloads with a moving dirty set. A study that compares only against the rebuild baseline would reach the opposite conclusion.

This work. This paper presents the first systematic characterization of schedule reuse in delta-input SpMM. Our key insight is that schedule reuse has two distinct lifetimes (Fig. 1). Operator preparation organizes the entries of each column tile once and remains valid for the lifetime of the operator, regardless of how DtD_{t} moves. A session is an assembled schedule for one exact set of tiles; it is beneficial only when that tile set recurs. We isolate each lifetime through matched interventions, that is, paired runs that change one factor while the kernel, input streams and output contract stay fixed. We then account for every cost that a deployed system would incur. The primary study times a single pinned core to isolate the per-step cost of reuse from scheduling and load imbalance; Observation 5 extends the comparison to multicore and distributed execution. Challenges. Answering this question raises three challenges.

① Reuse must be separated from kernel, layout and input effects, so every comparison needs identical dirty-set streams and exactly one changed factor. ② The cost of reuse is spread across setup, per-step bookkeeping, retained state and output delivery, so each term must be charged under an explicit output contract. ③ A structural explanation must be tested rather than fitted after the fact, which we address with predictions registered before timing and with matrices that the original study did not use.

Contributions. This paper makes the following contributions.

① A decomposition of schedule reuse in delta-input SpMM into operator preparation and session reuse, together with a structural work model that predicts when tiled execution can outperform direct CSC (Section II).

② A characterization methodology that combines generators of controlled support motion, a complete-output contract against eight full-recomputation baselines and a correctness check for every run (Section III).

③ A characterization of 21 SuiteSparse matrices over three repeated passes and four CPU platforms, extended to a recorded application and to multicore and distributed runs (Section IV).

④ A preregistered tile-width intervention that confirms the structural source of the tiled advantage on held-out matrices, and design guidelines for incremental sparse runtimes (Observation 3 and Section V).

Key results. Delta execution outperforms the best of eight full-recomputation implementations by 2.1–8.2×, yet direct CSC outperforms the tiled executor in 779 of 837 workloads with a moving dirty set. Tiled execution is faster only on one matrix family, whose structure compresses row writes.

References (34)