Spectral Graph Sparsification Preserves Representation Geometry in Graph Neural Networks

Sanjukta KrishnagopalNeurIPS 2026

TL;DR

When we prune edges from massive graphs to speed up Graph Neural Networks (GNNs), we usually only check if the model's final predictions stay accurate. This paper proves—both mathematically and empirically—that principled spectral sparsification also preserves the internal geometry of the learned embeddings. If you rely on GNN hidden states for clustering, retrieval, or scientific interpretability, you can aggressively trim your graph without warping the latent space.

What Problem Does This Paper Address?

Graph Neural Networks are fantastic at learning from relational data, from citation networks to molecular structures. The catch? Real-world graphs can be enormous and dense, making message-passing computationally painful.

A classic remedy is graph sparsification: systematically tossing out edges while reweighting the survivors so the sparse graph behaves much like the dense original. Usually, researchers judge a sparsifier by asking two questions: Did training speed up? and Did test accuracy hold?

Here, Sanjukta Krishnagopal asks a deeper, representation-level question: What happens to the hidden embeddings? Two models can achieve identical classification accuracy while organizing their internal feature spaces in wildly different ways. Because engineers and scientists frequently extract GNN embeddings for downstream tasks like nearest-neighbor retrieval, transfer learning, and biological visualization, warping that latent geometry is a quiet hazard. Does pruning the graph scramble the map of the hidden space?

Methods

The paper bridges classical spectral graph theory and deep representation learning by focusing on polynomial-filter GNNs—a broad family of architectures (including ChebNet and standard GCNs) where each layer applies a finite-degree polynomial of a graph operator (like the Laplacian $L$) before mixing features and applying nonlinearities.

  • What’s standard: The author uses classical $\varepsilon$-spectral sparsification (specifically testing effective-resistance sampling, where edges are kept based on how crucial they are to keeping the graph connected, analogous to electrical resistors in a network) so the sparse Laplacian $\widetilde{L}$ approximates $L$ within a factor of $(1 \pm \varepsilon)$.
  • What’s new: Krishnagopal builds a mathematical chain of perturbation guarantees from the graph all the way to the latent geometry and optimization dynamics:
  • Filter & Embedding Stability: Proving that an $\varepsilon$-spectral sparsifier perturbs polynomial filters and multilayer nonlinear embeddings $Z$ by at most $O(\varepsilon)$, without any hidden exponential blowup in graph size.
  • Gram Matrix Geometry: Upgrading embedding stability to the Gram matrix ($ZZ^\top$), which encodes all pairwise inner products between node embeddings. Controlling the Gram matrix automatically guarantees the stability of pairwise distances, class centroids, and within-class covariance.
  • Training Dynamics: Proving finite-time stability under full-batch gradient descent, showing that weight trajectories trained on dense vs. sparse graphs diverge smoothly and proportionally to $\varepsilon$.

Datasets

No new benchmarks are introduced; instead, the author pairs controlled synthetic environments with standard real-world datasets:

  • Synthetic Graphs: Weighted Stochastic Block Models (SBMs, capturing community structure) and geometric $k$-NN graphs (capturing manifold structure).
  • Real-World Graphs: FashionMNIST (2,200 nodes), Cora (2,708 citation network nodes), and Paul15 (2,730 cells from a single-cell RNA-seq dataset profiling myeloid progenitors).

Key Insights and Ideas

  • The Perturbation Chain Holds End-to-End: The core theoretical "aha" is the clean implication chain: $L \approx \widetilde{L} \implies p(L) \approx p(\widetilde{L}) \implies Z \approx \widetilde{Z} \implies ZZ^\top \approx \widetilde{Z}\widetilde{Z}^\top$. Because the Gram matrix governs angles and distances, preserving the graph spectrum directly preserves concepts like class compactness and separation (even covering neural-collapse diagnostics).
  • Embeddings Are More Resilient Than the Graph: Across experiments, the distortion in hidden representations and training trajectories is substantially smaller than the underlying spectral distortion of the graph itself. Nonlinear GNN layers don't amplify the sparsification noise—they absorb it gracefully.
  • Gram Distortion Predicts Local Neighborhoods: Preserving global inner-product structure (low Gram matrix error) reliably keeps each node's local neighborhood intact, making Gram preservation a great proxy for downstream interpretability.

Key Results

On synthetic SBM and geometric graphs, filter error, representation error, and Gram matrix error all scale smoothly and linearly with empirical spectral distortion ($\varepsilon_{\text{emp}}$), matching the $O(\varepsilon)$ theory:

Validation of the theoretical perturbation chain showing linear scaling of filter, representation, and Gram errors with spectral distortion.
  • Low Distortion Under Heavy Pruning: Even when roughly half the edges are removed ($\varepsilon_{\text{emp}} \sim 0.7$), relative representation and Gram matrix errors stay remarkably small—between 0.02 and 0.08.
  • Stable Training Trajectories: When training one- and two-layer deterministic GNNs from matched initializations, the relative gap between dense- and sparse-trained weights grows smoothly over 100 epochs and scales linearly with $\varepsilon_{\text{emp}}$ (staying below 0.01).
Relative parameter gap over training epochs on geometric graphs, illustrating smooth finite-time divergence.
  • Real-Data Fidelity: On held-out test nodes across FashionMNIST, Cora, and Paul15, lower hidden Gram distortion strongly predicts higher 20-nearest-neighbor overlap, yielding Spearman rank correlations of $-0.92$, $-0.90$, and $-0.92$, respectively. PCA projections further confirm that sparse class centroids stay tightly aligned with their dense counterparts.

Limitations and Future Work

The author candidly notes several boundaries to the current work:

  • Architecture Scope: The guarantees cover fixed polynomial operators (like GCN and ChebNet), not learned, feature-dependent operators like Graph Attention Networks (GATs), where edges are reweighted dynamically.
  • Idealized Assumptions: The proofs rely on Lipschitz/smoothness assumptions, bounded weights, exact $\varepsilon$-spectral approximations, and deterministic full-batch gradient descent over finite horizons (excluding dropout or minibatch noise).
  • Scale and Fairness: Experiments were run on modestly sized graphs (~2,700 nodes) with aggregate metrics. Scaling to massive benchmarks, testing more aggressive compression, and examining nodewise fairness—ensuring low-degree or minority nodes aren't disproportionately warped—remain open avenues for future work.

Summary updated

BibTeX
@inproceedings{krishnagopal2026spectral,
  author = {Sanjukta Krishnagopal},
  title = {{Spectral Graph Sparsification Preserves Representation Geometry in Graph Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=t7wLUvSJVu},
}
Figure