Transformers Meet Directed Graphs
Simon Geisler, Yujia Li, Daniel J. Mankowitz, Ali Taylan Cemgil, Stephan Günnemann, Cosmin Paduraru
摘要
Transformers were originally proposed as a sequence-to-sequence model for text but have become vital for a wide range of modalities, including images, audio, video, and undirected graphs. However, transformers for directed graphs are a surprisingly underexplored topic, despite their applicability to ubiquitous domains, including source code and logic circuits. In this work, we propose two direction- and structure-aware positional encodings for directed graphs: (1) the eigenvectors of the Magnetic Laplacian - a direction-aware generalization of the combinatorial Laplacian; (2) directional random walk encodings. Empirically, we show that the extra directionality information is useful in various downstream tasks, including correctness testing of sorting networks and source code understanding. Together with a data-flow-centric graph construction, our model outperforms the prior state of the art on the Open Graph Benchmark Code2 relatively by 14.7%.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Recipe for a General, Powerful, Scalable Graph Transformer 引用了 Reformer: The Efficient Transformer
- Recipe for a General, Powerful, Scalable Graph Transformer 引用了 Rethinking Graph Transformers with Spectral Attention
- Comparing Graph Transformers via Positional Encodings 引用了 Rethinking Graph Transformers with Spectral Attention
- Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based Approach 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based Approach 引用了 HoloNets: Spectral Convolutions do extend to Directed Graphs
- Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based Approach 引用了 Transformers over Directed Acyclic Graphs
- On the Connection Between MPNN and Graph Transformer 引用了 Recipe for a General, Powerful, Scalable Graph Transformer
- On the Connection Between MPNN and Graph Transformer 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- On the Connection Between MPNN and Graph Transformer 引用了 Rethinking Graph Transformers with Spectral Attention
- HoloNets: Spectral Convolutions do extend to Directed Graphs 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Rethinking Graph Transformers with Spectral Attention 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Transformers over Directed Acyclic Graphs 引用了 Recipe for a General, Powerful, Scalable Graph Transformer
- Transformers over Directed Acyclic Graphs 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Transformers over Directed Acyclic Graphs 引用了 Rethinking Graph Transformers with Spectral Attention
引用它的顶会 Paper18
- On the Connection Between MPNN and Graph TransformerChen Cai, Truong Son Hy, Rose Yu, Yusu WangICML 2023 · 82 次引用
- Transformers over Directed Acyclic GraphsYuankai Luo, Veronika Thost, Lei ShiNeurIPS 2023 · 43 次引用
- Comparing Graph Transformers via Positional EncodingsMitchell Black, Zhengchao Wan, Gal Mishne, Amir Nayyeri 等ICML 2024 · 27 次引用
- HoloNets: Spectral Convolutions do extend to Directed GraphsChristian Koke, Daniel CremersICLR 2024 · 25 次引用
- Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based ApproachXunkai Li, Daohan Su, Zhengyu Wu, Guang Zeng 等WWW 2025 · 4 次引用
它引用的 Paper19
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong 等NeurIPS 2020 · 3,935 次引用
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
- CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
- Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu 等NeurIPS 2022 · 1,216 次引用
- Rethinking Graph Transformers with Spectral AttentionDevin Kreuzer, Dominique Beaini, William L. Hamilton, Vincent Létourneau 等NeurIPS 2021 · 854 次引用
相关 Paper
- What Are Good Positional Encodings for Directed Graphs?Yinan Huang, Haoyu Peter Wang, Pan LiICLR 2025
- Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan 等ICLR 2025
- MagNet: A Neural Network for Directed GraphsXitong Zhang, Yixuan He, Nathan Brugnone, Michael Perlmutter 等NeurIPS 2021 · 223 次引用
- On the Stability of Expressive Positional Encodings for GraphsYinan Huang, William Lu, Joshua Robinson, Yu Yang 等ICLR 2024 · 32 次引用
- Rotary Position Encodings for GraphsIsaac Reid, Arijit Sehanobish, Cederik Höfs, Bruno Mlodozeniec 等ICML 2026
