Transformers over Directed Acyclic Graphs
Yuankai Luo, Veronika Thost, Lei Shi
摘要
Transformer models have recently gained popularity in graph representation learning as they have the potential to learn complex relationships beyond the ones captured by regular graph neural networks. The main research question is how to inject the structural bias of graphs into the transformer architecture, and several proposals have been made for undirected molecular graphs and, recently, also for larger network graphs. In this paper, we study transformers over directed acyclic graphs (DAGs) and propose architecture adaptations tailored to DAGs: (1) An attention mechanism that is considerably more efficient than the regular quadratic complexity of transformers and at the same time faithfully captures the DAG structure, and (2) a positional encoding of the DAG's partial order, complementing the former. We rigorously evaluate our approach over various types of tasks, ranging from classifying source code graphs to nodes in citation networks, and show that it is effective in two important aspects: in making graph transformers generally outperform graph neural networks tailored to DAGs and in improving SOTA graph transformer performance in terms of both quality and efficiency.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- From Theory to Practice: Rethinking Green and Martin Kernels for Unleashing Graph Transformers 引用了 Recipe for a General, Powerful, Scalable Graph Transformer
- From Theory to Practice: Rethinking Green and Martin Kernels for Unleashing Graph Transformers 引用了 Do Transformers Really Perform Badly for Graph Representation?
- From Theory to Practice: Rethinking Green and Martin Kernels for Unleashing Graph Transformers 引用了 Principal Neighbourhood Aggregation for Graph Nets
- Recipe for a General, Powerful, Scalable Graph Transformer 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Recipe for a General, Powerful, Scalable Graph Transformer 引用了 Principal Neighbourhood Aggregation for Graph Nets
- Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence 引用了 Recipe for a General, Powerful, Scalable Graph Transformer
- Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence 引用了 Enhancing Graph Transformers with Hierarchical Distance Structural Encoding
- Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based Approach 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Enhancing Graph Transformers with Hierarchical Distance Structural Encoding 引用了 Recipe for a General, Powerful, Scalable Graph Transformer
- Enhancing Graph Transformers with Hierarchical Distance Structural Encoding 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Enhancing Graph Transformers with Hierarchical Distance Structural Encoding 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Enhancing Graph Transformers with Hierarchical Distance Structural Encoding 引用了 Principal Neighbourhood Aggregation for Graph Nets
- DualEqui: A Dual-Space Hierarchical Equivariant Network for Large Biomolecules 引用了 Recipe for a General, Powerful, Scalable Graph Transformer
- DualEqui: A Dual-Space Hierarchical Equivariant Network for Large Biomolecules 引用了 Enhancing Graph Transformers with Hierarchical Distance Structural Encoding
- DualEqui: A Dual-Space Hierarchical Equivariant Network for Large Biomolecules 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Do Transformers Really Perform Badly for Graph Representation? 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Do Transformers Really Perform Badly for Graph Representation? 引用了 Principal Neighbourhood Aggregation for Graph Nets
- Principal Neighbourhood Aggregation for Graph Nets 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
引用它的顶会 Paper15
- Enhancing Graph Transformers with Hierarchical Distance Structural EncodingYuankai Luo, Hongkang Li, Lei Shi, Xiao-Ming WuNeurIPS 2024 · 26 次引用
- Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based ApproachXunkai Li, Daohan Su, Zhengyu Wu, Guang Zeng 等WWW 2025 · 4 次引用
- DualEqui: A Dual-Space Hierarchical Equivariant Network for Large BiomoleculesJunjie Xu, Jiahao Zhang, Mangal Prakash, Xiang Zhang 等NeurIPS 2025 · 2 次引用
- From Theory to Practice: Rethinking Green and Martin Kernels for Unleashing Graph TransformersYoon Hyeok Lee, Jaemin Park, Taejin Paik, Doyun Kim 等ICML 2025
- Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet ExcellenceYuankai Luo, Lei Shi, Xiao-Ming WuICML 2025
它引用的 Paper26
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong 等NeurIPS 2020 · 3,935 次引用
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng 等NeurIPS 2021 · 1,632 次引用
- Learning to Simulate Complex Physics with Graph NetworksAlvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying 等ICML 2020 · 1,439 次引用
- Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu 等NeurIPS 2022 · 1,216 次引用
- Principal Neighbourhood Aggregation for Graph NetsGabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò 等NeurIPS 2020 · 914 次引用
相关 Paper
- Structure-Aware Transformer for Graph Representation LearningDexiong Chen, Leslie O'Bray, Karsten M. BorgwardtICML 2022 · 349 次引用
- Directed Acyclic Graph Neural NetworksVeronika Thost, Jie ChenICLR 2021 · 134 次引用
- Transformers Meet Directed GraphsSimon Geisler, Yujia Li, Daniel J. Mankowitz, Ali Taylan Cemgil 等ICML 2023 · 51 次引用
- Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan 等ICLR 2025
- Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph ProductsGuy Bar-Shalom, Beatrice Bevilacqua, Haggai MaronICML 2024 · 13 次引用
