English

One Model for One Graph: A New Perspective for Pretraining with Cross-domain Graphs

Machine Learning 2025-05-30 v2 Artificial Intelligence Machine Learning

Abstract

Graph Neural Networks (GNNs) have emerged as a powerful tool to capture intricate network patterns, achieving success across different domains. However, existing GNNs require careful domain-specific architecture designs and training from scratch on each dataset, leading to an expertise-intensive process with difficulty in generalizing across graphs from different domains. Therefore, it can be hard for practitioners to infer which GNN model can generalize well to graphs from their domains. To address this challenge, we propose a novel cross-domain pretraining framework, "one model for one graph," which overcomes the limitations of previous approaches that failed to use a single GNN to capture diverse graph patterns across domains with significant gaps. Specifically, we pretrain a bank of expert models, with each one corresponding to a specific dataset. When inferring to a new graph, gating functions choose a subset of experts to effectively integrate prior model knowledge while avoiding negative transfer. Extensive experiments consistently demonstrate the superiority of our proposed method on both link prediction and node classification tasks.

Keywords

Cite

@article{arxiv.2412.00315,
  title  = {One Model for One Graph: A New Perspective for Pretraining with Cross-domain Graphs},
  author = {Jingzhe Liu and Haitao Mao and Zhikai Chen and Bingheng Li and Wenqi Fan and Mingxuan Ju and Tong Zhao and Neil Shah and Jiliang Tang},
  journal= {arXiv preprint arXiv:2412.00315},
  year   = {2025}
}
R2 v1 2026-06-28T20:17:45.409Z