Domain-adaptive message passing graph neural network

Xiao Shen, Shirui Pan, Kup-Sze Choi, Xi Zhou

Abstract

Cross-Network Node Classification (CNNC) is a critical task in graph machine learning, aiming to classify nodes in a label-deficient target network by transferring knowledge from a label-rich source network. However, existing methods often struggle with over-smoothing, class-conditional distribution shifts, and the propagation of noisy labels during adaptation. This paper introduces DM-GNN (Domain-adaptive Message Passing Graph Neural Network), a framework that addresses these challenges through a multi-stage architecture featuring dual feature extractors and neighborhood-refined label propagation. Experimental results across social, citation, and heterophilic networks demonstrate that DM-GNN consistently outperforms state-of-the-art baselines, particularly in complex scenarios where node homophily is low.

Introduction

Most Graph Neural Networks (GNNs) operate under the assumption that training and testing data are drawn from the same distribution within a single network. In real-world applications, such as transferring user classifications from an established social network to a nascent one, this i.i.d. assumption is frequently violated. This challenge, known as Cross-Network Node Classification (CNNC), is complicated by three primary factors:

  1. Over-smoothing: Standard GNNs often mix a node's features with its neighbors' too early, leading to a loss of discriminative power.
  2. Conditional Shift: Most domain adaptation techniques focus on marginal distribution alignment, ignoring the class-conditional relationship between features and labels.
  3. Label Noise: Using raw predictions to guide domain alignment can introduce significant error, especially when the target domain is unlabeled.

Methodology

DM-GNN addresses these gaps through a specialized architecture designed to preserve node identity while leveraging graph topology for alignment.

Architecture of the DM-GNN framework showing the dual feature extraction and conditional domain adaptation process.

Dual Feature Extractors

To combat over-smoothing, DM-GNN employs two separate Multi-Layer Perceptrons (MLPs). FE1 learns "ego-embeddings" ($h_i^{\mathcal{F}_1}$) from a node's own attributes, while FE2 learns "neighbor-embeddings" ($h_i^{\mathcal{F}_2}$) from aggregated neighborhood data. By decoupling these features before concatenation, the model preserves the unique identity of nodes, which is crucial for handling outliers and heterophilic structures.

Label Propagation and Refinement

Rather than relying on raw feature-based predictions, DM-GNN incorporates a Label Propagation Node Classifier. This component refines initial predictions by considering the labels of neighboring nodes, effectively "cleaning" the signal before it is used for classification or domain alignment. In the source network, a label-aware propagation mechanism ensures that information is primarily shared between nodes of the same class, creating highly discriminative anchors.

Conditional Adversarial Domain Adaptation

To align the source and target networks, the model utilizes a Conditional Domain Discriminator. Unlike standard discriminators that only look at feature embeddings, DM-GNN uses the tensor product of the embeddings ($e_i$) and the refined label predictions ($\hat{y}_i$). This ensures that the alignment is class-aware, matching nodes of the same category across different networks rather than just aligning the global distributions.

Experimental Evaluation

Datasets

The framework was evaluated on five benchmark datasets representing different graph properties:

  • Social Networks: Blog1 and Blog2 (interest-group classification).
  • Citation Networks: Citationv1, DBLPv7, and ACMv9 (research area classification).
  • Heterophilic Networks: Squirrel1 and Squirrel2 (Wikipedia pages where connected nodes often belong to different classes).

Results

DM-GNN was compared against 11 state-of-the-art methods, including DANN, GCN, ACDNE, and AdaGCN. Key findings include:

  • State-of-the-Art Performance: DM-GNN achieved the highest Micro-F1 and Macro-F1 scores across all tasks. For instance, on the Blog2 $\rightarrow$ Blog1 task, it reached a Micro-F1 of 65.55%, a significant improvement over previous specialized CNNC models.
  • Robustness to Heterophily: On the Squirrel1 $\rightarrow$ Squirrel2 task, DM-GNN outperformed standard GCNs by over 13% in Micro-F1 (34.22% vs 20.92%). This suggests that the dual-extractor design is highly effective for graphs where neighbors do not necessarily share the same label.
  • Ablation Studies: Removing the dual extractors or the conditional discriminator resulted in a measurable performance drop, confirming that the integration of these components is vital for effective cross-network transfer.

Conclusion and Future Work

DM-GNN provides a robust framework for cross-network node classification by separating ego and neighborhood features and employing class-conditional alignment. While the model shows significant gains, future work could explore the use of attention mechanisms to replace fixed topological proximities, allowing for adaptive edge weights. Additionally, further research into encoders specifically designed for extreme heterophily could enhance the model's utility in diverse graph environments.

Summary updated

BibTeX
@article{shen2023domain,
  author = {Xiao Shen and Shirui Pan and Kup-Sze Choi and Xi Zhou},
  title = {{Domain-adaptive message passing graph neural network}},
  journal = {Neural Networks},
  year = {2023},
  doi = {10.1016/j.neunet.2023.04.038},
}
Figure