Towards Unsupervised Open-Set Graph Domain Adaptation via Dual Reprogramming

Zhen Zhang, Bingsheng He

Abstract

This paper addresses the challenge of unsupervised open-set graph domain adaptation (UOSGDA), where a model must generalize from a labeled source graph to an unlabeled target graph that contains novel, unseen classes. Existing methods often struggle with domain-specific biases and rely on brittle manual confidence thresholds for detecting unknown classes. We present GraphRTA (Reprogram To Adapt), a dual reprogramming framework that simultaneously prunes the GNN model to remove source bias and modifies the target graph's structure and features to better separate known from unknown nodes. By incorporating an explicit "unknown" class and a 3-way adversarial training strategy, GraphRTA eliminates the need for manual thresholding and achieves state-of-the-art performance across diverse graph benchmarks.

Introduction

Graph Neural Networks (GNNs) have shown remarkable success in graph-based tasks, yet their performance often degrades under distribution shifts between training (source) and deployment (target) data. While closed-set Graph Domain Adaptation (GDA) assumes shared categories between domains, real-world scenarios are frequently open-set, where the target domain introduces entirely new categories.

Existing open-set GDA approaches typically rely on manually defined confidence thresholds to distinguish between known and unknown classes. However, these thresholds are difficult to tune and often lead to the misalignment of unknown target nodes with known source features. GraphRTA overcomes these limitations through a "dual reprogramming" approach that adapts both the model architecture and the data representation.

The GraphRTA Framework

GraphRTA attacks the open-set adaptation problem from two complementary sides: model-centric and data-centric reprogramming.

1. Model Reprogramming (Domain-Agnostic)

Inspired by the Lottery Ticket Hypothesis, GraphRTA prunes the GNN to mitigate domain-specific biases. By calculating weight gradients and masking those with the smallest values, the model is forced to rely on more robust, transferable patterns. Crucially, the framework augments the classifier with an explicit extra dimension for the "unknown" class, removing the reliance on manual thresholds.

2. Graph Reprogramming (Distribution-Aware)

Instead of treating the target graph as static, GraphRTA introduces learnable parameters to update node features and dynamically modifies the graph structure. Using a binary matrix and XOR operations, the model can add or delete edges within a defined budget, physically enhancing the separability of different node types in the latent space.

Overview of the GraphRTA framework, illustrating the dual reprogramming of the GNN model and the target graph structure.

3. 3-Way Adversarial Training

To align distributions effectively, GraphRTA employs a 3-way adversarial training strategy. It uses a Beta mixture model to estimate the probability of a target node being "known" or "unknown" based on prediction entropy. Domain adversarial learning then aligns source nodes with target-known nodes while explicitly pushing target-unknown nodes away from the known feature space.

Experimental Evaluation

The authors evaluated GraphRTA on several benchmark suites:

  • Citation Networks: DBLPv7, Citationv1, and ACMv9.
  • Temporal Shifts: The ogbn-arxiv dataset split into three time-based domains (Arxiv I, II, III).
  • Heterophily Graphs: WebKB datasets (Cornell, Texas, Wisconsin) featuring web page hyperlinks.

Performance was primarily measured using the H-score (the harmonic mean of accuracy on known vs. unknown classes), which ensures the model performs well across both categories without bias.

Results and Discussion

GraphRTA consistently outperformed standard GNNs and existing open-set DA baselines such as DANCE, SDA, and PGL.

Quantitative comparison of GraphRTA against baselines on citation network benchmarks.

Key findings from the evaluation include:

  • Threshold-Free Robustness: The explicit "unknown" class and Beta mixture model proved significantly more robust than manual thresholding.
  • Structural Separation: Ablation studies confirmed that graph reprogramming physically separates unknown class distributions from known ones, preventing feature entanglement.
  • Backbone Resilience: Simpler architectures like GCN were found to adapt more effectively than complex models like GAT, which often struggle with domain shifts without extensive tuning.
  • Semantic Enhancement: Preliminary experiments using LLM-generated semantic explanations for nodes showed a massive performance boost, suggesting a promising future for text-attributed graph learning.

Conclusion

GraphRTA introduces a robust dual reprogramming paradigm for unsupervised open-set graph domain adaptation. By adapting both the model and the graph structure, it effectively identifies novel classes and aligns known distributions without manual intervention. Future work will explore source-free adaptation and further integration of large language models to enhance semantic understanding in graph domains.

Summary updated

BibTeX
@inproceedings{zhang2025towards,
  author = {Zhen Zhang and Bingsheng He},
  title = {{Towards Unsupervised Open-Set Graph Domain Adaptation via Dual Reprogramming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=iDcPkDrlaW},
}
Figure