HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

GraphGPT: Generative Pre-trained Graph Eulerian Transformer

Qifang Zhao Weidong Ren Tianyu Li Hong Liu Xingsheng He Xiaoxiao Xu

GraphGPT: Generative Pre-trained Graph Eulerian Transformer

Abstract

We introduceGraphGPT, a novel self-supervised generative pre-trained model for graph learning based on the Graph Eulerian Transformer (GET). First, we propose GET, which combines a standard transformer encoder or decoder architecture with an innovative graph-to-sequence transformation method. This method converts graphs or sampled subgraphs into sequences of tokens representing nodes, edges, and attributes in a reversible manner using Eulerian paths. We pre-train GET using either of the two self-supervised tasks: next-token prediction (NTP) and scheduled masked-token prediction (SMTP). The pre-trained model is then fine-tuned for downstream tasks such as graph-, edge-, and node-level prediction. Despite its simplicity, GraphGPT achieves performance comparable to or surpassing state-of-the-art methods on multiple large-scale Open Graph Benchmark (OGB) datasets. It demonstrates exceptional results on the molecular property prediction dataset PCQM4Mv2 and the protein-protein interaction dataset ogbl-ppa. Notably, generative pre-training enables scaling GraphGPT to 2 billion parameters while maintaining performance gains - a breakthrough that overcomes the scalability limitations of traditional Graph Neural Networks (GNNs) and prior graph transformers (GTs). To advance research in graph foundation models and facilitate scientific discovery in chemistry, materials science, and related fields, we will release the source code (https://github.com/alibaba/graph-gpt) and pre-trained checkpoints.

Code Repositories

alibaba/graph-gpt
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
link-property-prediction-on-ogbl-citation2GraphGPT(SMTP)
Ext. data: No
Number of params: 46784128
Test MRR: 0.9055 ± 0.0016
Validation MRR: 0.9042 ± 0.0014
link-property-prediction-on-ogbl-citation2GraphGPT(d1n30)
Ext. data: No
Number of params: 133096832
Test MRR: 0.9305 ± 0.0020
Validation MRR: 0.9295 ± 0.0022
link-property-prediction-on-ogbl-ppaGraphGPT(SMTP)
Ext. data: No
Number of params: 145263360
Test Hits@100: 0.6876 ± 0.0067
Validation Hits@100: 0.7017 ± 0.0044

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
GraphGPT: Generative Pre-trained Graph Eulerian Transformer | Papers | HyperAI