mlsanityData to 7 Oct 2026

Graph Transformers Dream of Electric Flow

arXiv 2410.16699 ↗First posted 22 Oct 2024cs.LG cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

We show theoretically and empirically that the linear Transformer, when applied to graph data, can implement algorithms that solve canonical problems such as electric flow and eigenvector decomposition. The Transformer has access to information on the input graph only via the graph's incidence matrix. We present explicit weight configurations for implementing each algorithm, and we bound the constructed Transformers' errors by the errors of the underlying algorithms. Our theoretical findings are corroborated by experiments on synthetic data. Additionally, on a real-world molecular regression task, we observe that the linear Transformer is capable of learning a more effective positional encoding than the default one based on Laplacian eigenvectors. Our work is an initial step towards elucidating the inner-workings of the Transformer for graph data. Code is available at https://github.com/chengxiang/LinearGraphTransformer

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 24 of its 47 references that are in the map. First posted on arXiv 22 Oct 2024.

Builds on

24 of 47 references.

References · 24

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Transformers learn in-context by gradient descentcited by 714
  3. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
  4. 2020Benchmarking Graph Neural Networkscited by 672
  5. 2020A Generalization of Transformer Networks to Graphscited by 653
  6. 2019Graph Transformer Networkscited by 520
  7. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  8. 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
  9. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
  10. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  11. 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
  12. 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
12 more
  1. 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
  2. 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
  3. 2023Attending to Graph Transformerscited by 81
  4. 2022GRPE: Relative Positional Encoding for Graph Transformercited by 67
  5. 2021Linear algebra with transformerscited by 62
  6. 2020Graph Convolutional Networks using Heat Kernel for Semi-supervised Learningcited by 50
  7. 2021From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformerscited by 38
  8. 2021Transformers Generalize DeepSets and Can be Extended to Graphs and Hypergraphscited by 35
  9. 2023Graph Positional Encoding via Random Feature Propagationcited by 30
  10. 2024Comparing Graph Transformers via Positional Encodingscited by 20
  11. 2022Affinity-Aware Graph Networkscited by 17
  12. 2013An Efficient Parallel Solver for SDD Linear Systemscited by 3

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.