Implicit Feature Reweighting for Label-Free Graph Generalization
Organizations: 1Shenzhen Loop Area Institute · 2Guangzhou University · 3North China Electric Power University · University of Science and Technology of China
Abstract
Graph-level out-of-distribution (OOD) generalization is critical for deploying graph neural networks in real-world applications where distribution shifts are inevitable. Existing approaches typically require class labels during representation learning to decide which substructures are predictive, limiting their applicability. We propose SCARCE, a label-free representation-learning framework that yields distribution-shift-robust graph representations from an environment partition of the training graphs alone, whether that partition comes from dataset metadata or, when none is available, from clustering a self-supervised embedding. Our method operates in two stages: (1) a variational graph autoencoder is warm-started for graph reconstruction; and (2) an adversarial confusion mechanism forces the encoder to produce representations from which a discriminator cannot distinguish environments, while preserving graph-reconstruction fidelity. We provide theoretical analysis showing that environment confusion contracts environment-discriminative directions in the representation space, which, under regularized downstream classifiers, is equivalent to imposing a stronger directional penalty on environment-associated features. This feature-reweighting mechanism reduces reliance on spurious correlations without erasing information, offering a label-free, continuous relaxation of last-layer reweighting methods. Experiments on a controlled synthetic datasets and the DrugOOD datasets show that SCARCE achieves state-of-the-art OOD generalization among label-free methods, using no class labels during representation learning.
Figures & tables
| Method | EC50 | IC50 | |||||
|---|---|---|---|---|---|---|---|
| Assay | Scaffold | Size | Assay | Scaffold | Size | Avg. | |
| 5% labels | |||||||
| MVGRL | 68.9 3.7 | 52.1 3.7 | 57.8 2.9 | 67.1 0.3 | 57.4 1.7 | 62.1 0.8 | 60.9 |
| VGAE ( ) | 58.2 2.8 | 50.0 6.2 | 52.9 4.1 | 61.5 2.2 | 55.7 2.2 | 56.8 0.7 | 55.9 |
| GraphCL | 65.1 2.0 | 54.6 9.0 | 56.3 1.8 | 67.0 1.0 | 61.8 1.9 | 61.5 1.1 | 61.1 |
| RGCL | 69.5 3.1 | 54.8 7.5 | 56.5 2.9 | 65.8 0.1 | 60.0 1.6 | 60.5 1.1 | 61.2 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Domain | Test ROC-AUC (%) | |||
|---|---|---|---|---|---|
| EC50 | Assay | 0 | 10 | 3 | 69.84 |
| 0 | 10 | 20 | 65.70 | ||
| 0.5 | 10 | 20 | 65.63 | ||
| 0 | 10 | 5 | 65.61 | ||
| 0.5 | 10 | 3 | 64.28 | ||
| 1 | 10 | 20 | 63.96 |
| Dataset | Domain | Test ROC-AUC (%) | |||
|---|---|---|---|---|---|
| EC50 | Assay | 0 | 10 | 3 | 70.38 |
| 0 | 10 | 10 | 68.45 | ||
| 0 | 10 | 5 | 68.32 | ||
| 0.5 | 10 | 5 | 67.17 | ||
| 0 | 0.1 | 3 | 66.59 | ||
| 0.5 | 1 | 20 | 66.39 |
| Dataset | Domain | Test ROC-AUC (%) | |||
|---|---|---|---|---|---|
| EC50 | Assay | 0 | 10 | 3 | 73.07 |
| 0.5 | 10 | 3 | 71.55 | ||
| 0 | 10 | 5 | 69.67 | ||
| 0.5 | 1 | 20 | 69.25 | ||
| 0 | 1 | 3 | 68.31 | ||
| 0.5 | 1 | 3 | 68.31 |
| Test accuracy (%) | ||
| 0 | 0.01 | 65.0 |
| 0 | 0.1 | 62.8 |
| 0 | 1 | 66.0 |
| 0 | 10 | 61.7 |
| 0.5 | 0.01 | 62.3 |
| 0.5 | 0.1 | 69.6 |
OOD Generalization
Out-of-distribution generalization studies how machine-learning models perform when test data, domains, tasks, or environments differ from training.
See all 395 papers