Graph Distillation with Eigenbasis Matching

Yang Liu, Deyu Bo, Chuan Shi

TL;DR

Graph Distillation with Eigenbasis Matching (GDEM) is a novel framework that moves away from GNN-dependent training toward a more robust spectral approach. By matching the eigenbasis and node features of real and synthetic graphs while directly replicating the original spectrum, GDEM eliminates "spectrum bias." It achieves state-of-the-art performance with massive gains in distillation efficiency and cross-architecture generalization.

The Challenge of Graph Distillation

Graph Neural Networks (GNNs) are powerful but computationally expensive when applied to large-scale data. Graph Distillation (GD) aims to solve this by creating a tiny synthetic graph that acts as a "distilled" proxy for the massive original. Ideally, a GNN trained on this tiny graph should perform nearly as well as if it were trained on the full dataset.

However, current GD methods (like GCOND or SGDD) suffer from two major flaws:

  1. Spectrum Bias: Most methods use GNN-related information (like gradients or training trajectories) as supervision. Because GNNs typically act as low-pass filters, the resulting synthetic graphs predominantly capture low-frequency signals, losing crucial high-frequency structural details.
  2. The Traversal Requirement: These methods are "tied" to the specific GNN used during distillation. A synthetic graph optimized for a Graph Convolutional Network (GCN) might fail when used with a ChebyNet. Finding the optimal synthetic graph currently requires an expensive trial-and-error traversal across different architectures.
Total Variation comparison illustrating how low-pass filtering (typical of GNNs) deviates from the real graph's spectrum.

The GDEM Approach

To overcome these limitations, the authors propose Graph Distillation with Eigenbasis Matching (GDEM). Instead of relying on what a specific GNN "sees," GDEM looks at the fundamental mathematical "DNA" of the graph: its eigenbasis (eigenvectors) and spectrum (eigenvalues).

The GDEM framework, highlighting Eigenbasis Matching and Spectrum Replication to bypass GNN-dependent distillation.

Key components of the framework include:

  • Eigenbasis Matching: GDEM aligns the subspaces induced by the $K$ most important eigenvectors (capturing both the smallest and largest eigenvalues) of the real and synthetic graphs. This ensures the synthetic graph preserves both global community structures and local details.
  • Spectrum Replication: To completely avoid the "filtering" effect of GNNs, GDEM doesn't try to learn the eigenvalues. It simply replicates the real graph's spectrum onto the synthetic graph during construction.
  • Discrimination Constraint: To ensure the synthetic graph is useful for downstream tasks like node classification, a constraint is added to align category-level representations using cosine similarity. This balances structural accuracy with task-specific performance.
  • GNN-Free Distillation: Unlike previous methods, GDEM does not require training a GNN in the inner loop of distillation. This drastically reduces computational overhead.

Key Insights and Results

The "aha" moment of the paper is the realization that using a GNN to distill a graph is like looking through tinted glasses—you only capture the signals the glasses let through. By matching the eigenbasis directly, GDEM removes this bias and captures the full structural distribution. Theoretically, GDEM-distilled graphs act as "restricted spectral approximations" of the real graphs, providing a solid mathematical foundation for their efficacy.

The authors evaluated GDEM across seven diverse datasets, including both homophilic (e.g., Citeseer, Pubmed, Reddit) and heterophilic (e.g., Squirrel, Gamers) graphs.

Highlights of the results include: * Superior Accuracy: GDEM achieved the best performance in 6 out of 7 datasets. On the Reddit dataset, it reached 93.2% accuracy, outperforming the next best method (SGDD at 91.6%). * Massive Speedup: Because GDEM avoids bi-level optimization (training a GNN while updating the graph), it is orders of magnitude faster. On the Pubmed dataset, GDEM's total distillation time was just 1.79 seconds, compared to 68.75 seconds for GCOND. * Cross-Architecture Generalization: A synthetic graph distilled by GDEM works consistently well across different GNN types (GCN, SGC, PPNP, ChebyNet, etc.) without needing to be re-distilled for each specific architecture.

Limitations and Future Work

While highly effective, GDEM has two main limitations. First, calculating eigenvectors for massive graphs is computationally expensive ($O(N^3)$ or $O(KN^2)$). Although this is a one-time pre-processing step, it remains a bottleneck for truly gargantuan datasets. Second, at extreme compression rates (e.g., reducing a million nodes to a hundred), the synthetic graph can only match a tiny fraction of the real eigenbasis, leading to performance drops.

Future work will explore ways to perform eigenbasis matching without explicit eigenvalue decomposition, aiming to further improve the scalability of this promising spectral approach.

Summary updated

BibTeX
@inproceedings{liu2024graph,
  author = {Yang Liu and Deyu Bo and Chuan Shi},
  title = {{Graph Distillation with Eigenbasis Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=DYN66IJCI9},
}
Figure