[논문 리뷰] Graph Tokenization for Bridging Graphs and Transformers
이 논문은 GraphTokenizer를 소개합니다, 그래프를 가역적이고 구조-가이드 시퀀스로 변환하고, BPE 기반 토크나이저를 학습하여 표준 트랜스포머가 구조 변경 없이 그래프를 처리하도록 하여 14개의 벤치마크에서 최첨단 결과를 달성합니다.
The success of large pretrained Transformers is closely tied to tokenizers, which convert raw input into discrete symbols. Extending these models to graph-structured data remains a significant challenge. In this work, we introduce a graph tokenization framework that generates sequential representations of graphs by combining reversible graph serialization, which preserves graph information, with Byte Pair Encoding (BPE), a widely adopted tokenizer in large language models (LLMs). To better capture structural information, the graph serialization process is guided by global statistics of graph substructures, ensuring that frequently occurring substructures appear more often in the sequence and can be merged by BPE into meaningful tokens. Empirical results demonstrate that the proposed tokenizer enables Transformers such as BERT to be directly applied to graph benchmarks without architectural modifications. The proposed approach achieves state-of-the-art results on 14 benchmark datasets and frequently outperforms both graph neural networks and specialized graph transformers. This work bridges the gap between graph-structured data and the ecosystem of sequence models. Our code is available at \href{https://github.com/BUPT-GAMMA/Graph-Tokenization-for-Bridging-Graphs-and-Transformers}{\color{blue}here}.
연구 동기 및 목표
- Transformer 아키텍처를 변경하지 않으면서 시퀀스 모델의 구조를 보존하는 원칙 있는 그래프 토크나이저의 필요성 제시.
- 전역 부분구조 빈도에 의해 가이드되는 가역적이고 결정론적인 그래프 직렬화를 개발합니다.
- 직렬화를 바이트 페어 인코딩(BPE)과 결합하여 그래프에 의미 있고 압축적인 어휘를 학습합니다.
- 표준 Transformer 백본을 사용하여 14개의 그래프 벤치마크에서 최첨단 성능을 시연합니다.]
- method:[
- Define a graph tokenizer as the composition Phi = T o f, where f is a reversible, structure-guided graph serialization and T is a BPE-based sequence tokenizer.
- Compute dataset-level local substructure frequencies F(p) from training graphs to deterministically guide the serialization f_g via a Frequency-Guided Eulerian circuit.
- Extend Hierholzer’s Eulerian traversal with a frequency-based priority to obtain a reversible and deterministic graph serialization.
- Train a BPE vocabulary on the serialized corpus to obtain discrete graph tokens V_T and merge rules R, enabling efficient tokenization of graphs.
- Provide encode/decode procedures to map between graphs and token sequences using the learned F and codebook C (V_T, R) and the inverse serialization f^{-1}.
- Evaluate GT with two Transformer backbones (GT+BERT and GT+GTE) across 14 graph benchmarks, analyzing compression, speed, and predictive accuracy.
제안 방법
- 그래프 토크나이저를 합성 Phi = T o f 로 정의합니다. 여기서 f는 가역적이고 구조-가이드된 그래프 직렬화이며 T는 BPE 기반 시퀀스 토크나이저입니다.
- 학습 그래프에서 데이터셋 수준의 로컬 부분구조 빈도 F(p)를 계산하여 Frequency-Guided Eulerian 회로를 통해 직렬화 f_g를 결정적으로 안내합니다.
- Hierholzer의 오일러 순회를 빈도 기반 우선순위로 확장하여 가역적이고 결정론적인 그래프 직렬화를 얻습니다.
- 직렬화된 코퍼스에서 BPE 어휘를 학습하여 이산 그래프 토큰 V_T와 합치 규칙 R을 얻고, 그래프의 효율적인 토큰화를 가능하게 합니다.
- 학습된 F와 코드북 C(V_T, R), 역 직렬화 f^{-1}을 사용하여 그래프와 토큰 시퀀스 간의 인코딩/디코딩 절차를 제공합니다.
- 두 개의 Transformer 백본(GT+BERT 및 GT+GTE)을 사용하여 14개 그래프 벤치마크에서 GT를 평가하고, 압축성, 속도 및 예측 정확도를 분석합니다.]
- research_questions:[
- 전역 그래프-부분구조 통계에 의해 가이드되는 그래프 직렬화가 그래프에서 시퀀스로의 결정론적이고 가역적인 매핑을 가능하게 할 수 있는가?
- 가역적 구조 가이드 직렬화와 BPE를 결합하는 것이 표준 Transformer에 적합한 정보-rich하고 압축된 그래프 토큰을 생성하는가?
- 그래프Tokenizer 프레임워크가 분류 및 회귀 벤치마크에서 최첨단 그래프 학습 방법들과 어떻게 비교되는가?
- 다양한 직렬화 전략과 BPE의 사용이 성능과 안정성에 미치는 영향은 무엇인가?

실험 결과
연구 질문
- RQ1Can a graph serialization guided by global graph-substructure statistics enable a deterministic, reversible mapping from graphs to sequences?
- RQ2Does combining reversible structure-guided serialization with BPE yield informative, compact graph tokens suitable for standard Transformers?
- RQ3How does the GraphTokenizer framework compare to state-of-the-art graph learning methods across classification and regression benchmarks?
- RQ4What is the impact of different serialization strategies and the use of BPE on performance and stability?
주요 결과
- BPE compression reduces serialized sequence length to about 10% of original for Feuler, improving efficiency.
- GT+GTE achieves state-of-the-art results on most benchmarks, e.g., ogbg-molhiv ROC-AUC of 0.876 (val 0.903).
- Frequency-guided Eulerian circuit (Feuler) outperforms unguided Eulerian methods and improves stability.
- BPE substantially improves performance and stability across configurations.
- Reversible, structure-guided serialization paired with Transformer backbones can surpass specialized Graph Neural Networks and graph transformers on multiple datasets.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.