SpeGCL: Self-Supervised Graph Spectrum Contrastive Learning Without Positive Samples

Yuntao Shou, Xiangyong Cao, Deyu Meng

TL;DR

SpeGCL flips the script on Graph Contrastive Learning (GCL) by ditching positive samples entirely and operating in the spectral (frequency) domain. By leveraging high-frequency structural information and focusing solely on pushing negative pairs apart, this novel framework achieves state-of-the-art performance across multiple benchmarks while significantly reducing training time and memory overhead.

What Problem Does This Paper Address?

Graph Contrastive Learning (GCL) has become a go-to approach for learning robust node and graph representations without manual labels. Traditionally, GCL works in the spatial (time) domain, creating augmented views of a graph and training a model to pull "positive" pairs (views of the same graph) closer together while pushing "negative" pairs (views of different graphs) further apart.

However, the authors identify two major flaws in this paradigm:

  1. Low-Frequency Bias: Spatial-domain graph neural networks act as low-pass filters, smoothing out features. This causes them to miss critical high-frequency information—the rapid structural and feature variations between augmented graph views that actually hold the most discriminative power.
  2. The Redundancy of Positive Pairs: Traditional contrastive loss (like InfoNCE) balances alignment (pulling positives) and uniformity (pushing negatives). The authors' theoretical analysis reveals that the heavy lifting in GCL is actually done by pushing negative pairs apart; pulling positive pairs closer is often redundant and adds unnecessary sampling complexity.

Methods

To tackle these issues, the authors introduce SpeGCL (Spectral Graph Contrastive Learning without Positive Samples). The overall architecture consists of four main stages:

The overall architecture of the proposed SpeGCL model.
  • Data Augmentation: Standard node masking and edge perturbation strategies are applied to generate different graph views.
  • Fourier Graph Convolutional Network (FourierGCN): Instead of processing graphs purely in the spatial domain, SpeGCL uses the Fast Fourier Transform (FFT) to transition node features into the frequency domain. It leverages the convolution theorem to perform highly efficient feature aggregation directly in the Fourier space.
  • Frequency Separation (LPA & HPA): The framework explicitly separates features into Low-Pass Augmentation (LPA) to capture smooth, global trends, and High-Pass Augmentation (HPA) to capture sharp, localized structural changes.
  • Self-Negative Sampling: SpeGCL optimizes a modified contrastive loss function ($L_U$) that completely omits the positive pair alignment term. It relies entirely on a large pool of negative samples to enforce uniformity in the embedding space.

Datasets

The authors evaluated SpeGCL across three distinct experimental settings using widely recognized benchmarks:

  • Unsupervised & Semi-Supervised Learning: Evaluated on the TUDataset collection, including social networks and biochemical molecules: MUTAG, PROTEINS, NCI1, DD, COLLAB, IMDB-B, REDDIT-B, and REDDIT-M-5K.
  • Transfer Learning: Pre-trained on the massive ChEMBL dataset (biological activity data) and PPI-306K / ZINC 2M, then fine-tuned on the MoleculeNet suite (BBBP, Tox21, ToxCast, SIDER, ClinTox, MUV, HIV, BACE).

Key Insights and Ideas

  • High-Frequency Info is Key: As visualized in the paper, low-frequency components remain relatively static across graph augmentations, while high-frequency components exhibit significant, highly informative variations. High-frequency data is crucial for helping the model learn fine-grained structural differences.
Visualization of original, high-pass, and low-pass features in the frequency domain.
  • Positives are Optional: The most surprising "aha" moment is that contrastive learning doesn't need positive pairs to converge. Pushing dissimilar nodes far enough apart inherently organizes the embedding space effectively.
  • Mathematical Convergence: The authors provide a theoretical proof showing that optimizing only against negative samples ($L_U$) converges to the same limit as standard InfoNCE loss, with an absolute deviation decay rate of $O(M^{-2/3})$, where $M$ is the number of negative samples.

Key Results

SpeGCL consistently outperforms or matches state-of-the-art GCL methods (like GraphCL, JOAO, and AD-GCL) across all tasks:

  • Unsupervised Learning: SpeGCL achieved the highest classification accuracy on several datasets, including PROTEINS (78.05%), NCI1 (82.14%), and REDDIT-M-5K (59.44%).
  • Transfer Learning: On MoleculeNet, SpeGCL showed notable gains, particularly on complex or noisy datasets like BBBP (76.03%) and Tox21 (78.31%).
  • Efficiency Gains: Because it bypasses positive pair matching and uses a streamlined spectral architecture, SpeGCL drastically cuts down training time. On the PROTEINS dataset, SpeGCL took just 46 seconds to train, compared to GraphCL's 111 seconds and JOAOv2's staggering 4088 seconds, while also utilizing less memory.

Limitations and Future Work

While SpeGCL proves that positive samples are mathematically and practically optional, its performance is highly sensitive to hyperparameter tuning regarding the negative sample pool. As explored by the authors, fixing the batch size and negative sample counts requires a sweet spot; if the batch size scales too high (e.g., 1024), performance begins to degrade.

Future work could focus on adaptively setting the high-pass and low-pass thresholds ($D^L$) rather than relying on fixed manual thresholds, allowing the model to dynamically adjust to varying graph scales and densities.

Summary updated

BibTeX
@article{shou2025spegcl,
  author = {Yuntao Shou and Xiangyong Cao and Deyu Meng},
  title = {{SpeGCL: Self-Supervised Graph Spectrum Contrastive Learning Without Positive Samples}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2025.3589861},
}
Figure