Unknown-aware Dual-temperature Open-set Contrastive Graph Domain Adaptation

Zhihao Chen, Xiao Shen, Xiao Wang, Qingfeng Wang, Xi ZhouarXiv 2026

TL;DR

Imagine training a model to classify papers in one citation network, then asking it to label a different network that contains brand-new research fields it has never seen before. UCGA (Unknown-aware Contrastive Graph Domain Adaptation) solves this "open-set" graph transfer problem by suppressing misleading connections between different classes, using a clever label-noise trick to spot unknown nodes early, and applying a dual-temperature contrastive loss that pulls known classes together across graphs while pushing unknown nodes far away.

What Problem Does This Paper Address?

Graph Domain Adaptation (GDA) transfers knowledge from a labeled source graph to an unlabeled target graph. Most existing GDA methods assume a closed-set world: the target graph only contains classes already seen in the source graph. In reality, target graphs—whether citation networks, e-commerce platforms, or cybersecurity logs—often contain novel classes unseen during training.

Fig. 1. Illustration of O-CNNC problem. The source graph is fully labeled, while the target graph is completely unlabeled. The two graphs share a common label space with multiple known classes, while the target graph also has an extra private label space with unknown class.

This paper tackles Open-set Cross-Network Node Classification (O-CNNC), where the goal is to classify target nodes belonging to known source classes accurately while flagging everything else as "unknown." The authors identify three key hurdles:

  1. Noisy message passing: Standard Graph Neural Networks (GNNs) pass information across edges indiscriminately, so edges between known and unknown nodes blur their representations.
  2. Model bias: Because only source known-class nodes have labels, models tend to force target unknown nodes into known categories.
  3. Inadequate contrastive alignment: Existing contrastive domain adaptation methods use a single temperature parameter, penalizing target unknown nodes and different target known classes equally—even though unknown nodes differ in both domain and semantics.

Methods

UCGA addresses these three challenges with a two-stage framework:

  • Class-aware Attention Learning (New): Applied only to the unlabeled target graph, this mechanism multiplies standard Graph Attention Network (GAT) edge scores by the inner product of the nodes' predicted class probability vectors. This dynamically boosts intra-class edges and dampens inter-class edges without breaking graph connectivity.
  • Unknown-aware Dual-ratio Label-noise Learning (New): To find representative target nodes without biasing the main classifier $f_C$, UCGA introduces an auxiliary classifier $f_{C_0}$ during early training. A subset of target nodes is intentionally labeled as "unknown." Ground-truth unknown nodes act as label-clean data, while ground-truth known nodes act as label-noise data—which naturally exhibit higher loss values early on. Unlike prior work using a single random selection ratio, UCGA uses dual ratios: a small ratio ($q_{kn} < 0.5$) for predicted known nodes (so source clean data dominates target noise) and a large ratio ($q_{uk} > 0.5$) for predicted unknown nodes (so source known data doesn't overwhelm target unknown data). K-means clustering and ranking on these losses then select the most confident pseudo-known and pseudo-unknown target nodes for self-training.
  • Unknown-aware Dual-temperature Contrastive GDA (New): Using class prototypes, UCGA aligns source and target known-class distributions with a larger temperature ($\tau_{kn} = 1$), while assigning a smaller temperature ($\tau_{uk} = 0.1$) to the target unknown prototype. As shown below, the smaller temperature imposes a stronger repulsion penalty, pushing the unknown class much farther away from source known classes.
Dual-temperature contrastive domain adaptation
  • Two-stage Training: Stage 1 (early learning) runs label-noise learning with $f_{C_0}$ alongside contrastive GDA. Stage 2 (refining) drops $f_{C_0}$—before the model can overfit to label noise—and refines boundaries using $f_C$ and contrastive GDA.

Datasets

The authors evaluate UCGA across eight cross-graph benchmark datasets spanning four domains:

  • Citation networks: Citationv1 (C) and DBLPv4 (D)
  • E-commerce networks: AmazonComputers1 (A1) and AmazonComputers2 (A2)
  • Social networks: LastFMAsia1 (L1) and LastFMAsia2 (L2)
  • Large-scale citation networks: OGBN-Arxiv1 (O1) and OGBN-Arxiv2 (O2)

These form eight transfer tasks (C$\rightarrow$D, D$\rightarrow$C, A1$\rightarrow$A2, A2$\rightarrow$A1, L1$\rightarrow$L2, L2$\rightarrow$L1, O1$\rightarrow$O2, and O2$\rightarrow$O1) with an openness ratio around $1/2$ (and $4/9$ for C/D).

Key Insights and Ideas

  • Single-ratio label-noise selection fails in O-CNNC: Selecting target nodes uniformly causes source known-class nodes to dominate target unknown-class nodes. Theoretical analysis (Theorems 1 & 2) proves that $q_{kn} < 0.5$ and $q_{uk} > 0.5$ are needed to balance learning between known and unknown classes.
  • Dual temperatures beat single temperatures: Theorem 3 proves that setting $\tau_{uk} < \tau_{kn}$ guarantees a larger gradient penalty on the target unknown prototype than on different target known prototypes—unless the unknown class has already been pushed farther away.
  • Early stopping for label-noise learning is essential: Replacing two-stage training with one-stage training causes performance to collapse (e.g., OS drops from 69.3% to 24.2% on C$\rightarrow$D), because the model eventually memorizes the noisy labels.

Key Results

UCGA outperforms 13 baselines across open-set domain adaptation, open-set node classification, closed-set GDA, and O-CNNC methods:

  • Small/medium-sized graphs (6 tasks): UCGA improves average OS (overall accuracy) by 6.67%, OS* (known-class accuracy) by 5.55%, AUC (unknown detection) by 10.82%, and HS (harmonic mean) by 8.28% over the second-best methods.
  • Large-scale graphs (O1$\rightarrow$O2, O2$\rightarrow$O1): UCGA improves average OS, OS*, AUC, and HS by 12.87%, 12.54%, 6.73%, and 3.12%, respectively, while maintaining a fast runtime of 1.7414 seconds per epoch on O1$\rightarrow$O2.

Limitations and Future Work

  • Homophily assumption: Because UCGA relies on GAT-based encoders and classifiers, it is designed for homophilic graphs and is unsuitable for heterophilic graphs where inter-class edges carry useful signals.
  • Source data access: UCGA assumes the labeled source graph is available during training, which may be impractical under strict data-privacy constraints; source-free O-CNNC remains an open direction.
  • Single unknown prototype: All target-private classes are lumped into one $(K+1)$-th unknown class, which can oversimplify complex target-private distributions. Separating distinct novel classes in the target graph is left for future work.

Summary updated

BibTeX
@misc{chen2026unknown,
  author = {Zhihao Chen and Xiao Shen and Xiao Wang and Qingfeng Wang and Xi Zhou},
  title = {{Unknown-aware Dual-temperature Open-set Contrastive Graph Domain Adaptation}},
  year = {2026},
  eprint = {2611.40711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40711},
}
Figure