NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs

Md Abrar Jahin, Craig A. Knoblock, Jay PujaraarXiv 2026

TL;DR

This paper demonstrates that global-attention graph transformers used to represent Mixed-Integer Linear Programs (MILPs) do not inherently possess more expressive power than standard, local message-passing neural networks. Through a rigorous compositional proof and extensive empirical testing, the authors show that these architectures are strictly bounded by the 1-dimensional Weisfeiler-Leman (1-WL) graph isomorphism test, revealing that any boost in expressiveness comes entirely from input positional encodings rather than the attention mechanism itself.

What Problem Does This Paper Address?

Mixed-Integer Linear Programs (MILPs) are mathematical frameworks used to solve complex combinatorial optimization problems. Recently, researchers have begun using Graph Foundation Models (GFMs) equipped with global attention to learn representations of MILPs (modeled as bipartite graphs of constraints and variables). The common assumption was that global attention allows these models to look beyond local graph neighborhoods and capture macro-level structural features.

However, the authors question this assumption: What can these hierarchical graph-transformer encoders actually distinguish? Do they genuinely break the expressiveness ceiling of standard Graph Neural Networks (GNNs)?

To answer this, they analyze these models through the lens of the 1-Weisfeiler-Leman (1-WL) color-refinement test, a standard benchmark for graph expressiveness. If an architecture is bounded by 1-WL, it means there are distinct, non-isomorphic graphs (which might have completely different properties, like feasibility) that the model will map to identical embeddings, rendering them indistinguishable to any downstream predictor.

Methods

The authors tackle the problem using a two-pronged approach:

  1. Compositional Expressiveness Analysis (Theoretical): They mathematically dissect a broad class of hierarchical graph transformers that combine global linear self-attention, edge-weighted cross-attention, bipartite message passing, convex fusion, and permutation-invariant pooling. They prove that because each individual stage acts as a symmetric multiset function (meaning it treats its inputs as an unordered set where order doesn't matter), the entire pipeline remains strictly bounded by the 1-WL test.
  2. Empirical Probing and Verification: To validate their theory, they construct families of 1-WL-equivalent, non-isomorphic MILP graphs (such as one long single cycle versus multiple disconnected short cycles). They evaluate ten different graph encoders (including Graphormer-, GraphGPS-, and Set-Transformer-style models) under various configurations to see if they can tell these graph pairs apart.

Datasets

The paper utilizes several specialized graph datasets and configurations for evaluation:

  • 1-WL-Equivalent Test Pairs: 15 specifically constructed pairs of non-isomorphic graphs (14 from a cycle family and 1 from a cubic family) that share identical 1-WL color histograms but differ in their number of connected components.
  • Standard MILP Topologies: The constructed graph structures were "dressed" with realistic feature distributions from standard MILP problem domains: set cover, combinatorial auctions, bipartite matching, and multi-knapsack blocks.
  • Control Dataset: A population of 300 randomly generated bipartite MILPs used as a baseline to verify the capacity of downstream probes.

Key Insights and Ideas

  • Attention is Just a Symmetric Aggregator: Global attention allows every node to attend to every other node, but it does so symmetrically. Without explicit position or structure information, the transformer treats the graph as a bag of nodes, which inherently limits its distinguishing power to the 1-WL level.
  • The Input is the Secret Sauce: The apparent success of graph transformers in capturing global structure is a mirage caused by the architecture itself. The real heavy lifting is done by structural input features—like Random-Walk Positional Encodings (RWPE) or Laplacian Positional Encodings (LapPE)—which inject non-local information before the attention layers even run.
  • Downstream Blind Spots: If a model relies purely on the baseline MILP graph features, it will be completely blind to critical global invariants like connectivity (whether a problem can be broken down into independent sub-problems) or cycle structures, leading to a hard cap on downstream prediction accuracy.

Key Results

The empirical results perfectly mirror the authors' theoretical proofs. When given 1-WL-equivalent graph pairs without positional encodings, all ten tested architectures failed to distinguish them, generating numerically identical embeddings up to floating-point precision.

Table 1: Bit-identical embeddings across ten architectures at baseline (mean ± std over five seeds). EM is the exact-match rate, the fraction of 15 pairs with ∥Φ(MA)−Φ(MB)∥∞≤10−5; “worst ∥·∥∞” is the largest coordinate gap over all pairs and seeds (float32). Top block: the foundation-model family; bottom block: independently designed encoders.

As shown in Table 1, every single encoder achieved an Exact Match (EM) rate of 1.00, meaning they completely conflated the non-isomorphic pairs. The coordinate discrepancies were minuscule ($\sim5.96 \times 10^{-8}$ in float32), sitting squarely at machine epsilon. This representation collapse remained unchanged regardless of changes to model capacity (width, depth, attention heads), graph scale, or pooling operators.

Conversely, when Random-Walk Positional Encodings (RWPE) were introduced as an input transformation, the similarity dropped, allowing the models to successfully separate the graphs.

Limitations and Future Work

While the paper provides a definitive upper bound for standard global-attention architectures, it notes a few boundaries:

  • Scope of the Proof: The 1-WL bound applies strictly to models using symmetric multiset aggregation. Architectures that introduce order-dependent operations (e.g., hard top-$k$ attention or sequence-sensitive readouts) fall outside this proof.
  • Exact vs. Approximate Symmetries: This study focuses on exact 1-WL mathematical equivalence. The authors note that evaluating how these limitations manifest in approximate symmetries within large-scale, real-world solver benchmarks is an important avenue for future research.

Summary updated

BibTeX
@misc{jahin2026weisfeiler,
  author = {Md Abrar Jahin and Craig A. Knoblock and Jay Pujara},
  title = {{A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs}},
  year = {2026},
  eprint = {2607.17570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.17570},
}
Figure