Complementary Supervised and Self-Supervised Representations for Out-of-Distribution Graph Learning

Qingying Hao, Zikang Chen, Chuxuan Hu, Jinyuan Jia, Bo Li, Gang Wang, Carl GunterarXiv 2026

TL;DR

This paper introduces two novel frameworks, Co-Train and Dual-Space Retrieval, that combine supervised and self-supervised graph representations to tackle the challenge of out-of-distribution (OOD) generalization. By leveraging the structural insights of self-supervised learning (SSL) alongside task-specific labels, the authors demonstrate significant performance gains for Graph Neural Networks (GNNs) facing temporal and cross-domain shifts.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing relational data, but they typically rely on the assumption that training and test data come from the same distribution. In the real world, this is rarely true: transaction patterns in financial networks evolve over time, and social network structures vary across different communities.

When a GNN encounters "out-of-distribution" (OOD) data, its performance often plummets. Existing OOD methods mostly focus on supervised learning, which can lead the model to overfit to "spurious correlations"—patterns that appear predictive in the training set but vanish in the test set. Self-supervised learning (SSL) offers a different perspective by capturing intrinsic graph structures without labels, but SSL representations aren't optimized for specific tasks. This paper asks: Can we combine these two distinct perspectives to build more robust GNNs?

Methods

The authors propose two "backbone-agnostic" frameworks, meaning they can work with various GNN architectures like GraphSAGE, GCN, or GAT.

  1. Co-Train (Training-time Integration): This framework jointly optimizes a supervised encoder and an SSL encoder. As shown in the overview below, it uses a gated fusion mechanism (a small neural network) to adaptively decide how much of the SSL representation should be integrated into the supervised path for the final prediction. It also employs an alignment objective to ensure the two representation spaces remain compatible.
Figure 1: Overview of Co-Train. The supervised and SSL branches use separate encoders without parameter sharing and are jointly optimized. A learned gate adaptively incorpo- rates the complementary SSL representation into the super- vised representation for prediction.
  1. Dual-Space Retrieval (Inference-time Fusion): This is a non-parametric approach that doesn't require joint training. It constructs two "memory banks" of representations from the training set—one for supervised and one for SSL. At test time, it performs retrieval (either nearest-neighbor or class-centroid) in both spaces. The final prediction is a weighted combination of the two, determined by a confidence-aware fusion mechanism that favors the more "certain" branch.
Figure 2: Overview of the Dual-Space Retrieval framework. Supervised and self-supervised GNNs construct separate em- bedding memory banks. At test time, neighbor- or centroid- based retrieval produces similarity-weighted prediction scores in each space, which are combined through confidence- aware dual-space score fusion.

Datasets

The frameworks were evaluated on four benchmarks representing two types of distribution shifts:

  • Temporal Transfer (Time Shifts):
    • Elliptic: A Bitcoin transaction network for illicit activity detection.
  • OGB-Arxiv: A citation network where papers are classified by subject area across different publication years.
  • Cross-Domain Transfer (Domain Shifts):
    • Twitch-Explicit: User interaction graphs from different geographic regions.
  • Facebook-100: Social networks from various American universities used for gender classification.

Key Insights and Ideas

  • Complementary Signals: The core "aha moment" is that SSL captures structural regularities that supervised learning ignores. By forcing the model to consider both, it becomes less likely to rely on fragile, label-correlated patterns that fail OOD.
  • Representation Separation: Quantitative analysis showed that Co-Train produces a more discriminative latent space. The "separation score" (ratio of inter-class to intra-class distance) was consistently higher for Co-Train than for supervised or SSL models alone.
  • Centroids vs. Neighbors: In complex multiclass settings like OGB-Arxiv (40 classes), the authors found that standard nearest-neighbor retrieval is too "local." Using class-centroids—averaging representations for an entire class—provided a much more robust signal for OOD prediction.

Key Results

The proposed methods consistently outperformed strong OOD baselines like EERM, LiSA, and MARIO.

  • Elliptic (Temporal Shift): On the illicit transaction task, Co-Train-DGI achieved an average F1-score of 79.12% using a GCNII backbone, significantly higher than the strongest baseline, MARIO, at 75.57%.
  • OGB-Arxiv (Temporal Shift): The feature-smoothed version of Dual-Space Retrieval (Retrieval) achieved up to 56.66%* accuracy on the latest time split, a massive improvement over the standard supervised baseline (ERM) at 37.19%.
  • Twitch (Domain Shift): Co-Train variants achieved the highest ROC-AUC across almost all unseen domains, often improving by 2-3 percentage points over specialized OOD baselines.

F1-score results on Elliptic Accuracy results on OGB-Arxiv

Limitations and Future Work

  • Retrieval Overhead: While class-centroid retrieval is efficient, instance-level nearest-neighbor retrieval in the Dual-Space framework can be computationally expensive for very large graphs.
  • SSL Selection: The performance benefit can vary depending on the choice of SSL objective (e.g., DGI vs. GRACE). The paper suggests that the optimal SSL method might be dataset-dependent.
  • Future Directions: The authors suggest exploring more sophisticated fusion strategies beyond gated addition and investigating how these frameworks perform under more extreme "concept shifts" where the relationship between features and labels changes fundamentally.

Summary updated

BibTeX
@misc{hao2026complementary,
  author = {Qingying Hao and Zikang Chen and Chuxuan Hu and Jinyuan Jia and Bo Li and Gang Wang and Carl Gunter},
  title = {{Complementary Supervised and Self-Supervised Representations for Out-of-Distribution Graph Learning}},
  year = {2026},
  eprint = {2610.07628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.07628},
}
Figure