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

Graph Neural Networks Are More Powerful Than we Think

Charilaos I. Kanatsoulis, Alejandro Ribeiro

Abstract: Despite the remarkable success of Graph Neural Networks (GNNs), the common belief is that their representation power is limited and that they are at most as expressive as the Weisfeiler-Lehman (WL) algorithm. In this paper, we argue the opposite and show that standard GNNs, with anonymous inputs, produce more discriminative representations than the WL algorithm. Our novel analysis employs linear algebraic tools and characterizes the representation power of GNNs with respect to the eigenvalue decomposition of the graph operators. We prove that GNNs are able to generate distinctive outputs from white uninformative inputs, for, at least, all graphs that have different eigenvalues. We also show that simple convolutional architectures with white inputs produce equivariant features that count the closed paths in the graph and are provably more expressive than the WL representations. Thorough experimental analysis on graph isomorphism and graph classification datasets corroborates our theoretical results and demonstrates the effectiveness of the proposed approach.

Challenging the WL Barrier

The Weisfeiler-Lehman (1-WL) graph isomorphism test has long served as the theoretical gold standard for measuring the expressivity of standard Graph Neural Networks (GNNs). It is widely accepted that if 1-WL cannot distinguish two graphs, a standard GNN (like GIN) will also fail. To surpass this limit, researchers typically develop complex higher-order GNNs or incorporate node identifiers, often at the cost of computational efficiency or permutation equivariance.

This work challenges the notion that the "WL barrier" is an inherent architectural flaw. Instead, we demonstrate that the limitation stems from the common practice of initializing GNNs with uninformative "all-ones" input features. By utilizing anonymous inputs—such as white noise—standard GNNs can probe the spectral properties of a graph and distinguish structures that are 1-WL equivalent.

The Spectral Perspective and the "All-Ones" Trap

Standard GNNs initialized with a constant vector $x = 1$ are effectively "blind" to any graph eigenvectors orthogonal to the ones vector. Because many real-world graphs possess such eigenvectors, vital structural information is lost at the input layer.

Figure 1: Examples of 1-WL indistinguishable graphs that can be distinguished by the proposed spectral analysis. (a) Fused hexagons vs (b) bridged pentagons.

We propose using white random inputs (zero-mean, identity covariance). While the expected value of the output remains zero, the variance of the output constitutes a deterministic, permutation-equivariant feature. This variance can distinguish any pair of graphs with different eigenvalues, providing a much more powerful discriminator than the standard WL test.

Structural Awareness via Loop Counting

The paper introduces the Diagonal Module, showing that a GNN with white noise is mathematically equivalent to a deterministic GNN utilizing the diagonals of adjacency matrix powers ($S^k$).

  • The diagonal of $S^2$ represents node degrees.
  • The diagonal of $S^3$ counts triangles.
  • Higher powers count longer closed paths (loops).

By "counting loops," the GNN gains structural awareness that the standard 1-WL test lacks. For instance, 1-WL cannot distinguish a prism graph from a bipartite graph because their local neighborhoods look identical at every step. However, their loop structures (e.g., the presence of triangles or quadrilaterals) differ significantly, allowing the proposed GNN to tell them apart.

Figure 2: Another pair of graphs indistinguishable by 1-WL: (a) a prism graph and (b) a bipartite graph.

Key Results

The proposed approach was evaluated on benchmarks specifically designed to defeat 1-WL:

  • Circular Skip Link (CSL): A dataset where all nodes have identical degrees. While 1-WL and standard GIN achieve near-random accuracy (~10%), our proposed GNNs achieve 100% accuracy.
  • REDDIT-BINARY: Our "GIN-random" approach achieved 89.8% accuracy, significantly outperforming the standard GIN-1 (81.6%).

Conclusion

Standard GNNs are more powerful than previously thought. The perceived limitations of GNN expressivity are largely a byproduct of input initialization rather than architectural constraints. By leveraging spectral properties and loop-counting features, GNNs can surpass the 1-WL test while remaining computationally efficient and permutation equivariant.

Summary updated

BibTeX
@inproceedings{kanatsoulis2024graph,
  author = {Charilaos I. Kanatsoulis and Alejandro Ribeiro},
  title = {{Graph Neural Networks Are More Powerful Than we Think}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447704},
}
Figure