Introduction
Standard Message-Passing Graph Neural Networks (MPNNs) are famously limited by the Weisfeiler-Lehman (1-WL) test, meaning they cannot distinguish certain non-isomorphic graphs or count basic structures like cycles. To overcome this limitation, researchers often incorporate "spectral invariants"—features derived from the eigenvalues and eigenvectors of graph matrices, such as the Laplacian.
While spectral GNNs have shown promising results in practice (e.g., for molecular modeling), the theoretical understanding of their exact expressive power has remained incomplete. Previous work suggested their expressivity was bounded by the 2-FWL test, but the exact gap remained fuzzy. This paper provides a definitive theoretical characterization of Spectral Invariant GNNs, proving that they are exactly as powerful as counting a specific class of tree-like structures called parallel trees, placing them strictly between the standard 1-WL and 2-FWL expressivity benchmarks.
Methods: Homomorphism Expressivity and Parallel Trees
The authors employ a theoretical framework known as Homomorphism Expressivity. Instead of merely asking if a GNN can distinguish two graphs, this framework asks: Which pattern graphs $F$ can this GNN count the mappings (homomorphisms) from $F$ to a target graph $G$?
A key technical contribution of this work is the formal definition of Parallel Trees. These are a new class of graphs created by taking a standard tree and replacing its edges with "parallel edges" (multiple simple paths sharing the same endpoints).
To establish their proofs, the authors demonstrate that spectral information (eigenvalues and projection matrices) is equivalent to a "walk-encoding" GNN. They then adapt the "Pebble Game"—a tool from finite model theory—to spectral invariants to prove that their characterization is "maximal," meaning there are no other hidden structures these GNNs can count.
Key Insights and Theoretical Results
The "Parallel Tree" Breakthrough
The most significant discovery is that spectral GNNs are perfectly tuned to count homomorphisms of parallel trees. Because parallel trees can contain cycles (unlike standard trees), this explains precisely why spectral GNNs easily outperform standard MPNNs, which are generally restricted to tree-like structures.
Depth Always Helps
A major open question in the field was whether spectral GNNs stop gaining expressive power after a few layers. This paper proves that for any depth $d$, a $d+1$ layer spectral GNN is strictly more powerful than a $d$ layer one. Their structural "horizon" expands with every layer. Furthermore, the authors prove that to reach maximal expressivity for a graph of size $n$, a spectral GNN requires $O(n)$ iterations, providing a tight lower bound on the necessary network depth.
The Power of Projections and Cycle Limits
The authors show that using eigenvalues alone is quite weak, only allowing the network to count cycles and paths. Adding projection matrices (eigenvectors) is what grants the ability to count complex parallel tree structures. They also precisely quantify cycle counting limits: a spectral GNN can count all cycles up to 7 vertices, but fails at the 8-vertex cycle. This is because a 4-clique is a homomorphic image of an 8-cycle, but a 4-clique is not a parallel tree.
Theoretical Hierarchy
The paper establishes a strict expressivity hierarchy: 1-WL < Spectral GNN < 2-FWL. Specifically, Spectral GNNs are incomparable to Subgraph GNNs at low depths but eventually surpass them in certain structural counts as depth increases.
Empirical Validation
The paper validates its theoretical claims using three types of experiments:
- Homomorphism Counting: A synthetic benchmark where models must count specific non-tree substructures.
- Subgraph Counting: Specifically counting cycles of lengths 3 through 6.
- Real-World Molecular Tasks: The ZINC dataset (both subset and full), a standard benchmark for predicting chemical properties. Spectral Invariant GNNs significantly outperformed standard MPNNs on ZINC and showed performance comparable to more complex Subgraph GNNs, validating that their theoretical expressivity translates to practical predictive power.
Limitations and Future Work
While powerful, parallel trees are a subset of graphs with a treewidth of 2. This means spectral GNNs still cannot "see" or count structures with higher treewidth, such as large cliques or complex grids, without moving to higher-order variants. Additionally, while the paper discusses higher-order spectral GNNs, the computational cost of spectral decomposition for very large graphs remains a practical hurdle.
Future directions suggested by the authors include extending this framework to even more exotic invariants or exploring how these structural insights can guide the design of more "physics-informed" GNNs for molecular dynamics.
Summary updated