Manuscript Offprint

arXiv:2609.31466

Scaffold: Support Graph Theory Based Sparsification for Graph Neural Networks

Siddhartha Shankar Das, Sai Karthik Navuluru, S M Ferdous, Ryan A. Rossi, Baris Coskunuzer, Lakshman Tamil, Edoardo Serra, Alex Pothen, Robert Rallo, Mahantesh M Halappanavar

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

ABSTRACT

Graph neural networks (GNNs) rely on message passing over graph edges, making their computational and memory costs strongly dependent on graph density. Graph sparsification offers a natural way to reduce these costs, but removing edges indiscriminately can distort important communication structure and degrade predictive performance. We introduce Scaffold, a topology-based, unsupervised graph sparsification framework derived from support graph theory preconditioners. Scaffold explicitly controls two complementary structural quantities: dilation, which measures the length of rerouting paths induced by removed edges, and congestion, which measures how strongly these rerouted paths concentrate on the retained support. By jointly controlling dilation and congestion, Scaffold preserves short communication paths while avoiding structural bottlenecks. To our knowledge, Scaffold is the first scalable GNN sparsification framework to use a joint supporting-path dilation-congestion criterion. Across 19 homophilic and heterophilic benchmarks spanning small to large graphs, Scaffold achieves the best aggregate rank among the evaluated sparsification and related methods. Using only 10%–50% of the original edges per sparse support, Scaffold recovers or closely approaches full-graph GNN performance while using less than half the memory of full-graph training and reducing end-to-end training time, including sparsification overhead. We provide an open-source software package at github.com/siddhartha047/Scaffold.

1 INTRODUCTION

Graph Neural Networks (GNNs) (Zhou et al., 2020; Wu et al., 2022a) have been remarkably successful across a wide range of graph-learning applications. GNNs operate through two iterative steps, aggregation and update, where each node first aggregates information from its neighborhood and then updates its embedding using the aggregated information (Hamilton et al., 2017). Graphs used for GNN training are typically stored in sparse formats such as coordinate (COO), compressed sparse row (CSR), or compressed sparse column (CSC). COO stores edges explicitly as source-destination index pairs and is commonly used for edge-wise Gather-scatter operation, where source-node features are gathered along edges and aggregated at destination nodes. CSR/CSC instead store the sparse adjacency matrix in compressed row/column form and support efficient sparse-matrix-dense-matrix multiplication (SpMM). These sparse aggregation operations often dominate GNN execution, with SpMM alone accounting for approximately 70% of the total computation cost (Liu et al., 2023). Since their cost scales with the number of processed edges, GNN training can become expensive on larger and denser graphs (Chen et al., 2018; Zeng et al., 2019).

A common approach to scaling GNNs is sampling (Hamilton et al., 2017; Chiang et al., 2019), which reduces per-iteration computation by typically controlling the size of the sampled computation graph rather than explicitly preserving its global structure. Graph sparsification offers a complementary structure-aware sampling perspective by selecting a subset of edges while preserving properties of the original graph so that the resulting subgraph remains an effective support for message passing (Spielman & Teng, 2011; Loukas, 2019; Hashemi et al., 2024). However, not all sparsification objectives align with the communication requirements of GNNs. Equally sized sparse graphs can induce very different communication structures, forcing originally adjacent nodes to communicate through long detours or rerouting many communication paths on a small number of edges or hub nodes. This is particularly important in the unsupervised setting, where labels and downstream task information are unavailable for identifying task-specific edge importance. The overarching goal is therefore to construct sparse graphs that preserve structural properties that support effective communication while satisfying a fixed edge budget.

Among structural properties, low dilation and low congestion are particularly relevant to sparsification. In support graph theory, dilation measures how far communication is rerouted when an edge is removed, while congestion measures the crowdedness or density of rerouted paths on the retained support. These concepts originate from combinatorial preconditioners to solve systems of linear equations, and were later formalized through support theory and congestion-dilation analysis (Vaidya, 1991; Boman & Hendrickson, 2003; Bern et al., 2006; Maggs et al., 2005). Together, they characterize how well a sparse graph supports the original graph. We bring this perspective to graph representation learning through Scaffold, a practical and scalable sparsification framework that explicitly controls dilation and congestion under a prescribed edge budget. If removing an edge forces its endpoints to communicate through a long or highly congested supporting path, that edge is poorly represented by the current sparse graph and receives higher priority for retention. Scaffold therefore constructs sparse supports in which removed connections remain represented by short paths while avoiding heavily congested communication bottlenecks.

We develop five realizations of this principle for different scalability regimes: greedy fully recomputes support scores, heap uses lazy updates, batch scores sampled candidate batches, fast uses static tree-prefix scoring for large graphs, and sample converts structural scores into a distribution over sparse graph views. Together, these variants support both fixed sparsification and stochastic GNN sampling. These sparse supports also provide practical efficiency benefits. As illustrated in Figure 1 on REDDIT,

Gather-scatter (COO) SpMM (CSR/CSC) Rest of training Scaffold

Figure

Figure 1: Runtime, memory, and accuracy trade-off.

Scaffold approaches full-graph performance at low edge-retention ratios (from 10 – 100%; X-axis) while substantially reducing end-to-end training time and peak memory in both COO- and SpMM-based implementations. Our contributions are as follows:

(i) We introduce Scaffold, a topology-based unsupervised and theoretically rigorous sparsification framework that translates support-graph dilation and congestion from combinatorial preconditioners to graph representation learning ( §2§2).

(ii) We develop a scalable family of Scaffold algorithms with different quality-cost trade-offs, supporting both fixed sparse graphs and stochastic sparse views for efficient GNN training and inference ( §3§3).

(iii) We characterize how dilation and edge congestion bound the structural and communication distortion introduced by sparsification, and empirically study their implications for the GNN message passing framework ( §3.4§3.4).

(iv) Across 19 datasets and 20 related baselines, Scaffold achieves strong predictive performance while reducing memory and end-to-end training cost. With each sparse support retaining only 30% and 50% of the original edges, Scaffold reaches within one percentage point of full-graph performance on 12/19 and 16/19 datasets, respectively ( §5§5).

References (100)

Couldn't load all references. Reload the page to try again.