SOLA-GCL: Subgraph-Oriented Learnable Augmentation Method for Graph Contrastive Learning

Tianhao Peng, Xuhong Li, Haitao Yuan, Yuchen Li, Haoyi Xiong

Abstract

Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for representation learning on graphs. However, traditional methods often rely on random, structure-blind data augmentations that can inadvertently destroy the semantic integrity of the data. We present SOLA-GCL, a novel framework that shifts the focus from global random perturbations to a subgraph-oriented approach. By partitioning graphs into functional units and employing a learnable generator to adaptively select augmentation strategies, SOLA-GCL preserves underlying semantics and achieves state-of-the-art performance across 16 diverse benchmarks.

1. Introduction

Graph Contrastive Learning typically functions by generating multiple "views" of a graph through stochastic perturbations—such as node dropping or edge deletion—and training a model to maximize agreement between views of the same instance. While effective, these random augmentations are often "structure-blind." In biochemical contexts, for instance, removing a specific atom might dismantle a functional group essential to a molecule's identity. Similarly, in social networks, random edge removal can dissolve community structures. These issues lead to a loss of semantic integrity and poor adaptability across different graph domains.

2. Methodology

SOLA-GCL addresses these limitations through a three-stage pipeline that treats subgraphs as the primary semantic units of information.

2.1 Graph Partitioning

The framework begins by dividing the input graph into subgraphs using domain-appropriate algorithms. For social and community-based graphs, the Louvain method is employed to identify clusters. For molecular graphs, RDKit is used to isolate meaningful functional groups. This ensures that the subsequent augmentations operate on structurally relevant components rather than arbitrary sets of nodes.

2.2 Learnable Subgraph Augmentation Selector

Rather than applying a uniform augmentation policy, SOLA-GCL utilizes a GNN-based module to analyze each subgraph and predict the optimal perturbation strategy from a predefined pool. To maintain end-to-end differentiability, the model employs the Gumbel-Softmax trick. This allows the system to learn a "perturbation policy" that discovers which subgraphs are critical to the graph's identity (and should be preserved) and which are redundant (and can be safely modified).

2.3 Tailored Augmentation Strategies

The model applies five specific types of perturbations categorized into two levels:

  • Intra-subgraph: Node dropping, feature masking, and edge perturbation within a single subgraph.
  • Inter-subgraph: Edge perturbation between distinct subgraphs and subgraph swapping. Subgraph swapping—exchanging the positions of two subgraphs—is a unique feature that forces the model to understand the high-level topology of clusters rather than just local node connectivity.

3. Experimental Setup

The authors evaluated SOLA-GCL on a comprehensive suite of 16 datasets covering various domains:

  • Unsupervised and Semi-supervised Learning: Including MUTAG, NCI1, COLLAB, IMDB-B/M, Facebook, and DBLP.
  • Transfer Learning: Focused on molecular property prediction using datasets such as BBBP, ToxCast, SIDER, HIV, and BACE.

4. Results and Discussion

4.1 Performance and State-of-the-Art Comparison

SOLA-GCL consistently outperformed existing leaders in the field, such as MSSGCL and AutoGCL. On the MUTAG dataset, the model achieved an unsupervised accuracy of 90.49%, a significant improvement over the previous best of 89.68%. In transfer learning settings, the model demonstrated superior "pre-train and fine-tune" capabilities, suggesting it captures more generalizable features than models relying on random augmentations.

4.2 Efficiency and Interpretability

Despite the complexity of partitioning and learnable selection, SOLA-GCL maintains competitive training speeds, significantly outperforming methods like JOAO. Furthermore, the model offers high interpretability; visualization of importance scores reveals that the model naturally learns to avoid perturbing critical structures, such as carbon rings or $NO_2$ groups in chemical datasets, thereby respecting domain-specific semantics.

5. Conclusion

SOLA-GCL demonstrates that subgraph-oriented, learnable augmentations are superior to random perturbations for Graph Contrastive Learning. By treating subgraphs as semantic "words" within a graph "sentence," the model achieves better generalization and robustness. Future work will explore replacing heuristic-based partitioning with fully learnable deep partitioning modules to further increase the framework's flexibility and scalability.

Summary updated

BibTeX
@inproceedings{peng2025sola,
  author = {Tianhao Peng and Xuhong Li and Haitao Yuan and Yuchen Li and Haoyi Xiong},
  title = {{SOLA-GCL: Subgraph-Oriented Learnable Augmentation Method for Graph Contrastive Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i19.34189},
}
Figure