paper-with-me

Papers

Simple Path Structural Encoding for Graph Transformers

2025-02-13 · Louis Airale, Antonio Longa, Mattia Rigon, Andrea Passerini, Roberto Passerone

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.

📄 PDF Abstract BibTeX arXiv:2502.09365

Code (1)

LouisBearing/Graph-SPSE-Encoding 공식 구현 pytorch

Tasks

Graph Learning

Similar Papers 제목 키워드 기반

On Structural Expressive Power of Graph Transformers

2023-05-23 · Wenhao Zhu, Tianyu Wen, Guojie Song, Liang Wang 외

Graph Transformer has recently received wide attention in the research community with its outstanding performance, yet its structural expressive power has not been well analyzed. Inspired by the connections between Weisf…

Graph Neural Network

Enhancing Graph Transformers with Hierarchical Distance Structural Encoding

2023-08-22 · Yuankai Luo, Hongkang Li, Lei Shi, Xiao-Ming Wu

Graph transformers need strong inductive biases to derive meaningful attention scores. Yet, current methods often fall short in capturing longer ranges, hierarchical structures, or community structures, which are common …

Graph ClassificationGraph RegressionNode Classification

Communicability-Inspired Positional Encoding (CIPE)

2026-06-24 · Yipeng Zhang, Zhongtian Sun, Pietro Liò, Kelin Xia arxiv

Positional encodings (PEs) are essential for Transformers. Yet designing effective PEs for non-Euclidean graphs remains challenging. Such encodings should ideally induce an Attention-Compatible Geometry for self-attentio…

Do Transformers Really Perform Bad for Graph Representation?

2021-06-09 · Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng 외

The Transformer architecture has become a dominant choice in many domains, such as natural language processing and computer vision. Yet, it has not achieved competitive performance on popular leaderboards of graph-level …

Graph ClassificationGraph Property PredictionGraph RegressionGraph Representation Learning+2

Do Transformers Really Perform Badly for Graph Representation?

2021-12-01 · NeurIPS 2021 12 · Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng 외

The Transformer architecture has become a dominant choice in many domains, such as natural language processing and computer vision. Yet, it has not achieved competitive performance on popular leaderboards of graph-level …

Graph Representation LearningRepresentation Learning