Spectral-Aware Augmentation for Enhanced Graph Representation Learning

Kaiqi Yang, Haoyu Han, Wei Jin, Hui Liu

TL;DR

GASSER is a novel graph contrastive learning framework that replaces "blind" random edge dropping with "spectral-aware" augmentation. By selectively perturbing specific frequency bands in a graph's spectrum, it preserves task-critical information, leading to state-of-the-art performance across both homophilic and heterophilic datasets.

What Problem Does This Paper Address?

Graph Contrastive Learning (GCL) has become a powerhouse for training Graph Neural Networks (GNNs) without massive labeled datasets. The secret sauce of GCL is augmentation: creating different "views" of the same graph (e.g., by randomly dropping edges) and teaching the model that these views represent the same underlying reality.

However, the authors identify a major flaw in current methods: random spatial perturbations are "frequency-blind."

In the world of graph signal processing, information is spread across different "frequencies" (the graph spectrum).

  • Homophilic graphs (where similar nodes connect, like citation networks) store most useful information in low-frequency bands.
  • Heterophilic graphs (where different nodes connect, like "opposites attract" social networks) have information spread across middle and high frequencies.

The authors prove that random edge dropping hits all these frequencies almost uniformly. This "one-size-fits-all" approach often accidentally destroys the very information the model needs to learn, leading to sub-optimal representations.

Methods

The authors propose GASSER (GrAph contrastive learning with Selective Spectrum pERturbation). Instead of randomly deleting edges in the spatial domain, GASSER operates in the spectral domain.

  1. Selective Perturbation: Based on the graph's homophily, GASSER identifies "task-irrelevant" frequency bands. It then injects noise into the eigenvectors of these specific bands. To keep the math sound, it uses the Gram-Schmidt process to ensure the perturbed eigenvectors remain orthogonal.
  2. Incremental Reconstruction: Reconstructing a graph from its spectrum is usually computationally expensive ($O(N^3)$). GASSER uses an incremental update formula that only considers the changed frequency bands, significantly speeding up the process.
  3. Selective Edge Flipping: Since spectral perturbation results in a "dense" matrix (where every node might be slightly connected to every other node), GASSER sparsifies the result. It calculates a "relative perturbation" score for edges and "flips" them (adding or dropping) based on which ones were most affected by the spectral noise.
  4. Contrastive Objective: The resulting views are fed into a standard GCL pipeline (using a GCN encoder and a feature-level loss like SSG-CCA) to learn invariant representations.

Datasets

The researchers evaluated GASSER on 8 diverse real-world benchmarks:

  • Homophilic Datasets: Cora, CiteSeer, PubMed (citation networks), Amazon-Computers, and Amazon-Photo (co-purchase networks).
  • Heterophilic Datasets: Chameleon, Squirrel (Wikipedia page links), and Actor (actor co-occurrence).

These datasets provide a rigorous test of whether the model can adapt to different structural properties.

Key Insights and Ideas

  • The "Spatial is Blind" Realization: The most striking insight is the empirical proof that random spatial changes (like edge dropping) act as "white noise" across the entire spectrum. This explains why standard GCL often struggles with heterophilic graphs—it's unintentionally "blurring" the high-frequency signals that define those graphs.
  • Homophily as a Spectral Hint: The paper bridges the gap between a graph's global property (homophily) and its spectral signature. By using homophily as a "hint," GASSER knows exactly which parts of the spectrum are safe to perturb and which must be protected.
  • Efficiency via Sparsity: Spectral methods are often dismissed as too slow for large graphs. By combining partial eigen-decomposition with a clever edge-flipping strategy, the authors make spectral augmentation practically viable.

Key Results

  • Superior Accuracy: GASSER achieved the best performance on 5 out of 8 datasets and ranked in the top 3 for 7 out of 8.
  • Versatility: Unlike many baselines that excel at one type of graph but fail at the other (e.g., CCA-SSG is great for homophily but poor for heterophily), GASSER maintained an average rank of 1.63 across all types.
  • Robustness: When the input graphs were "poisoned" with structural attacks (Random or DICE attacks), GASSER's encoders proved significantly more resilient than standard GNNs or other GCL methods.
  • Plug-and-Play: The authors demonstrated that GASSER's augmentation strategy could be seamlessly integrated into other popular GCL frameworks (like GRACE or MVGRL), consistently improving their performance.

Limitations and Future Work

While GASSER is highly effective, it currently relies on "spectral hints" (like knowing the homophily ratio) to decide which bands to perturb. The authors acknowledge this and suggest that automated frequency detection—where the model learns which bands are task-relevant on the fly—is the next logical step. Additionally, while the incremental reconstruction is faster, the initial partial eigen-decomposition still adds a one-time pre-computation cost that could be further optimized for massive-scale graphs.

Summary updated

BibTeX
@inproceedings{yang2024spectral,
  author = {Kaiqi Yang and Haoyu Han and Wei Jin and Hui Liu},
  title = {{Spectral-Aware Augmentation for Enhanced Graph Representation Learning}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679762},
}
Figure