Graph contrastive learning trains a graph neural network without labels by showing it two randomly altered copies ("views") of the same graph and asking it to recognize that they match. Its performance depends heavily on how the copies are altered: which edges are dropped, which node features are masked, and how aggressively. Methods that try to preserve meaning, such as protecting hub edges or protecting low-frequency structure, each add knobs that have to be set per dataset. In the realistic setting there are only a few labels, so those knobs are tuned on a validation set too small to trust, and the right setting can flip with properties of the graph the practitioner cannot see directly, such as whether neighbors tend to share a class.
We propose to set these knobs on cheap synthetic stand-ins instead. For a given real graph, we estimate a few structural statistics from the unlabeled graph and a handful of labels. We then generate many small synthetic graphs that match those statistics and have full ground-truth labels, run the augmentation hyperparameter search there, and transfer the winning configuration to the real graph. The bet is that the optimal augmentation depends on a small number of measurable graph properties, so a matched synthetic twin carries the information needed to tune. Because the twins come from a parametric generator rather than a learned diffusion model, the synthesis cost is minutes, not a per-dataset generative pipeline.
Core Claim
Our claim is that, for semantic-preserving graph augmentations, the ranking of hyperparameter configurations on property-matched synthetic graphs agrees closely with the ranking on the real graph. Tuning on twins should therefore beat tuning on a small labeled validation set at equal compute, and come within about one accuracy point of tuning on a large validation set. The claim also predicts where it should break: near the homophily boundary where Synthetic Graph Generation to Benchmark Graph Learning observed sharp ranking phase transitions, small errors in the estimated statistics should produce large regret.
That same paper (GraphWorld) is the closest prior work. It built a pipeline that generates millions of parameterized synthetic graphs for under $120 in 10 hours. It showed that real benchmarks sit in a narrow corner of graph-property space, and it showed that configurations found globally on synthetic distributions can beat budget-limited real-world tuning. GraphWorld uses synthetic graphs to benchmark architectures across the whole property space. It does not match synthetic graphs to a specific real target, does not study contrastive augmentation, and never measures whether a synthetic-chosen configuration transfers to that target. Those three things are what we do. The gap between synthetic and real graphs therefore enters this proposal as the quantity being measured, through the regret of transferred configurations, rather than as something we train a model to close.
Research Program
The objects being tuned are three published augmentation families, each with a few sensitive knobs. The first is Graph Contrastive Learning with Adaptive Augmentation (GCA). It drops edges and masks features with probabilities weighted by centrality, so hubs are protected. Its knobs are the two views' edge and feature drop rates and the choice of centrality measure. The second is Graph Contrastive Invariant Learning from the Causal Perspective (GCIL). It perturbs high-frequency components of the graph Laplacian spectrum (roughly, signals that vary sharply between neighbors) while keeping the smooth low-frequency ones. Its knobs are the perturbed band and the strength. We generalize GCIL by letting the protected band be a tunable hyperparameter. The third is CL-GCL: Comprehensive and Lightweight Graph Contrastive Learning, which contrasts nodes against METIS community anchors. Its knob is the community count $K$, whose sensitivity that paper leaves unstudied.
We chose GCIL deliberately. It assumes meaning lives in the low frequencies, an assumption its own authors note fails on heterophilic graphs, where neighbors often have different classes. Twin tuning should discover when to protect the other band, which tests whether the method captures something a fixed design cannot.
The twin generator is a degree-corrected stochastic block model with class-conditional Gaussian features, which is the generator family GraphWorld uses. From the target graph we estimate four quantities. Three come from the graph and features alone: the degree-distribution shape, the clustering coefficient, and the class count. The fourth, edge homophily and feature informativeness, comes from the few available labels plus label propagation, with a bootstrap confidence interval. We sample roughly 50 twins of a few thousand nodes each from this uncertainty region. We run the same random-search budget for each augmentation family on the twins and select the configuration with the best mean (or worst-decile) linear-probe accuracy. The configuration is then applied unchanged to the real graph.
Alongside this, we sweep the whole generator space to produce a phase diagram of optimal drop rates and protected bands against homophily and degree heterogeneity. This diagram directly answers an open question in the file: on synthetic graphs, does the best augmentation prune structure (the GCA/GCIL instinct) or corrupt it (the instinct behind the adaptive dropout masks in Adversarially Masking Synthetic to Mimic Real)?
Baselines
The naive reference is each augmentation family run at its published default hyperparameters, with no per-dataset tuning. If twin tuning cannot beat defaults, augmentation sensitivity is not a real problem on these benchmarks, and the project ends there.
The strongest practical competitor is tuning on the real graph's small labeled validation split, using the same random-search budget in GPU-hours as twin tuning. This is what practitioners actually do. To beat it, twin tuning must have lower mean regret over seeds and datasets, where regret is measured against an oracle configuration chosen on a large held-out labeled set. We report that oracle as the upper bound.
The strongest existing method that removes hand-tuning by learning augmentations is Diffusion-Guided Graph Data Augmentation (D-GDA). It trains a base graph network, a graph variational autoencoder and a latent diffusion model per dataset, and reports a 7.5% Cora accuracy gain over GCN and long-tailed Cora-LT balanced accuracy rising from 59.42% to 80.34%. We run it with its released settings and report both accuracy and total GPU-hours. Twin tuning "wins" against it if it reaches comparable accuracy at a small fraction of the cost. It does not need to exceed D-GDA's accuracy.
For absolute reference on homophilic data, GCA reports about 78.3% linear-probe accuracy on Wiki-CS, against about 77.2% for supervised GCN (GCA). On the heterophilic benchmarks no reported result was found on Lacuna for GCA, GCIL or CL-GCL accuracy, so we will establish those numbers ourselves.
For the cross-domain setting, the references are SA-GDA, which reports 64.76% average accuracy over six DBLPv7/ACMv9/Citationv1 transfers against 56.34% for UDA-GCN, and Graph Augmentation for Cross Graph Domain Generalization, which reports GIN rising from 63.02% to 74.77% Micro-F1 on AD→C. In that setting, twins are matched to the target domain's statistics.
Two ablations isolate the key ingredient, which is property matching. The first tunes on random GraphWorld graphs that are not matched to the target. The second matches the twins on homophily alone.
Why not just…?
Why not just tune on the small validation set? This is the main threat. With 20 labels per class, validation accuracy on a few hundred nodes has standard error of a few points, which is comparable to the gaps between augmentation configurations. That noise is why GraphWorld found synthetic global optima beating budget-limited tuning. The equal-budget comparison above settles it directly. If small-validation tuning matches twin tuning, the method has no reason to exist, and we will report that.
Why not just apply a rule: estimate homophily, and protect high frequencies when it is below 0.5? This is also a real threat, because the phase transition GraphWorld reports suggests homophily may dominate. The homophily-only ablation is exactly this rule made continuous. If it captures nearly all the gain, the contribution shrinks to that rule plus its phase diagram, which is still useful but narrower. The full method earns its place only if degree heterogeneity and feature informativeness measurably shift the optimal drop rates and community count $K$.
Why not select hyperparameters with a label-free signal on the real graph, such as final contrastive loss or embedding alignment and uniformity? This approach costs nothing in synthesis. We include it as a baseline at equal budget. Our expectation is that contrastive loss rewards weak augmentations that make the matching task easy, which means it would systematically pick too-mild drop rates. Comparing which drop rates each selector picks against the oracle will show whether that happens.
Why not just learn the augmentation end to end, as D-GDA does? D-GDA's own authors name per-dataset training and test-time latency as its main limitation. We compare on both accuracy and cost rather than assuming one dominates.
Proposed Experiments
The homophilic benchmarks are Cora, CiteSeer, Pubmed, Wiki-CS, Amazon-Computers/Photo and Coauthor-Physics. The heterophilic benchmarks are Squirrel, Actor, Cornell, Texas and Wisconsin. The cross-domain benchmark is the six DBLPv7/ACMv9/Citationv1 transfers. Each uses a two-layer GCN encoder with linear-probe evaluation over ten seeds. The metrics are regret against the oracle configuration, Spearman rank correlation between twin and real configuration rankings, absolute accuracy, and wall-clock and GPU-hour cost covering both synthesis and search.
Three checks are decisive. First, the rank correlation between twin and real rankings must be clearly positive on most datasets. If it is near zero, synthetic twins carry no tuning signal and the claim fails. Second, at equal compute, twin tuning must reduce regret relative to small-validation tuning, with the largest margins on heterophilic graphs and for GCIL's band choice. Third, regret should spike for targets whose estimated homophily interval straddles 0.5, matching GraphWorld's phase transition. Observing that spike would confirm that the gap between synthetic and real graphs is concentrated at predictable boundaries, where practitioners should spend real labels instead.
References
- Synthetic Graph Generation to Benchmark Graph Learning
- Graph Contrastive Learning with Adaptive Augmentation
- Graph Contrastive Invariant Learning from the Causal Perspective
- CL-GCL: Comprehensive and Lightweight Graph Contrastive Learning
- Adversarially Masking Synthetic to Mimic Real: Adaptive Noise Injection for Point Cloud Segmentation Adaptation
- Diffusion-Guided Graph Data Augmentation
- SA-GDA: Spectral Augmentation for Graph Domain Adaptation
- Graph Augmentation for Cross Graph Domain Generalization