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

Representation Power of Graph Neural Networks: Improved Expressivity via Algebraic Analysis

Charilaos I. Kanatsoulis, Alejandro Ribeiro · DOI

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.

Introduction: Beyond the WL Limit

In the field of Graph Neural Networks (GNNs), the "WL limit" has long been considered a fundamental theoretical ceiling. The 1-dimensional Weisfeiler-Lehman (1-WL) algorithm, or color refinement, is a standard benchmark for graph isomorphism testing. Previous seminal work suggested that standard GNN architectures are, at best, as expressive as the 1-WL test, meaning they fail to distinguish certain non-isomorphic graphs.

Figure 3: A pair of non-isomorphic graphs G and G-hat that are indistinguishable by the 1-WL algorithm.

This paper challenges this notion, arguing that the perceived limitation is not inherent to the GNN architecture itself but rather stems from the common practice of initializing anonymous nodes with constant "all-ones" vectors. By introducing "white" (random) noise as input or specific structural features while maintaining permutation equivariance, the authors demonstrate that standard GNNs can indeed surpass the WL barrier.

Methodology: An Algebraic Perspective

The researchers utilize linear algebraic tools, focusing on the eigenvalue decomposition of graph operators such as the adjacency matrix. They propose two primary ways to enhance expressivity:

  1. Stochastic GNNs: By feeding GNNs with white Gaussian noise, the authors show that while the mean of the output is uninformative, the variance captures significant structural information that the mean alone misses.
  2. The Diagonal Module: A deterministic counterpart is derived where a GNN layer followed by a diagonal operator effectively counts closed paths (cycles) of varying lengths that a node participates in.

Proposed Architectures

Two specific modules are introduced to implement these findings:

  • Type-1: Uses diagonal operations to extract structural features directly.
  • Type-2: A standard GNN architecture initialized with structural features (like node degrees and triangle counts) derived from the diagonals of adjacency matrix powers.

Expressivity and Path Counting

The core insight is that 1-WL is unable to count cycles, whereas GNNs utilizing random inputs or path-counting equivalents can "see" these structures (triangles, squares, etc.).

Figure 4: Another example of non-isomorphic graphs where structural features like cycle counts provide discriminative power beyond the 1-WL test.

The authors prove that a GNN can distinguish any two graphs that have different eigenvalues. Since most real-world non-isomorphic graphs possess distinct eigenvalues, this approach covers a vast majority of practical scenarios without sacrificing permutation equivariance—the property that ensures the network's output changes predictably if nodes are reordered.

Experimental Evaluation

The proposed methods were tested on several standard benchmarks to validate the theoretical claims:

  • CSL (Circular Skip Link): A synthetic dataset designed to be WL-indistinguishable. While standard GNNs typically fail (performing at ~10% accuracy), the proposed architectures achieved 100% accuracy.
  • Social and Bio-Chemical Networks: On datasets like REDDIT-BINARY and REDDIT-MULTI, the proposed "GNN-random" and "GIN-random" models significantly outperformed the standard GIN (Graph Isomorphism Network) baseline.

Conclusion and Future Directions

This work provides a formal proof that standard GNNs with white noise inputs are strictly more expressive than the WL algorithm. However, challenges remain regarding cospectral graphs—non-isomorphic graphs with identical eigenvalues—which represent a harder edge case. Additionally, the computational cost of calculating higher-order path counts for large, dense graphs and the relationship between increased expressivity and generalization performance are areas for future study.

Summary updated

BibTeX
@inproceedings{kanatsoulis2024representation,
  author = {Charilaos I. Kanatsoulis and Alejandro Ribeiro},
  title = {{Representation Power of Graph Neural Networks: Improved Expressivity via Algebraic Analysis}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447704},
}
Figure