SAGMAN: Stability Analysis of Graph Neural Networks on the Manifolds

Wuxinlin Cheng, Chenhui Deng, Ali Aghdaei, Zhiru Zhang, Zhuo Feng · Submission to ICLR 2025 · Withdrawn

TL;DR

SAGMAN is a scalable, model-agnostic spectral framework that quantifies node-level stability in Graph Neural Networks (GNNs) by measuring how the network distorts distances between data samples from input to output manifolds. By combining spectral graph embedding, Probabilistic Graphical Models (PGMs), and fast short-cycle spectral sparsification, it evaluates local stability in near-linear time without needing node labels or internal model weights.

What Problem Does This Paper Address?

Graph Neural Networks are notoriously vulnerable to small perturbations—such as adding/removing edges or injecting minor feature noise—which can severely degrade downstream performance. While prior works have theoretically analyzed GNN stability, they typically rely on synthetic graph models or restrict their scope to specific spectral graph filters, failing to provide practical, sample-specific metrics for realistic graphs.

Assessing stability via Distance Mapping Distortion (DMD)—the ratio of output distance to input distance—is common in traditional deep learning, but applying DMD directly to GNNs fails:

  1. DMD assumes that data resides on a low-dimensional manifold, an assumption violated by raw graph inputs.
  2. Computing exact geodesic distances across large graphs is computationally prohibitive.

Methods

SAGMAN evaluates node stability across three main phases:

[Phase 1] Concatenate Node Features + Spectral Embeddings (Laplacian Eigenmaps)
    │
    ▼
[Phase 2] Build Low-Dimensional Manifolds via PGMs & Short-Cycle Sparsification
    │
    ▼
[Phase 3] Compute Effective-Resistance DMD Scores on Generalized Laplacian Eigenpairs
  • Graph Dimensionality Reduction via PGMs: To project high-dimensional graph topologies and node features onto proper low-dimensional manifolds, SAGMAN constructs Probabilistic Graphical Models (PGMs) driven by Laplacian Eigenmaps.
  • Gradient-Based Spectral Sparsification: Solving full PGMs is computationally expensive ($O(N^2 \log^2 N)$). SAGMAN proves that maximizing the PGM objective is equivalent to pruning edges with small effective-resistance-to-data-distance ratios ($\rho_{p,q} = w_{p,q} R_{p,q}^{\text{eff}}$). It introduces a Low-Resistance-Diameter (LRD) short-cycle decomposition to sparsify weighted graphs efficiently.
  • Effective-Resistance DMD Surrogate: Instead of expensive geodesic distances, SAGMAN uses effective resistance on the graph Laplacian ($L_G^+$). It bounds the maximum DMD using the dominant generalized eigenvalues and eigenvectors of the input/output Laplacian pair ($L_Y^+ L_X$), yielding an aggregate local DMD score for each node in near-linear time.

Datasets

The authors evaluated SAGMAN across both homophilic and heterophilic benchmarks:

  • Citation and Network Benchmarks: Cora, Cora-ml, Citeseer, and Pubmed.
  • Heterophilic Graphs: Chameleon and Squirrel.
  • Large-Scale Graph: ogbn-arxiv (169,343 nodes, 1,166,243 edges).
  • Note: No new datasets were introduced; evaluation leveraged standard public benchmarks against standard GNN architectures (GCN, GAT, GPRGNN, APPNP, ChebNet).

Key Insights and Ideas

  • Manifold Construction is Non-Negotiable: Directly computing DMD on raw graph structures yields uninformative results because raw graph feature spaces do not respect low-dimensional manifold geometry. Spectral graph embedding combined with PGM sparsification fixes this bottleneck.
  • Equivalence of PGM Optimization and Spectral Sparsification: The authors establish that dropping non-critical edges in an empirical covariance/precision matrix corresponds directly to spectral graph sparsification via effective resistances.
  • Model- and Label-Agnostic Metric: SAGMAN requires no access to ground-truth labels, internal model parameters, or network architectures—it strictly analyzes the input graph/features and the resulting output prediction vectors.

Key Results

  • Distinguishing Stable from Unstable Nodes: Under feature noise and adversarial edge perturbations (DICE), nodes classified as "stable" by SAGMAN maintained significantly higher cosine similarities and lower KL divergence between clean and perturbed outputs compared to "unstable" nodes.
  • Large-Scale Divergence on ogbn-arxiv: Under increasing Gaussian noise, the accuracy of nodes identified as stable degraded gracefully (from 91% down to 87%), whereas nodes flagged as unstable plummeted from 80% down to 20%.
  • Supercharging Targeted Adversarial Attacks: Choosing target nodes using SAGMAN's stability scores consistently produced higher attack success rates than standard Nettack target selection or heuristic confidence ranking:
  • Citeseer: Under Nettack, SAGMAN-guided selection reached a 1.000 error rate (vs. 0.800 default, 0.925 confidence ranking).
  • Cora: Reached 0.975 error rate (vs. 0.725 default, 0.925 confidence ranking).
  • Similar dominant gains occurred under Fast Gradient Attacks (FGA).
  • Scalability: Evaluating stability on the massive ogbn-arxiv graph took only 174.39 seconds on a single workstation.

Limitations and Future Work

  • Heuristic Dimension Selection: The choice of spectral dimensions relies on an empirical eigengap rule ($k \approx 10c$, where $c$ is class count), which may require manual tuning on non-standard graphs.
  • Diagnostic, Not Defensive: SAGMAN quantifies vulnerabilities and enhances adversarial attacks, but it does not intrinsically train a more robust model.
  • Future Directions: The authors plan to integrate SAGMAN into active robust training pipelines (e.g., sample re-weighting or targeted data augmentation) to directly defend against perturbations without incurring prohibitive training costs.

Summary updated

Abstract

Modern graph neural networks (GNNs) can be sensitive to changes in the input graph structure and node features, potentially resulting in unpredictable behavior and degraded performance. In this work, we introduce a spectral framework known as SAGMAN for examining the stability of GNNs. This framework assesses the distance distortions that arise from the nonlinear mappings of GNNs between the input and output manifolds: when two nearby nodes on the input manifold are mapped (through a GNN model) to two distant ones on the output manifold, it implies a large distance distortion and thus a poor GNN stability. We propose a distance-preserving graph dimension reduction (GDR) approach that utilizes spectral graph embedding and probabilistic graphical models (PGMs) to create low-dimensional input/output graph-based manifolds for meaningful stability analysis. Our empirical evaluations show that SAGMAN effectively assesses the stability of each node when subjected to various edge or feature perturbations, offering a scalable approach for evaluating the stability of GNNs, extending to applications within recommendation systems. Furthermore, we illustrate its utility in downstream tasks, notably in enhancing GNN stability and facilitating adversarial targeted attacks.
BibTeX
@misc{cheng2024sagman,
  author = {Wuxinlin Cheng and Chenhui Deng and Ali Aghdaei and Zhiru Zhang and Zhuo Feng},
  title = {{SAGMAN: Stability Analysis of Graph Neural Networks on the Manifolds}},
  year = {2024},
  eprint = {2402.08653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.08653},
}
Figure