ICML 2025

Graph Generative Pre-trained Transformer

Xiaohui Chen, Yinkai Wang, Jiaxing He, Yuanqi Du, Soha Hassoun, Xiaolin Xu, Li-Ping Liu

Main figure for Graph Generative Pre-trained Transformer

Abstract

Graph generation is a critical task in numerous domains, including molecular design and social network analysis, due to its ability to model complex relationships and structured data. While most modern graph generative models utilize adjacency matrix representations, this work revisits an alternative approach that represents graphs as sequences of node set and edge set. We advocate for this approach due to its efficient encoding of graphs and propose a novel representation. Based on this representation, we introduce the Graph Generative Pre-trained Transformer (G2PT), an auto-regressive model that learns graph structures via next-token prediction. To further exploit G2PT's capabilities as a general-purpose foundation model, we explore fine-tuning strategies for two downstream applications: goal-oriented generation and graph property prediction. We conduct extensive experiments across multiple datasets. Results indicate that G2PT achieves superior generative performance on both generic graph and molecule datasets. Furthermore, G2PT exhibits strong adaptability and versatility in downstream tasks from molecular design to property prediction. Code available at https://github.com/tufts-ml/G2PT,

Benchmark Results

Tested on 6 datasets 12 baseline values reported too low

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

MoleculeNet

#ModelROC-AUC ↑Paper
1
HIMP
0.8740 ±0.0050
2
GINE w/ VN
0.8720 ±0.0030
3
NaiveGINe+ K=3 w/ VN
0.8700 ±0.0040
14
GCN
0.8400 ±0.0040
46
ContextPred
actual #46 vs paper #279 233 places worse
0.8060 ±0.0120
best reported
actual #46 vs paper #279 233 places worse
paper 0.7330 ±0.0050
paper 0.7330 ±0.0050 Δ at pub 0.0730
47
GraphCL
actual #47 vs paper #231 184 places worse
0.8050 ±0.0170
best reported
actual #47 vs paper #231 184 places worse
paper 0.7500 ±0.0050
paper 0.7500 ±0.0050 Δ at pub 0.0550
61
GraphMVP
actual #61 vs paper #246 185 places worse
0.7990 ±0.0180
best reported
actual #61 vs paper #246 185 places worse
paper 0.7450
81
InfoGraph
actual #81 vs paper #282 201 places worse
0.7930
best reported
actual #81 vs paper #282 201 places worse
paper 0.7300 ±0.0070
paper 0.7300 ±0.0070 Δ at pub 0.0630
202
GraphMAE
actual #202 vs paper #231 29 places worse
0.7550 ±0.0060
best reported
actual #202 vs paper #231 29 places worse
paper 0.7500 ±0.0040

Difference within reported uncertainty; not counted as underperformance.

paper 0.7500 ±0.0040 Δ at pub 0.0050 Δ today 0.0050
229
AttrMask
actual #229 vs paper #259 30 places worse
0.7510 ±0.0090
best reported
actual #229 vs paper #259 30 places worse
paper 0.7420 ±0.0080

Difference within reported uncertainty; not counted as underperformance.

paper 0.7420 ±0.0080 Δ at pub 0.0090
232
G2PT_base
0.7500 ±0.0030
This paper
241
G2PT_small
0.7470 ±0.0020
This paper
#ModelROC-AUC ↑Paper
1
ProtoMol
0.9140 ±0.0030
2
MMSG
0.9080 ±0.0050
3
MemGNN
0.9070
43
GIN
0.8646 ±0.0081
105
GraphMAE
actual #105 vs paper #141 36 places worse
0.8310 ±0.0090
best reported
actual #105 vs paper #141 36 places worse
paper 0.8140 ±0.0140

Difference within reported uncertainty; not counted as underperformance.

paper 0.8140 ±0.0140 Δ at pub 0.0170 Δ today 0.0170
125
G2PT_base
0.8230 ±0.0160
This paper
148
G2PT_small
0.8130 ±0.0050
This paper
#ModelROC-AUC ↑Paper
1
MAGPrompt+
0.9432 ±0.0238
2
CamS-LLaMA
0.9420
3
SE(3)-I MPPH
0.9400 ±0.0210
34
GIN
0.8875 ±0.0049
36
GraphCL
actual #36 vs paper #219 183 places worse
0.8870 ±0.0190
best reported
actual #36 vs paper #219 183 places worse
paper 0.6750 ±0.0250
paper 0.6750 ±0.0250 Δ at pub 0.2120
40
ContextPred
actual #40 vs paper #118 78 places worse
0.8770 ±0.0260
best reported
actual #40 vs paper #118 78 places worse
paper 0.7120 ±0.0090
paper 0.7120 ±0.0090 Δ at pub 0.1650
49
GraphMVP
actual #49 vs paper #190 141 places worse
0.8600 ±0.0340
best reported
actual #49 vs paper #190 141 places worse
paper 0.6850 ±0.0020
paper 0.6850 ±0.0020 Δ at pub 0.1750
101
GraphMAE
actual #101 vs paper #123 22 places worse
0.7200 ±0.0060
best reported
actual #101 vs paper #123 22 places worse
paper 0.7090 ±0.0090

Difference within reported uncertainty; not counted as underperformance.

paper 0.7090 ±0.0090 Δ at pub 0.0110 Δ today 0.0110
123
G2PT_base
0.7100 ±0.0040
This paper
141
AttrMask
0.7020 ±0.0050
This paper
173
InfoGraph
0.6920 ±0.0080
This paper
191
G2PT_small
0.6850 ±0.0050
This paper
#ModelROC-AUC ↑Paper
1
SE(3)-I MPPH
0.9930 ±0.0040
2
KA-GCN
0.9920 ±0.0050
3
KA-GAT
0.9910 ±0.0050
19
GCN
0.9130 ±0.0170
73
G2PT_small
0.8230 ±0.0220
This paper
75
G2PT_base
0.8210 ±0.0110
This paper
#ModelROC-AUC ↑Paper
1
KA-GAT
0.8470 ±0.0020
2
KA-GCN
0.8420 ±0.0010
3
GraphKAN
0.8370 ±0.0010
66
GIN
0.6403 ±0.0104
70
GraphMVP
actual #70 vs paper #99 29 places worse
0.6390 ±0.0120
best reported
actual #70 vs paper #99 29 places worse
paper 0.6230 ±0.0160

Difference within reported uncertainty; not counted as underperformance.

paper 0.6230 ±0.0160 Δ at pub 0.0160 Δ today 0.0160
103
ContextPred
actual #103 vs paper #196 93 places worse
0.6220 ±0.0059
best reported
actual #103 vs paper #196 93 places worse
paper 0.5930 ±0.0140
112
G2PT_base
0.6190 ±0.0020
This paper
114
GraphCL
actual #114 vs paper #178 64 places worse
0.6183 ±0.0060
best reported
actual #114 vs paper #178 64 places worse
paper 0.6010 ±0.0130

Difference within reported uncertainty; not counted as underperformance.

paper 0.6010 ±0.0130 Δ at pub 0.0173
118
G2PT_small
0.6170 ±0.0100
This paper
134
AttrMask
actual #134 vs paper #169 35 places worse
0.6120 ±0.0012
best reported
actual #134 vs paper #169 35 places worse
paper 0.6040 ±0.0060

Difference within reported uncertainty; not counted as underperformance.

paper 0.6040 ±0.0060 Δ at pub 0.0080 Δ today 0.0080
162
InfoGraph
actual #162 vs paper #199 37 places worse
0.6054 ±0.0090
best reported
actual #162 vs paper #199 37 places worse
paper 0.5920 ±0.0020

Difference within reported uncertainty; not counted as underperformance.

paper 0.5920 ±0.0020 Δ at pub 0.0134
175
GraphMAE
actual #175 vs paper #183 8 places worse
0.6030 ±0.0110
best reported
actual #175 vs paper #183 8 places worse
paper 0.5990 ±0.0050

Difference within reported uncertainty; not counted as underperformance.

paper 0.5990 ±0.0050 Δ at pub 0.0040 Δ today 0.0040
#ModelROC-AUC ↑Paper
1
GeomGCL
0.7630
2
LiGhT DeepGPT
0.7570 ±0.0110
3
CoMPT
0.7550
14
GCN
0.7350 ±0.0020
28
ContextPred
actual #28 vs paper #167 139 places worse
0.7140 ±0.0180
best reported
actual #28 vs paper #167 139 places worse
paper 0.6280 ±0.0030
paper 0.6280 ±0.0030 Δ at pub 0.0860
35
InfoGraph
actual #35 vs paper #184 149 places worse
0.7050
best reported
actual #35 vs paper #184 149 places worse
paper 0.6200 ±0.0030
paper 0.6200 ±0.0030 Δ at pub 0.0850
42
GraphCL
actual #42 vs paper #167 125 places worse
0.6960 ±0.0230
best reported
actual #42 vs paper #167 125 places worse
paper 0.6280 ±0.0020
paper 0.6280 ±0.0020 Δ at pub 0.0680
50
GraphMVP
actual #50 vs paper #168 118 places worse
0.6890 ±0.0100
best reported
actual #50 vs paper #168 118 places worse
paper 0.6270 ±0.0010
paper 0.6270 ±0.0010 Δ at pub 0.0620
128
GraphMAE
0.6410 ±0.0010
This paper
150
AttrMask
actual #150 vs paper #177 27 places worse
0.6330 ±0.0060
best reported
actual #150 vs paper #177 27 places worse
paper 0.6250 ±0.0040

Difference within reported uncertainty; not counted as underperformance.

paper 0.6250 ±0.0040 Δ at pub 0.0080
165
G2PT_base
0.6300 ±0.0050
This paper
192
G2PT_small
0.6120 ±0.0010
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 result worse than the best known when published (best reported in green)