Source-linked AI summary
Let Invariant Rationale Discovery Inspire Graph Contrastive Learning
Sihang Li, Xiang Wang, An zhang, Yingxin Wu, Xiangnan He, Tat-Seng Chua
TL;DR
Existing GCL augmentations may lose graph semantics or rely on domain knowledge that limits generalization. RGCL discovers instance-discriminative rationales and uses them to create contrastive views; it surpasses current state-of-the-art GCL methods on biochemical molecule and social network benchmarks.
Problem
Random graph corruption may lose discriminative semantics, while domain-knowledge-guided augmentation can undermine generalization to unseen domains.
Source: §1 · p. 2Method
RGCL uses a rationale generator to discover instance-discriminative graph information and creates rationale-aware views for contrastive learning.
Source: §1 · p. 2, §3.3 · p. 5Results
RGCL surpasses current state-of-the-art GCL methods on biochemical molecule and social network benchmark datasets.
Source: §1 · p. 2Takeaways & Limitations
Visual inspections on MNIST-Superpixel rationales show the generator can discover discriminative nodes in graph instances.
Source: §4.1 · p. 6, §5 · p. 9The rationale generator struggles to generalize from ZINC15 pre-training to HIV, where it fails to capture discriminative features.
Source: §4.2 · p. 8
Abstract
from arXiv · showhide
Leading graph contrastive learning (GCL) methods perform graph augmentations in two fashions: (1) randomly corrupting the anchor graph, which could cause the loss of semantic information, or (2) using domain knowledge to maintain salient features, which undermines the generalization to other domains. Taking an invariance look at GCL, we argue that a high-performing augmentation should preserve the salient semantics of anchor graphs regarding instance-discrimination. To this end, we relate GCL with invariant rationale discovery, and propose a new framework, Rationale-aware Graph Contrastive Learning (RGCL). Specifically, without supervision signals, RGCL uses a rationale generator to reveal salient features about graph instance-discrimination as the rationale, and then creates rationale-aware views for contrastive learning. This rationale-aware pre-training scheme endows the backbone model with the powerful representation ability, further facilitating the fine-tuning on downstream tasks. On MNIST-Superpixel and MUTAG datasets, visual inspections on the discovered rationales showcase that the rationale generator successfully captures the salient features (i.e. distinguishing semantic nodes in graphs). On biochemical molecule and social network benchmark datasets, the state-of-the-art performance of RGCL demonstrates the effectiveness of rationale-aware views for contrastive learning. Our codes are available at https://github.com/lsh0520/RGCL.
1. Introduction
RGCL addresses the trade-off between random augmentations that may lose graph semantics and knowledge-guided augmentations that can undermine generalization. It uses invariant rationale discovery to identify instance-discriminative information and create rationale-aware views for contrastive learning.
- Random corruption may remove discriminative semantics, while domain-knowledge-guided augmentation can undermine generalization to unseen domains.Source: §1 · pp. 1–2
- RGCL relates GCL to invariant rationale discovery, using rationale-aware augmentations that preserve instance-discriminative information.Its rationale generator reveals and conceals parts of the anchor graph, and a contrastive learner uses the resulting views for instance discrimination.Source: §1 · p. 2
- RGCL surpasses current state-of-the-art GCL methods on biochemical molecule and social network benchmark datasets.Source: §1 · p. 2
2. Invariance Look at GCL
The section frames GCL and invariant rationale discovery through representation invariance: contrastive learning seeks agreement across augmented views, while rationale discovery identifies information preserved for prediction. It connects these ideas by proposing rationale-aware augmentations that retain instance-discriminative information.
2.1. Graph Contrastive Learning (GCL)
- GCL creates augmented graph views and trains representations to distinguish instances, using random corruption or domain knowledge to guide augmentation.Random methods risk semantic information loss, while reliance on domain knowledge can limit generalization across domains.Source: §2.1 · pp. 2–3
2.2. Invariant Rationale Discovery (IRD)
- IRD extracts a supporting substructure as a rationale; sufficiency preserves label-relevant information, while independence makes classification insensitive to the rationale’s complement.Source: §2.2 · p. 3
2.3. Connecting GCL and IRD
- RGCL applies rationale discovery to GCL by revealing instance-discriminative information in augmented views while concealing the rationale’s complement.Source: §2.3 · p. 4
3. Methodology
RGCL discovers instance-discriminative rationales and uses rationale-aware views for contrastive pre-training. Its pipeline probabilistically samples graph views, converts them into weighted representations, and trains them with sufficiency and independence objectives.
3. Methodology
- RGCL discovers rationales for instance-discriminative semantics, then performs contrastive learning on rationale-aware views.The paper presents this as a pre-training scheme.Source: §3 · p. 4
3.1. Rationale-aware Graph Augmentation
- RGCL probabilistically scores node salience and samples rationale and complement views, retaining edges among sampled nodes.The rationale generator parameterizes node attribution probabilities; probabilistic sampling is used to maintain view diversity.Source: §3.1 · pp. 4–5
3.2. Rationale-aware Representation Learning
- The backbone weights rationale-node embeddings by their attribution scores and pools them into a rationale representation; fine-tuning disables rationale discovery and discards those scores.The rationale representation is d′-dimensional.Source: §3.2 · p. 5
3.3. Rationale-aware Contrastive Learning
- Two sampled rationales from one anchor form a positive pair, while rationales from other anchors serve as negative views in the sufficiency loss.This loss encourages agreement between same-anchor views and divergence between different anchors.Source: §3.3 · p. 5
- The independence loss pushes complement representations away from rationale representations, and λ balances it with the sufficiency loss in a backbone-agnostic framework.The rationale generator and target backbone optimize the combined objective cooperatively.Source: §3.3 · pp. 5–6
4. Experiments
The experiments assess whether RGCL discovers semantically important graph nodes and whether rationale-aware views improve downstream representation learning. They also examine component ablations and sensitivity to three hyperparameters.
4.1. Effectiveness of Rationale Generator (RQ1)
- RGCL rationales achieved 78.9% precision against expert labels on MUTAG and captured semantic MNIST-Superpixel nodes for rationale-augmented views.For MNIST-Superpixel, pre-training omitted train labels and fine-tuning used 1% or 10% labeled samples.Source: §4.1 · p. 6
4.2. Performance on Downstream Tasks (RQ2)
- Across transfer and unsupervised benchmarks, RGCL led overall: best on 4/8 transfer datasets, highest average gain, and best average TU accuracy.It outperformed GraphCL on 7/8 transfer datasets, with average performance gain rising from 3.77 to 6.16; it also led on 5/8 unsupervised cases.Source: Table 2 · p. 7, §4.2 · pp. 7–8, Table 3 · p. 8
4.3. Ablation Study
- Ablations show sharp performance drops without rationale-aware views and lower performance without the independence term.The study evaluates these variants on downstream transfer-learning datasets.Source: Table 4 · p. 8, §4.3 · p. 8
4.4. Hyperparameter sensitivity
- Sensitivity tests suggest tuning τ near 0.1 and ρ near 80%, while λ = 0.1 prevents degeneration.Too-small τ or τ above 0.2 hurts performance; overemphasizing the independence term also lowers it, and too-small ρ increases the gap between augmented and anchor graphs.Source: Figure 4 · p. 8, §4.4 · pp. 8–9
5. Conclusion
RGCL uses invariant rationale discovery to generate semantic-information-preserving graph views for GNN pre-training, with visual and benchmark evaluations supporting its rationale discovery and downstream transferability. The paper identifies further rationale-generator fine-tuning and retrospective and introspective rationale learning as future directions.
5. Conclusion
- RGCL uses a GNN-MLP rationale generator without domain knowledge or manually designed features to discover semantic nodes and generate views for contrastive learning.The paper reports visual inspections on MNIST-Superpixel and state-of-the-art benchmark performance on biochemical molecule and social network datasets.Source: §5 · p. 9
- Visual inspections on MNIST-Superpixel show the rationale generator can discover discriminative nodes, while benchmark experiments report improved transferability and generalization with state-of-the-art performance.Source: §5 · p. 9
- Future work will fine-tune rationale generators on downstream tasks and explore retrospective and introspective rationale discovery to guide discrimination tasks.The paper also proposes probing GCL explainability.Source: §5 · p. 9
A. Rationale-aware Graph Contrastive Learning (RGCL) algorithm
The RGCL algorithm samples rationale-aware and complementary views from each graph using a rationale generator, encodes and projects them, then updates the encoder, generator, and projector to minimize the RGCL loss.
A. Rationale-aware Graph Contrastive Learning (RGCL) algorithm
- For each sampled minibatch, the algorithm applies the rationale generator to each graph and samples two rationale views and a complementary view.The initialization includes the encoder, rationale generator, projector, sampling ratio, and hyperparameter λ.Source: A. Rationale-aware Graph Contrastive… · p. 12
- The algorithm encodes and projects the second rationale view and complementary view to obtain their representations.Source: A. Rationale-aware Graph Contrastive… · p. 12
- The algorithm updates the encoder, rationale generator, and projector to minimize L_RGCL, then returns the encoder.Source: A. Rationale-aware Graph Contrastive… · p. 12
B. MNIST-superpixel Settings
The MNIST-superpixel settings section summarizes dataset statistics and lists the comparison baselines for semi-supervised experiments.
B. MNIST-superpixel Settings
- The MNIST-superpixel dataset statistics are summarized in Table 5.Source: B. MNIST-superpixel Settings · p. 12, Table 5 · p. 12
- Semi-supervised experiments compare training from scratch and graph augmentation without contrastive learning against GAE, InfoGraph, and GraphCL.The listed methods include adjacency reconstruction, local-global mutual information maximization, and random graph-augmentation contrastive learning.Source: B. MNIST-superpixel Settings · p. 12
- The GAE, InfoGraph, and GraphCL comparisons follow settings from prior work.Source: B. MNIST-superpixel Settings · p. 12
C. Transfer Learning Settings
The transfer-learning settings use MoleculeNet downstream tasks and compare RGCL with several self-supervised pre-training frameworks.
C. Transfer Learning Settings
- MoleculeNet is used as the downstream task suite for transfer learning, with dataset statistics summarized in Table 6.The statistics are taken from You et al. (2020).Source: C. Transfer Learning Settings · p. 12, Table 6 · p. 13
- Attribute Masking learns node and edge attribute regularities over graph structure to capture inherent domain knowledge.Source: C. Transfer Learning Settings · p. 12
- Context Prediction pre-trains a backbone GNN to bring nodes from similar structural contexts into nearby representations.It predicts the surrounding graph structures of subgraphs.Source: C. Transfer Learning Settings · p. 12
- GraphCL learns unsupervised graph representations through contrastive learning with random graph augmentations.Source: C. Transfer Learning Settings · p. 13
- GraphLoG captures global semantic clusters while preserving local similarities, whereas AD-GCL optimizes adversarial augmentations to avoid redundant information.Source: C. Transfer Learning Settings · p. 13
D. Unsupervised Learning Settings
The section identifies the TU datasets used for unsupervised learning and names the baselines used to evaluate RGCL.
D. Unsupervised Learning Settings
- TU-dataset statistics for unsupervised learning are summarized in Table 7.The supplied passage does not report the table's values.Source: D. Unsupervised Learning Settings · p. 13, Table 7 · p. 13
- Infograph, GraphCL, and AD-GCL are among the strong unsupervised-learning baselines used to evaluate RGCL.The baseline descriptions are in Appendices B and C.Source: D. Unsupervised Learning Settings · p. 13
E. Model Structure and Hyperparameters
The model follows You et al. (2020) backbone settings and uses GCN and GIN architectures; Table 8 summarizes architectures and hyperparameters.
E. Model Structure and Hyperparameters
- The comparison follows the backbone model settings in You et al. (2020).The authors state this is to make a fair comparison.Source: E. Model Structure and Hyperparameters · p. 13
- The model architectures include GCN and GIN, with architectures and corresponding hyperparameters summarized in Table 8.The cited passage does not provide the hyperparameter values.Source: E. Model Structure and Hyperparameters · p. 13
- The hyperparameter grid ranges are indicated, and bold numbers mark the final settings.Source: E. Model Structure and Hyperparameters · p. 13
F. Complexity Analysis
RGCL adds a rationale generator and complement computation, with a modestly longer reported pre-training time than GraphCL on the stated platform.
F. Complexity Analysis
- The rationale generator does not significantly increase space complexity because it is much smaller than the backbone encoder.Its scale can be adjusted if necessary.Source: F. Complexity Analysis · p. 13
- The time-complexity analysis compares RGCL and GraphCL for a minibatch using graph-size, batch, sampling, layer-count, and latent-dimension terms.The comparison is presented in Table 9; the supplied passage does not give its complexity expressions.Source: F. Complexity Analysis · p. 14, Table 9 · p. 14
- 20 hours for RGCL versus 15 hours for GraphCL were reported for pre-training on the stated platform.The platform used a GeForce RTX 2080 Ti and Intel(R) Core(TM) i9-9900X.Source: F. Complexity Analysis · p. 14
- RGCL's three-tower structure adds calculation of rationale complements to regulate information outside the rationale.GraphCL is described as having a two-tower structure.Source: F. Complexity Analysis · p. 14