Organizations: College of Intelligence and Computing, Tianjin University, Tianjin, China · Departments of Health Technology & Informatics; Data Science & Artificial Intelligence; and Computing, The Hong Kong Polytechnic University, Kowloon, Hong Kong
Universal graph pre-training has emerged as a key paradigm in graph representation learning, offering a promising way to train encoders to learn transferable representations from unlabeled graphs and to effectively generalize across a wide range of downstream tasks. However, recent explorations in universal graph pre-training primarily focus on homogeneous graphs and it remains unexplored for heterogeneous graphs, which exhibit greater structural and semantic complexity. This heterogeneity makes it highly challenging to train a universal encoder for diverse heterogeneous graphs: (i) the diverse types with dataset-specific semantics hinder the construction of a unified representation space; (ii) the number and semantics of meta-paths vary across datasets, making encoding and aggregation patterns learned from one dataset difficult to apply to others. To address these challenges, we propose a novel Meta-path-aware Universal heterogeneous Graph pre-training (MUG) approach. Specifically, for challenge (i), MUG introduces a input unification module that integrates information from multiple node and relation types within each heterogeneous graph into a unified representation.This representation is then projected into a shared space by a dimension-aware encoder, enabling alignment across graphs with diverse schemas.Furthermore, for challenge (ii), MUG trains a shared encoder to capture consistent structural patterns across diverse meta-path views rather than relying on dataset-specific aggregation strategies, while a global objective encourages discriminability and reduces dataset-specific biases. Extensive experiments demonstrate the effectiveness of MUG on some real datasets.
Figures & tables
Figure 1: Homophily ratios on six datasets. Cora and CiteSeer ( Yang et al. 2016 ) are homogeneous graphs, while ACM ( Zhao et al. 2020 ) , DBLP ( Fu et al. 2020 ) , AMiner ( Hu et al. 2019 ) and Freebase ( Li et al. 2021a ) are heterogeneous. For heterogeneous graphs, we compute the homophily ratio for each meta-path-based adjacency matrix and report the average.
Figure 2: Overview of the MUG. Given a heterogeneous graph with diverse node types, relation types, and attributes, we first get embedding Zstruct by contextual structural encoding. The embedding is concatenated with the original node attributes X to obtain unified representation X~ , which contains diverse type and attribute information. Then, a dimension-aware encoder is applied to align representation spaces and produce the unified input Xunify . Finally, a shared GNN encoder is used to encode each masked adjacency matrix A~ϕ with the unified input Xunify , producing Zϕ . The model is optimized by three objectives: a dimension alignment loss Lalign , a meta-path masked reconstruction loss Lϕ and a global scattering regularization loss Lscatter .
Train
Method
ACM
DBLP
AMiner
Freebase
Ma-F1
Mi-F1
Ma-F1
Mi-F1
Ma-F1
Mi-F1
Ma-F1
Mi-F1
ACM
HeCo
80.22 ± 2.45
79.71 ± 3.23
76.76 ± 0.44
77.97 ± 0.41
24.48 ± 1.31
51.18 ± 6.21
31.22 ± 1.33
40.67 ± 0.76
HGMAE
84.22 ± 0.52
84.01 ± 0.50
87.17 ± 0.19
88.23 ± 0.23
29.08 ± 0.83
41.91 ± 7.06
32.59 ± 1.12
42.95 ± 1.31
HERO
84.37 ± 0.29
84.12 ± 0.30
84.60 ± 0.61
85.80 ± 0.54
44.08 ± 1.38
50.14 ± 1.31
33.69 ± 1.77
43.32 ± 0.43
MUG
85.52 ± 0.79
84.90 ± 1.13
91.69 ± 0.13
92.38 ± 0.30
76.35 ± 0.04
87.02 ± 0.15
46.05 ± 0.52
49.78 ± 1.29
DBLP
HeCo
82.93 ± 0.80
83.43 ± 0.70
90.11 ± 0.33
90.73 ± 0.31
26.89 ± 1.09
35.23 ± 5.45
35.58 ± 0.94
39.53 ± 2.11
Table 1: Performance on cross-domain node classification with standard deviations. The best results are highlighted in bold.
Shot-num
Method
ACM
DBLP
Aminer
Freebase
Ma-F1
Mi-F1
Ma-F1
Mi-F1
Ma-F1
Mi-F1
Ma-F1
Mi-F1
1-shot
HeCo
59.36 ± 12.32
63.41 ± 9.52
45.74 ± 10.32
49.94 ± 9.53
23.85 ± 2.61
39.69 ± 10.43
30.70 ± 3.08
39.58 ± 3.68
HGMAE
73.17 ± 5.04
75.48 ± 4.96
61.46 ± 5.68
65.94 ± 5.54
20.65 ± 4.46
36.88 ± 7.33
30.65 ± 3.87
38.20 ± 4.37
HERO
51.39 ± 1.99
57.37 ± 1.31
40.49 ± 4.12
41.87 ± 4.88
44.18 ± 0.78
50.14 ± 1.31
32.20 ± 2.21
42.56 ± 0.97
MUG
79.49 ± 4.26
79.54 ± 3.93
84.24 ± 5.64
85.76 ± 4.95
49.12 ± 6.16
72.10 ± 4.68
33.24 ± 2.63
42.20 ± 1.96
3-shot
HeCo
73.53 ± 8.71
74.77 ± 7.29
64.49 ± 6.69
66.09 ± 6.50
24.93 ± 1.92
40.56 ± 8.13
33.15 ± 2.66
40.12 ± 2.39
Table 2: Performance on few-shot node classification with standard deviations. The best results are highlighted in bold.
Figure 3: Ablation results for cross-domain node classification, trained on Freebase and evaluated on four datasets.
In recent years, the rapid development of foundation models and graph pre-training technologies has spurred increasing interest in constructing a universal pre-trained graph model or Graph Foundation Model (GFM). However, a significant challenge is that existing models are unable to address feature heterogeneity in graph data without textual information, which hinders the transferability of graph models across different datasets. To bridge this gap, we propose the concept of learnable graph patches, which we regard as the smallest semantic units of any graph data. We decompose the graph into learnable graph patches by unfolding the node features and constructing corresponding patch structures separately. We then design a framework that mines transferable information from graph data across domains. Specifically, after extracting graph patches, we propose a patch encoder to extract knowledge from each unit and a patch aggregator to learn how the units are combined into a whole. Due to its domain-agnostic nature, the model can be applied to downstream data across different domains. Furthermore, we analyze the connection between our method and existing graph models, as well as the transferability of the node embeddings it generates. Empirically, our method not only achieves the capability to use multi-domain graphs for pre-training, but also shows enhanced performance across various downstream datasets and tasks. Moreover, we observe consistent improvement in downstream performance as the volume of pre-training data increases.
Yifei Sun, Yang Yang, Xiao Feng +4
Zhejiang University Hangzhou, China · Huazhong University of Science and Technology Wuhan, China · Finvolution Group Shanghai, China
Recent advances in generic large models, such as GPT and DeepSeek, have motivated the introduction of universality to graph pre-training, aiming to learn rich and generalizable knowledge across diverse domains using graph representations to improve performance in various downstream applications. However, most existing methods face challenges in learning effective knowledge from generic graphs, primarily due to simplistic data alignment and limited training guidance. The issue of simplistic data alignment arises from the use of a straightforward unification for highly diverse graph data, which fails to align semantics and misleads pre-training models. The problem with limited training guidance lies in the arbitrary application of in-domain pre-training paradigms to cross-domain scenarios. While it is effective in enhancing discriminative representation in one data space, it struggles to capture effective knowledge from many graphs. To address these challenges, we propose a novel Latent sEmantic Distribution Alignment (LEDA) model for universal graph pre-training. Specifically, we first introduce a dimension projection unit to adaptively align diverse domain features into a shared semantic space with minimal information loss. Furthermore, we design a variational semantic inference module to obtain the shared latent distribution. The distribution is then adopted to guide the domain projection, aligning it with shared semantics across domains and ensuring cross-domain semantic learning. LEDA exhibits strong performance across a broad range of graphs and downstream tasks. Remarkably, in few-shot cross-domain settings, it significantly outperforms in-domain baselines and advanced universal pre-training models.
Lianze Shan, Jitao Zhao, Dongxiao He +3
Tianjin University, Tianjin, China · Jilin University, Changchun, China · The Hong Kong Polytechnic University, Kowloon, Hong Kong
While foundation models have revolutionized natural language processing and computer vision by leveraging universal vocabularies, Graph Machine Learning (GML) remains fractured due to the absence of a unified feature and structural representation across diverse domains. Existing works claiming to be Graph Foundation Models (GFMs) are typically restricted to node-level predictions or require fixed feature dimensions, failing to provide a truly task-agnostic backbone for the full spectrum of graph learning applications. In this paper, we introduce the Universal Classifier (UC), which supports arbitrary feature and class cardinalities, unifying node-, edge-, and graph-level objectives under a single similarity-based classification objective. The UC reformulates all node-, edge-, and graph-level prediction tasks as maximizing similarity in the latent space: by lifting heterogeneous features and labels into 3D latent tensors, the model learns transferable features independent of specific input schemas. This architecture allows a single pre-trained model to generalize to node classification, node regression, and link prediction across unseen graphs with varying feature semantics. Experiments show strong zero-shot transfer performance across node-, link-, and graph-level tasks.
Ben Finkelshtein, André Linhares, Petar Veličković +2