arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.11099cs.LGcs.AI
收藏

图标记化:连接图与变换器

Graph Tokenization for Bridging Graphs and Transformers

Beijing University of Posts and Telecom.(北京邮电大学)

Zeyuan Guo, Enmao Diao, Cheng Yang, Chuan Shi

AI总结:

本文提出图标记化框架,结合可逆图序列化与BPE,使变换器模型可直接应用于图结构数据,实现对图基准测试的高性能表现。

摘要:

大型预训练变换器的成功与标记器紧密相关,因为它们将原始输入转换为离散符号。将这些模型扩展到图结构数据仍是一个重大挑战。在本工作中,我们介绍了一个图标记化框架,通过结合可逆图序列化(保留图信息)与字对编码(BPE),一种在大型语言模型(LLMs)中广泛采用的标记器,生成图的序列表示。为了更好地捕捉结构信息,图序列化过程由图子结构的全局统计信息引导,确保频繁出现的子结构在序列中出现更频繁,并可通过BPE合并为有意义的标记。实验证明,所提出的标记器使BERT等变换器能够直接应用于图基准测试,而无需架构修改。所提出的方法在14个基准数据集上实现了最先进的结果,并经常优于图神经网络和专门的图变换器。本工作弥合了图结构数据与序列模型生态系统之间的差距。我们的代码可在https://github.com/BUPT-GAMMA/Graph-Tokenization-for-Bridging-Graphs-and-Transformers获取。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑