[edit]
A Weisfeiler–Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs
Proceedings of the 2nd Conference on Topology, Algebra, and Geometry in Data Science(TAG-DS 2026), PMLR 334(2):123-142, 2026.
Abstract
Graph foundation models (GFMs) equipped with global attention are increasingly used to learn representations of mixed-integer linear programs (MILPs), with the stated aim of capturing structural information beyond the locality of standard graph neural networks. We study the expressive power of these architectures through the lens of graph isomorphism testing and ask which MILP instances they map to identical representations. We prove that a broad class of hierarchical graph transformers combining global linear attention, edge-weighted cross-attention, and bipartite message passing is bounded by the one-dimensional Weisfeiler{–}Leman (1-WL) test: for any parameter setting, any pair of 1-WL-equivalent MILP graphs receives an identical graph embedding. The result follows from a compositional analysis in which each architectural component is shown to be a symmetric multiset function and therefore to preserve 1-WL equivalence. We validate the characterization across ten architecturally diverse graph encoders, including Graphormer-, GraphGPS-, Set-Transformer-, and Gasse-style models. Across model capacities, graph scales, and pooling operators, all tested encoders map 1-WL-equivalent non-isomorphic graph pairs to numerically identical embeddings. We then analyze the consequences of this representation equivalence for downstream prediction: graph invariants that vary within a 1-WL equivalence class are not recoverable from the resulting representations. Finally, we localize the source of expressiveness beyond 1-WL to the input encoding rather than the attention mechanism. Random-walk positional encodings separate the constructed pairs, while additional constructions characterize the limits of this remedy. Together, these results provide a theoretical and empirical characterization of the expressive power of global-attention graph foundation models, together with an encoder-agnostic diagnostic for detecting 1-WL-induced representation equivalence.