KDD 2024

UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphs

Yufei He, Yuan Sui, Xiaoxin He, Bryan Hooi

Main figure for UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphs

Abstract

Foundation models like ChatGPT and GPT-4 have revolutionized artificial intelligence, exhibiting remarkable abilities to generalize across a wide array of tasks and applications beyond their initial training objectives. However, graph learning has predominantly focused on single-graph models, tailored to specific tasks or datasets, lacking the ability to transfer learned knowledge to different domains. This limitation stems from the inherent complexity and diversity of graph structures, along with the different feature and label spaces specific to graph data. In this paper, we recognize text as an effective unifying medium and employ Text-Attributed Graphs (TAGs) to leverage this potential. We present our UniGraph framework, designed to learn a foundation model for TAGs, which is capable of generalizing to unseen graphs and tasks across diverse domains. Unlike single-graph models that use pre-computed node features of varying dimensions as input, our approach leverages textual features for unifying node representations, even for graphs such as molecular graphs that do not naturally have textual features. We propose a novel cascaded architecture of Language Models (LMs) and Graph Neural Networks (GNNs) as backbone networks. Additionally, we propose the first pre-training algorithm specifically designed for large-scale self-supervised learning on TAGs, based on Masked Graph Modeling. We introduce graph instruction tuning using Large Language Models (LLMs) to enable zero-shot prediction ability. Our comprehensive experiments across various graph learning tasks and domains demonstrate the model's effectiveness in self-supervised representation learning on unseen graphs, few-shot in-context transfer, and zero-shot transfer, even surpassing or matching the performance of GNNs that have undergone supervised training on target datasets.

Benchmark Results

Tested on 3 datasets Non-standard metric on 1 dataset

Tables show presented results in global context (best 3 papers + GCN + MLP).

OGB

#ModelAccuracy ↑Paper
1
Jacobi
0.8968
2
GPR
0.8953
3
LEMP4HG
0.8939
4
SAGE
0.8933
93
UniGraph-single
0.8224 ±0.0024
This paper
180
GraphMAE2-single
0.7911 ±0.0024
This paper
187
BGRL-single
0.7901 ±0.0032
This paper
218
GraphMAE-single
0.7824 ±0.0037
This paper
219
DGI-single
0.7811 ±0.0024
This paper
351
MLP
0.6605 ±0.0020
#ModelAccuracy ↑Paper
1
SGC
0.7910
2
GAMLP
0.7036 ±0.0002
3
GLEM-GNN
0.7036 ±0.0002
15
UniGraph
0.6789 ±0.0021
This paper
35
SAGE
0.6644 ±0.0017
41
GraphMAE2
0.6624 ±0.0054
This paper
49
GAT
actual #49 vs paper #49
0.6598 ±0.0023
actual #49 vs paper #49
paper 0.6598 ±0.0023
95
MLP
0.4960 ±0.0030

Knowledge Graphs

WN18RR

Global leaderboard →
Non-default metric. This paper reports Accuracy; the dataset default is MRR. Values below use Accuracy only.

Sorted by Accuracy. Highlighted rows are from other papers.

#ModelAccuracy ↑Paper
1
OFA-llama2-13b
0.9814 ±0.0025
2
OFA-llama2-7b
0.9808 ±0.0016
3
OFA-e5
0.9784 ±0.0035
17
UniGraph-single
0.8721 ±0.0076
This paper
18
GCN
0.8677 ±0.0030
20
UniGraph-cross
0.8545 ±0.0034
This paper
31
GraphMAE-single
0.7234 ±0.0024
This paper
32
BGRL-single
0.7211 ±0.0068
This paper
33
GraphMAE2-single
0.7045 ±0.0024
This paper
34
DGI-single
0.5204 ±0.0022
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported value improved over the best known when published