GraphGPT: Generative Pre-trained Graph Eulerian Transformer

Qifang Zhao, Weidong Ren, Tianyu Li, Xiaoxiao Xu, Hong Liu
2/12/2026

No official code found. Best implementation: alibaba/graph-gpt (108 stars, MIT, last commit 2026-04-07).

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.

View on arXivView PDF

Code Implementations(1)

alibaba/graph-gptCommunity100%
MIT

Generative Pre-trained Graph Eulerian Transformer [ICML2025]

10810PythonOct 9, 20236 months agoMIT
aiai-for-sciencegptgraphgraphlearning+2 more

Similar Papers

Cite this paper

@article{zhao2026graphgpt,
  title  = {GraphGPT: Generative Pre-trained Graph Eulerian Transformer},
  author = {Qifang Zhao and Weidong Ren and Tianyu Li and Xiaoxiao Xu and Hong Liu},
  year   = {2026},
  eprint = {2401.00529},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.00529},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.00529.svg)](https://codeofpaper.com/paper/2401.00529)

Discussion