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

Rethinking the Expressive Power of GNNs via Graph Biconnectivity

Bohang Zhang, Shengjie Luo, Liwei Wang, Di He · OpenReview

Abstract

Designing expressive Graph Neural Networks (GNNs) is a central topic in learning graph-structured data. While numerous approaches have been proposed to improve GNNs in terms of the Weisfeiler-Lehman (WL) test, generally there is still a lack of deep understanding of what additional power they can systematically and provably gain. In this paper, we take a fundamentally different perspective to study the expressive power of GNNs beyond the WL test. Specifically, we introduce a novel class of expressivity metrics via graph biconnectivity and highlight their importance in both theory and practice. As biconnectivity can be easily calculated using simple algorithms that have linear computational costs, it is natural to expect that popular GNNs can learn it easily as well. However, after a thorough review of prior GNN architectures, we surprisingly find that most of them are not expressive for any of these metrics. The only exception is the ESAN framework, for which we give a theoretical justification of its power. We proceed to introduce a principled and more efficient approach, called the Generalized Distance Weisfeiler-Lehman (GD-WL), which is provably expressive for all biconnectivity metrics. Practically, we show GD-WL can be implemented by a Transformer-like architecture that preserves expressiveness and enjoys full parallelizability. A set of experiments on both synthetic and real datasets demonstrates that our approach can consistently outperform prior GNN architectures.

Introduction

The standard benchmark for Graph Neural Network (GNN) expressivity has long been the Weisfeiler-Lehman (WL) hierarchy. While the WL test provides a rigorous mathematical framework for measuring a model's ability to distinguish non-isomorphic graphs, it suffers from two significant limitations. First, matching higher-order WL tests (such as 3-WL) is computationally expensive, often requiring $O(n^3)$ complexity or worse. Second, there is a "practicality gap": it is often unclear which real-world structural properties a 1-WL or 3-WL model actually captures.

This paper argues for a shift in perspective, proposing graph biconnectivity as a more practical and theoretically grounded metric for GNN expressivity. Biconnectivity involves identifying cut vertices (nodes whose removal disconnects a graph), bridges (edges whose removal disconnects a graph), and biconnected components. Despite the existence of classical linear-time algorithms ($O(V+E)$) for these properties, most modern GNNs fail to identify them.

The Biconnectivity Gap

The authors demonstrate that standard message-passing GNNs (like GCN, GAT, and GIN) and even many advanced architectures (including those using substructure counting or graph lifting) are fundamentally incapable of solving biconnectivity problems. The root of this failure lies in the local nature of these models. 1-WL models only "see" immediate neighborhoods, making them blind to the global topological constraints that define biconnectivity. To identify a bridge or a cut vertex, a model must understand if alternative paths exist between nodes—a task that requires a more global structural awareness.

Generalized Distance Weisfeiler-Lehman (GD-WL)

To bridge this gap, the authors introduce the Generalized Distance Weisfeiler-Lehman (GD-WL) framework. The core innovation is the incorporation of a distance metric $d_G(u, v)$ between all pairs of nodes into the node refinement process. Two specific variants are proposed:

  1. SPD-WL (Shortest Path Distance): By utilizing the shortest path distance between nodes, the authors prove this framework is sufficient to solve all edge-biconnectivity problems, such as identifying bridges.
  2. RD-WL (Resistance Distance): Resistance distance, derived from viewing the graph as an electrical network, considers all possible paths between two nodes rather than just the shortest one. The authors prove that RD-WL is both necessary and sufficient to solve vertex-biconnectivity problems, including the identification of cut vertices.

Graphormer-GD: A Practical Implementation

To translate the GD-WL framework into a scalable architecture, the authors developed Graphormer-GD. This model utilizes a Transformer-like architecture where distance information is injected directly into the Multi-head Attention mechanism. This allows the model to attend to global structure while remaining highly parallelizable.

While GD-WL is theoretically bounded by the power of 2-FWL (3-WL), it is significantly more efficient. Graphormer-GD operates in $O(n^2)$ time per iteration, making it faster than standard higher-order GNNs while providing superior performance on biconnectivity-related tasks.

Experimental Evaluation

The model was evaluated across three distinct categories:

  • Synthetic Biconnectivity Tasks: On a custom dataset of "hard" graphs (including regular graphs and specific counterexamples), Graphormer-GD achieved 100% accuracy in detecting cut vertices and bridges. In contrast, standard models like GCN and GIN performed poorly, hovering around 50-60% accuracy.
  • ZINC Molecular Property Prediction: On the ZINC-Full dataset, Graphormer-GD achieved a state-of-the-art Mean Absolute Error (MAE) of 0.025, outperforming specialized subgraph GNNs and other Transformer-based models.
  • Real-World Node-Level Tasks: Using the Brazil-Airports and Europe-Airports datasets, the model demonstrated that biconnectivity awareness leads to better predictions of airport activity levels based on flight network topology.

Conclusion

By rethinking GNN expressivity through the lens of biconnectivity, this research provides both a new theoretical benchmark and a practical framework for building more capable models. The introduction of GD-WL and Graphormer-GD demonstrates that incorporating global distance information—specifically resistance distance—allows GNNs to solve fundamental topological problems that were previously out of reach for standard architectures. Future work may extend these principles to higher-order topological properties like tri-connectivity.

Summary updated

BibTeX
@inproceedings{zhang2023rethinking,
  author = {Bohang Zhang and Shengjie Luo and Liwei Wang and Di He},
  title = {{Rethinking the Expressive Power of GNNs via Graph Biconnectivity}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=r9hNv76KoT3},
}
Figure