On the Ability of Graph Neural Networks to Model Interactions Between Vertices

Noam Razin, Tom Verbin, Nadav Cohen · OpenReview

Abstract

Graph neural networks (GNNs) are widely used for modeling complex interactions between entities represented as vertices of a graph. Despite recent efforts to theoretically analyze the expressive power of GNNs, a formal characterization of their ability to model interactions is lacking. The current paper aims to address this gap. Formalizing strength of interactions through an established measure known as separation rank, we quantify the ability of certain GNNs to model interaction between a given subset of vertices and its complement, i.e. between the sides of a given partition of input vertices. Our results reveal that the ability to model interaction is primarily determined by the partition's walk index -- a graph-theoretical characteristic defined by the number of walks originating from the boundary of the partition. Experiments with common GNN architectures corroborate this finding. As a practical application of our theory, we design an edge sparsification algorithm named Walk Index Sparsification (WIS), which preserves the ability of a GNN to model interactions when input edges are removed. WIS is simple, computationally efficient, and in our experiments has markedly outperformed alternative methods in terms of induced prediction accuracy. More broadly, it showcases the potential of improving GNNs by theoretically analyzing the interactions they can model.

Introduction

Graph Neural Networks (GNNs) have become the standard architecture for modeling complex relational data, with applications ranging from social network analysis to drug discovery. However, theoretical analysis of their expressive power has traditionally focused on graph isomorphism—the ability to distinguish between structurally different graphs, typically evaluated via the Weisfeiler-Leman (WL) test. While isomorphism is a fundamental property, it does not fully characterize the functional capacity of a GNN: its ability to model complex interactions between specific groups of nodes within a graph.

In this work, researchers from Tel Aviv University bridge this gap by quantifying the strength of interactions a GNN can model across a vertex partition. By leveraging concepts from tensor analysis and quantum physics, they identify a structural property called the walk index that dictates a GNN's modeling capacity. This theoretical insight led to the development of Walk Index Sparsification (WIS), a novel edge-pruning algorithm that maintains model performance even under extreme compression.

Quantifying Interaction: Separation Rank and the Walk Index

To measure the complexity of interactions, the authors employ the separation rank, a metric used in tensor analysis to quantify how "entangled" a function is. If a function can be easily decomposed into independent parts for two different sets of variables, its separation rank is low. A high rank indicates that the GNN is modeling a complex, non-separable interaction between those groups.

By representing GNNs as tree tensor networks, the authors prove that for a GNN of depth $L$, the ability to model interactions between a vertex set $\mathcal{I}$ and its complement $\mathcal{I}^c$ is bounded by the walk index. Specifically, the log of the separation rank is proportional to the number of walks of length $L-1$ originating from the boundary $\mathcal{C}_{\mathcal{I}}$ between the two sets.

The ability of a GNN to model interactions is proportional to the walk index of the partition boundary.

This finding implies that the topology of the input graph fundamentally caps the GNN's learning capacity. If the walk index across a partition is low, the GNN cannot model strong interactions between those sets of nodes, regardless of its width or training duration.

Walk Index Sparsification (WIS)

Building on this theoretical foundation, the authors developed Walk Index Sparsification (WIS). Unlike traditional edge-pruning methods that focus on preserving spectral properties or use random removal, WIS greedily removes edges that have the least impact on the graph's walk indices. By preserving these critical paths, WIS maintains the GNN's expressive backbone.

A partition with high separation rank, indicating a structure that allows for complex interactions.

To handle massive graphs, the authors introduced "1-WIS," a linear-time approximation. This version is computationally efficient enough to run on graphs with millions of edges, such as OGBN-ArXiv, while maintaining nearly the same accuracy as the full greedy algorithm.

Empirical Evaluation

The researchers validated their theory and the WIS algorithm across several settings:

  • Synthetic Fashion-MNIST Graphs: Proved that GNNs struggle when critical information is separated by a low walk index, confirming the theoretical bound.
  • Standard Benchmarks: On Cora, DBLP, and OGBN-ArXiv, WIS consistently outperformed random pruning, spectral sparsification, and supervised methods like UGS.
  • Robustness: On the OGBN-ArXiv dataset, WIS maintained significantly higher test accuracy than competitors even after 50-70% of the edges were removed.

Conclusion

This research shifts the focus of GNN theory from structural isomorphism to functional interaction modeling. By identifying the walk index as a key determinant of expressive power, it provides a new lens for understanding and optimizing GNN architectures. The success of WIS demonstrates that theoretically-grounded structural analysis can lead to practical improvements in model efficiency and predictive performance.

Summary updated

BibTeX
@inproceedings{razin2023ability,
  author = {Noam Razin and Tom Verbin and Nadav Cohen},
  title = {{On the Ability of Graph Neural Networks to Model Interactions Between Vertices}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ayZpFoAu5c},
}
Figure