Abstract
Contrastive learning has emerged as a powerful paradigm for self-supervised graph representation learning. However, its success heavily depends on the choice of data augmentations, which are typically hand-crafted and dataset-specific. This paper introduces LG2AR (Learning Graph Augmentations to Learn Graph Representations), a framework that automates the selection and generation of graph augmentations. By employing a probabilistic policy and dedicated augmentation heads, LG2AR learns to perturb graphs in a way that forces the encoder to capture robust, high-level semantic features. Experimental results across 20 benchmarks demonstrate that LG2AR achieves state-of-the-art performance, often surpassing supervised baselines.
Introduction
In self-supervised learning (SSL), contrastive methods aim to learn representations by maximizing the agreement between different augmented views of the same data point. While "gold standard" augmentations exist for domains like computer vision (e.g., random cropping, color jittering), the optimal augmentations for graphs remain elusive. Graphs vary significantly in structure and semantics—what works for a social network might be detrimental for a molecular graph. Currently, researchers rely on manual heuristics and trial-and-error to select augmentations. LG2AR addresses this gap by providing an end-to-end, differentiable framework to learn dataset-conditioned graph augmentations.
The LG2AR Framework
The LG2AR architecture consists of four primary components designed to automate the augmentation pipeline:
- Augmentation Encoder: A Graph Isomorphism Network (GIN) $g_\omega(\cdot)$ generates a deterministic "sketch" of the input graph, providing a global context for the augmentation selection process.
- Probabilistic Policy: A GRU-based policy $r_\mu(\cdot)$ processes the graph embeddings to learn a distribution over five augmentation types: node dropping, edge perturbation, subgraph inducing, feature masking, and identity. It samples the two most effective augmentation types for the given dataset.
- Probabilistic Augmentation Heads: Instead of uniform random perturbations, LG2AR uses dedicated MLP heads $\tau_{\phi_i}(\cdot)$ to learn the importance of specific nodes or edges. By targeting less critical components, the model creates challenging "hard" views. The Gumbel-Softmax trick is employed to maintain differentiability, allowing the augmentation parameters to be optimized via backpropagation.
- Main Encoder: A shared GNN $g_\theta(\cdot)$ learns the final representations by maximizing the Mutual Information between the two augmented views, typically using a Deep InfoMax (DIM) objective.
Experimental Evaluation
The authors evaluated LG2AR on a comprehensive suite of 15 benchmarks, including major datasets for both graph-level and node-level classification. These range from biological datasets (MUTAG, Proteins) to social networks (COLLAB, Reddit) and citation networks (Cora, PubMed).
LG2AR achieved state-of-the-art (SOTA) results on 18 out of 20 benchmarks compared to previous unsupervised models. Notably, on the COLLAB dataset, it provided a 6.4% absolute improvement over previous methods. In node classification tasks, such as on the PubMed dataset, accuracy improved by 4.7%.
Key Insights and Discussion
Several key insights emerged from the study:
- Dataset-Conditioned Selection: The learned policy adapts to different domains. For node classification, the model often prefers "identity" augmentations, as the inherent sampling of subgraphs during training already provides sufficient variance.
- Beyond Randomness: Learning where to apply perturbations is significantly more effective than uniform random dropping. By identifying and masking less important features, LG2AR forces the encoder to focus on the most salient structural and feature-based information.
- Structural Dominance: Ablation studies indicate that structural augmentations (altering topology) generally contribute more to performance gains than feature-level masking.
- Semi-Supervised Strength: When only 10% of labels were available, LG2AR outperformed competitors significantly, showing that the learned augmentations create a much stronger foundation for downstream tasks.
Conclusion
LG2AR successfully automates the "black art" of graph data augmentation, delivering a robust framework for self-supervised graph representation learning. While the model introduces some computational overhead due to the additional learning components, the significant performance gains across diverse datasets justify the cost. Future work may explore scaling these learned augmentations to massive graphs and investigating the transferability of learned augmentation policies across related domains.
Summary updated