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

用于图Transformer的简单路径结构编码

Simple Path Structural Encoding for Graph Transformers

University of Trento(特伦托大学)

Louis Airale, Antonio Longa, Mattia Rigon, Andrea Passerini, Roberto Passerone

AI总结:

针对图Transformer中随机游走结构编码(RWSE)难以区分不同局部图模式的局限,本文提出简单路径结构编码(SPSE),利用简单路径计数进行边编码并设计高效近似算法,在多个基准上显著提升了图结构表示能力与判别性能。

摘要:

图Transformer将全局自注意力扩展至图结构数据,在图学习中取得了显著成功。近期研究发现,随机游走结构编码(RWSE)通过将结构和位置信息编码进边表示中,进一步增强了其预测能力。然而,RWSE并不总能区分属于不同局部图模式的边,这削弱了其捕获图完整结构复杂性的能力。本工作引入了简单路径结构编码(SPSE),这是一种利用简单路径计数进行边编码的新方法。我们从理论和实验上证明,SPSE克服了RWSE的局限性,提供了更丰富的图结构表示,特别是在捕获局部环状模式方面。为使SPSE在计算上可行,我们提出了一种用于简单路径计数的高效近似算法。在包括分子和长程图数据集的多个基准上,SPSE比RWSE展现出显著的性能提升,在判别性任务中取得了统计显著的增益。这些结果表明,SPSE可作为增强图Transformer表达能力的强大边编码替代方案。

英文摘要:

Graph transformers extend global self-attention to graph-structured data, achieving notable success in graph learning. Recently, random walk structural encoding (RWSE) has been found to further enhance their predictive power by encoding both structural and positional information into the edge representation. However, RWSE cannot always distinguish between edges that belong to different local graph patterns, which reduces its ability to capture the full structural complexity of graphs. This work introduces Simple Path Structural Encoding (SPSE), a novel method that utilizes simple path counts for edge encoding. We show theoretically and experimentally that SPSE overcomes the limitations of RWSE, providing a richer representation of graph structures, particularly for capturing local cyclic patterns. To make SPSE computationally tractable, we propose an efficient approximate algorithm for simple path counting. SPSE demonstrates significant performance improvements over RWSE on various benchmarks, including molecular and long-range graph datasets, achieving statistically significant gains in discriminative tasks. These results pose SPSE as a powerful edge encoding alternative for enhancing the expressivity of graph transformers.

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

↑