arXiv AI

Depth-Width tradeoffs in Algorithmic Reasoning of Graph Tasks with Transformers

arXiv:2503. 01805v3 Announce Type: replace-cross Abstract: Transformers have revolutionized the field of machine learning.

arXiv AI
Nov 11

Transformers Provably Learn Graph Search: Training Dynamics and the Exponential Power of Depth

The paper studies how transformer models learn to perform graph search, specifically depth‑first search (DFS), on directed graphs. It shows that a single‑layer transformer needs a quadratic number of parameters to implement the DFS child‑selection step, while a two‑layer transformer can perform full DFS with near‑linear size. Moreover, each additional layer exponentially increases the look‑ahead horizon, and the authors prove that two‑layer transformers can learn DFS through gradient flow and generalize to unseen graphs.

By Xutao Ma, Somayeh Sojoudi
arXiv Machine Learning
Sep 30

Lost in Tokenization: Fundamental Trade-offs in Graph Tokenization for Transformers

The paper investigates how the choice of graph tokenization affects transformer expressivity. It analyzes three tokenization families—spectral, random‑walk, and adjacency—showing that each induces different depth requirements and that some tokenizations are inherently lossy or ill‑conditioned for certain tasks. The authors prove lower bounds and impossibility results for converting between tokenizations and validate these findings with experiments on synthetic and real‑world data.

By Maya Bechler-Speicher, Gilad Yehudai, Gil Harari, Clayton Sanford, Amir Globerson, Joan Bruna
arXiv Machine Learning
Oct 16

Size-Transferability of Graph Transformers with Convolutional Positional Encodings

The paper investigates Graph Transformers (GTs) that use Graph Neural Network (GNN)-based positional encodings. By analyzing GTs through manifold limit models, the authors establish a theoretical link between GTs and Manifold Neural Networks (MNNs), showing that GTs inherit transferability guarantees from their positional encodings. Experiments on standard graph benchmarks confirm that GTs scale comparably to GNNs, and a real‑world shortest‑path estimation task demonstrates their practical efficiency on large terrains.

By Javier Porras-Valenzuela, Zhiyang Wang, Teresa Shang, Yusu Wang, Alejandro Ribeiro
arXiv Machine Learning
Nov 2

Spectral Condition for $\mu$P under Width-Depth Scaling

The paper introduces a unified spectral framework for maximal update parameterization (μP) that applies to models scaled in both width and depth. It shows that for deep residual networks, the scaling of weight norms and updates depends on the number of transformations per residual block (k), revealing a key transition from k = 1 to k ≥ 2. Experiments on GPT‑2 style language models confirm that the k ≥ 2 (CompleteP‑style) parameterization yields stable feature learning and robust hyperparameter transfer, whereas k = 1 or standard parameterizations often fail.

By Chenyu Zheng, Rongzhen Wang, Xinyu Zhang, Chongxuan Li
arXiv Machine Learning
1d ago

GIST: Gauge-Invariant Spectral Transformers for Scalable Graph Neural Operators

The paper introduces GIST, a Gauge‑Invariant Spectral Transformer designed to overcome two key limitations of neural operators on irregular meshes: the high cubic complexity of spectral positional encodings and the loss of gauge invariance caused by numerical eigendecompositions. GIST achieves scalability by focusing on pairwise inner products of efficient approximate spectral embeddings, proving that these inner products form an exactly gauge‑invariant graph kernel with ≠O(N) complexity and establishing a formal link between gauge invariance and discretization‑invariant learning. Empirical results demonstrate that GIST attains state‑of‑the‑art performance on large mesh benchmarks (up to 750K nodes) and matches strong baselines on standard graph datasets.

By Mattia Rigotti, Nicholas Thumiger, Thomas Frick