English

Generalizable Insights for Graph Transformers in Theory and Practice

Machine Learning 2025-11-12 v1

Abstract

Graph Transformers (GTs) have shown strong empirical performance, yet current architectures vary widely in their use of attention mechanisms, positional embeddings (PEs), and expressivity. Existing expressivity results are often tied to specific design choices and lack comprehensive empirical validation on large-scale data. This leaves a gap between theory and practice, preventing generalizable insights that exceed particular application domains. Here, we propose the Generalized-Distance Transformer (GDT), a GT architecture using standard attention that incorporates many advancements for GTs from recent years, and develop a fine-grained understanding of the GDT's representation power in terms of attention and PEs. Through extensive experiments, we identify design choices that consistently perform well across various applications, tasks, and model scales, demonstrating strong performance in a few-shot transfer setting without fine-tuning. Our evaluation covers over eight million graphs with roughly 270M tokens across diverse domains, including image-based object detection, molecular property prediction, code summarization, and out-of-distribution algorithmic reasoning. We distill our theoretical and practical findings into several generalizable insights about effective GT design, training, and inference.

Keywords

Cite

@article{arxiv.2511.08028,
  title  = {Generalizable Insights for Graph Transformers in Theory and Practice},
  author = {Timo Stoll and Luis Müller and Christopher Morris},
  journal= {arXiv preprint arXiv:2511.08028},
  year   = {2025}
}

Comments

Accepted at NeurIPS 2025 as spotlight

R2 v1 2026-07-01T07:31:38.682Z