Homomorphism Expressivity of Spectral Invariant Graph Neural Networks
Jingchu Gai, Yiheng Du, Bohang Zhang, Haggai Maron, Liwei Wang
TL;DR
This work provides a complete characterization of the expressive power of spectral invariant GNNs through the framework of graph homomorphism expressivity. The authors prove that, at depth d, spectral invariant GNNs can distinguish exactly the class of graphs whose parallel-tree depth is at most d, yielding a precise hierarchy between spectral methods and WL-based tests such as 1-WL and 2-FWL. They show that refinement via eigen-projections and multiple iterations strictly increases expressivity, and quantify subgraph counting capabilities (e.g., all cycles and short paths up to seven vertices). Extensions to higher-order and symmetric-power variants further generalize the framework, with experiments verifying the theoretical predictions on synthetic and molecular datasets. The results clarify when spectral invariants add power to GNNs and offer a roadmap for constructing architectures with desired expressivity for graph-structured tasks.
Abstract
Graph spectra are an important class of structural features on graphs that have shown promising results in enhancing Graph Neural Networks (GNNs). Despite their widespread practical use, the theoretical understanding of the power of spectral invariants -- particularly their contribution to GNNs -- remains incomplete. In this paper, we address this fundamental question through the lens of homomorphism expressivity, providing a comprehensive and quantitative analysis of the expressive power of spectral invariants. Specifically, we prove that spectral invariant GNNs can homomorphism-count exactly a class of specific tree-like graphs which we refer to as parallel trees. We highlight the significance of this result in various contexts, including establishing a quantitative expressiveness hierarchy across different architectural variants, offering insights into the impact of GNN depth, and understanding the subgraph counting capabilities of spectral invariant GNNs. In particular, our results significantly extend Arvind et al. (2024) and settle their open questions. Finally, we generalize our analysis to higher-order GNNs and answer an open question raised by Zhang et al. (2024).
