Abstract
Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for unsupervised representation learning on graphs. However, current practices heavily rely on domain-agnostic graph augmentations (DAGAs) that may inadvertently destroy semantic information. This paper investigates the limitations of DAGAs, revealing that the performance of GCL models on standard benchmarks is often driven by the inductive bias of Graph Neural Networks (GNNs) rather than the contrastive objective itself. We propose a shift toward task-aware augmentations (TAAs) and introduce rigorous evaluation protocols, including random-weight baselines and representational similarity analysis.
Introduction: The Problem with Domain-Agnostic Augmentations
Contrastive learning relies on creating multiple "views" of the same data point that preserve its semantic identity. In computer vision, operations like cropping or color jittering are generally label-preserving. In the graph domain, however, common augmentations like random node dropping or edge perturbation—termed Domain-Agnostic Graph Augmentations (DAGAs)—lack this guarantee.
As illustrated in Figure 1, a minor structural change in a molecule, such as replacing a hydroxyl group with an amine group, fundamentally changes its chemical identity. Applying DAGAs blindly to such structures can lead to "false positives," where the model is forced to learn that two semantically distinct graphs are identical, thereby degrading the quality of the learned representations.
Methodology
To diagnose the issues in current GCL practices, the authors employ several analytical tools:
- Affinity & Diversity Analysis: Evaluating how augmentations affect the data distribution and label consistency.
- Representational Similarity Analysis: Visualizing the cosine similarity of learned embeddings to check for class discrimination.
- Random Initialization Baseline: Comparing trained GCL models against GNNs with frozen, randomly initialized weights to isolate the contribution of the contrastive loss.
- Task-Aware Augmentations (TAAs): Developing augmentations that leverage domain-specific knowledge (e.g., synonym replacement in text-based graphs) to ensure label preservation.
Key Insights: The "Untrained" Illusion
A startling finding of this research is that on many popular small-scale benchmarks (e.g., MUTAG, PROTEINS), a GNN with completely random weights performs nearly as well as state-of-the-art GCL models. For instance, on MUTAG, a random GNN achieves 85.76% accuracy, compared to 86.80% for GraphCL. This suggests that the reported "success" of GCL is often an artifact of the GNN's architecture—its inductive bias—rather than effective unsupervised learning.
Figure 5 displays the similarity matrices for three prominent GCL methods. While some block-diagonal structure is visible (indicating intra-class similarity), the high similarity between different classes (inter-class) and the performance proximity to random baselines indicate that these models are not learning as much discriminative information as previously assumed.
Results and Recommendations
The study demonstrates that Task-Aware Augmentations significantly outperform DAGAs. In document classification tasks, TAAs improved accuracy by up to 20% compared to domain-agnostic methods. Similarly, for MNIST super-pixel graphs, feature-based augmentations that preserve graph topology outperformed random node dropping by approximately 7% across different contrastive frameworks.
The authors conclude that the GCL community must move beyond "legacy" small-scale datasets and adopt more rigorous sanity checks. Practitioners are encouraged to:
- Always include a randomly initialized GNN baseline for comparison.
- Use representational similarity matrices to visualize what the model has actually learned.
- Prioritize the development of Task-Aware Augmentations over generic structural perturbations.
Conclusion
The current reliance on domain-agnostic augmentations in GCL is fundamentally flawed. By exposing the "untrained illusion" and demonstrating the superiority of task-aware approaches, this work provides a necessary roadmap for more robust and semantically meaningful graph representation learning.
Summary updated