논문 해설
GraphGPT: Generative Pre-trained Graph Eulerian Transformer
GraphGPT: 생성형 pre-training 그래프 오일러 트랜스포머
- 연구 문제 GNN과 기존 그래프 트랜스포머는 확장성, 과제 범용성, 생성적 pre-training 측면에서 한계가 있습니다.
- 연구 방법 그래프를 Eulerian 경로 기반 토큰 시퀀스로 가역 변환하고 표준 트랜스포머를 NTP 또는 SMTP로 사전학습한 뒤 과제별로 미세조정합니다.
- 주요 결과 PCQM4Mv2, ogbl-ppa, ogbn-proteins 등 여러 OGB 과제에서 보고된 최고 또는 경쟁력 있는 결과를 제시하며, 결과는 각 모델 크기와 과제 조건에 따라 달라집니다.
그래프 학습에서 트랜스포머를 확장하기 어려운 이유
GNN은 과평활화와 과압축 때문에 규모를 키우고 대량의 그래프 데이터를 활용하기에 한계가 있다고 원문은 지적합니다. 기존 그래프 트랜스포머는 그래프 구조를 인코딩하기 위해 수작업 특징이나 GNN 모듈에 의존하는 경우가 많고, 노드·간선 수준 과제에서 약하며, 생성적 pre-training을 위한 효과적인 틀이 부족합니다. 이 논문은 이러한 세 가지 문제를 함께 다루기 위해 그래프를 토큰 시퀀스로 바꾸어 표준 트랜스포머로 사전학습하는 접근을 제안합니다.
Eulerian 경로 기반 그래프 직렬화
GraphGPT는 그래프를 (semi-)Eulerian 경로를 따라 토큰 시퀀스로 직렬화합니다. 연결되지 않은 성분은 합성 간선으로 잇고, Eulerian 성질이 없으면 Eulerization으로 최소 간선을 중복 추가합니다. 이후 가능한 경로 중 하나를 무작위로 골라 데이터 증강 역할을 하게 하고, 노드는 경로 등장 순서대로 재색인합니다. 순환 재색인 i′=(i+r)%N은 시작 인덱스 토큰의 편향을 줄이기 위해 도입됩니다. 원문은 이 직렬화가 손실 없이 가역적이라고 설명하며, 이는 경로의 인접 토큰으로 간선을 복원할 수 있다는 조건에서 성립한다고 제시됩니다.

Figure 1 . Overview of Graph-to-Sequence Tokenization. (Left) The process of converting a (sub)graph into a token sequence via a (semi-)Eulerian path. Dashed lines indicate duplicated edges added during Eulerization to enable full edge traversal. (Right) Three methods (short, long, prolonged) for integrating node/edge attributes into the Eulerian sequence. For simplicity, we assume one node attribute (n1) and one edge attribute (e1) per edge. Special tokens include padding token [p] and edge type et (e.g., incoming/outgoing direction). Sequence parameters: m is length of the Eulerian sequence, and l = 2 +#edge-attrs + #node-attrs (here, l = 4).
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.
Table 7 . Ablation study of node re-indexing on the ogbg-molpcba dataset with two model sizes. PT means pre-training.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.서브그래프 샘플링과 다중 토큰 노드 식별자
대규모 그래프는 한 번에 직렬화하면 시퀀스가 지나치게 길어지므로, ShaDowKHop 샘플러로 무작위로 선택된 노드나 간선 주변의 국소 서브그래프를 추출합니다. 전역 노드 식별자는 노드마다 고유 토큰을 두면 어휘가 폭발하므로, METIS로 분할한 군집 기반의 k개 토큰 조합으로 표현합니다. 원문은 10^10개 노드를 105 크기 어휘의 두 토큰으로 표현하는 예를 듭니다.

Table 10 . Details of subgraph sampling for ogbl-ppa and ogbn-proteins datasets. ‘seq-len’ means the average length of the Eulerian sequences. Edge-ego means sampling subgraph around the central edge, and Node-ego means sampling around the central node.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.NTP와 SMTP pre-training 및 과제별 fine-tuning
pre-training은 다음 토큰 예측(NTP)과 스케줄된 마스크 토큰 예측(SMTP) 중 하나로 수행됩니다. SMTP에서는 노드 수준 마스킹 시 같은 노드의 모든 출현을 함께 가립니다. fine-tuning에서는 그래프 수준 과제에 [GSUM] 토큰, 간선 수준 과제에 대상 간선의 양 끝 노드 토큰, 노드 수준 과제에 대상 노드 토큰을 덧붙이고, 마지막 토큰의 출력을 무작위 초기화된 MLP에 입력합니다. 트랜스포머 가중치는 pre-training 체크포인트에서 초기화되고 모든 파라미터가 fine-tuning 중 갱신됩니다.

Figure 2 . Pre-training and fine-tuning illustrations.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.분자, 링크, 노드 과제의 검증 결과
PCQM4Mv2에서 GraphGPT-B48의 테스트 MAE는 0.0804로 보고되며, 이는 저자들이 인용한 이전 최고 기록 0.0821보다 낮습니다. ogbl-ppa에서는 GraphGPT-XXL의 HR@100이 76.55%로 보고되고, ogbn-proteins에서는 GraphGPT-B의 ROC-AUC가 85.33%로 보고됩니다. Triangles에서는 pre-training 데이터 구성에 따라 정확도가 달라지며, 표 3의 결과는 10회 독립 실행의 평균으로 보고됩니다. 이 수치들은 각각 해당 과제·지표·모델 크기 조건에서의 결과이며 모든 과제에 일반화된 결과가 아닙니다.

Table 1 . Results of the graph regression task on the PCQM4Mv2 dataset. The metric is mean absolute error (MAE), the smaller the better. 86% of the valid dataset is added to training after hyper-parameters selection. Superscript numbers indicate source references, while subscript numbers correspond to model vari- ants in Table 11 (Appendix). The best results are in bold, and second-best are underlined. This notation convention applies to all subsequent tables.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Table 3 . Results of the graph classification task on the Triangles dataset. Superscript numbers indicate source references, while letters denote specific pre-training datasets. We report averaged metrics from 10 independent runs to ensure statistical reliability. The baseline results are from Müller et al. (2024).
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Table 4 . Results of the link prediction task on the ogbl-ppa and ogbl-citation2 datasets.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Table 5 . Results of the node classification task on the ogbn-proteins and ogbn-arxiv datasets.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 11 . Statistics of GraphGPT models of different sizes. The GraphGPT-Base is of the same scale as Bert-Base (Devlin et al., 2019).
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.대규모 pre-training 의존성과 계산 비용
원문은 GraphGPT가 대규모 pre-training 데이터에 의존한다고 밝히며, ogbn-arxiv처럼 작은 데이터셋에서는 전통적 GNN보다 성능이 낮다고 보고합니다. 또한 PCQM4Mv2에서 GraphGPT-B pre-training에 약 63 V100 GPU 시간이 필요하다고 제시합니다. 따라서 이 방법의 효과는 대규모 데이터와 연산 자원이 있는 조건에서 확인된 것으로 읽어야 합니다.

Table 17 . Run-time comparison between GraphGPT variants and GNNs on the PCQM4Mv2 dataset. Time per epoch is measured in minutes.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.
Table 18 . Computational cost details of the main datasets in the paper. ‘PT’ means pre-training and ‘FT’ stands for fine-tuning. Time is measured in hours. The model size is ‘Base’ as in Tab. 11 with number of parameters about 110M. The corresponding hyper-parameters can be found in Tab. 13, 14, 15, 16.
원문 · CC BY 4.0 · Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao · GraphGPT: Generative Pre-trained Graph Eulerian Transformer · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2023년 12월 31일
- 등록일
- 2026년 10월 29일
- 수정일
- 2025년 6월 6일
- 버전
- v3
- arXiv
- 2401.00529
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
Zhao, Qifang, Ren, Weidong, Li, Tianyu, Liu, Hong, He, Xingsheng, Xu, Xiaoxiao (2023). GraphGPT: Generative Pre-trained Graph Eulerian Transformer. arXiv:2401.00529v3. https://arxiv.org/abs/2401.00529v3
BibTeX
@misc{qifang2023graphgpt,
title = {{GraphGPT: Generative Pre-trained Graph Eulerian Transformer}},
author = {Zhao, Qifang and Ren, Weidong and Li, Tianyu and Liu, Hong and He, Xingsheng and Xu, Xiaoxiao},
year = {2023},
eprint = {2401.00529},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2401.00529v3}
}