Abstract
Standard Graph Neural Networks (GNNs) are theoretically limited by the 1-Weisfeiler-Lehman (1-WL) isomorphism test, failing to distinguish complex graph structures like $k$-regular graphs. This paper introduces Twin-WL, a novel paradigm that integrates node labels and node identities to capture complete local subgraph structures. This approach enables GNNs to exceed the 1-WL expressivity limit with minimal computational overhead.
1. Introduction
Most modern GNNs utilize a message-passing paradigm where nodes aggregate features from their neighbors. However, this approach is mathematically bounded by the 1-WL test. If 1-WL cannot distinguish two graphs—common in structures with specific symmetries—standard GNNs will also fail. While higher-order WL tests (e.g., $k$-WL) offer more power, they suffer from high computational costs. Twin-WL addresses this by enhancing message passing without sacrificing efficiency.
2. The Twin-WL Paradigm
The Twin-WL paradigm introduces two parallel information flows: Label Passing (traditional 1-WL aggregation) and Identity Passing (passing unique node IDs). By tracking specific node IDs within an $h$-hop neighborhood, the model reconstructs the exact topology of local rooted subgraphs.
Passing node IDs serves as a proxy for structural detection, such as identifying cycles when a node receives the same ID via different paths. Unlike traditional ID-based methods, Twin-WL remains inductive because the final representation depends on the structure of identity sets rather than the specific ID values.
3. Architecture: STwin and NTwin-GNN
The authors implement two models based on this paradigm:
- STwin-GNN (Simple): A lightweight version using a readout function that counts unique identities in the rooted subgraph, suitable for low-data regimes.
- NTwin-GNN (Neural): A more powerful version using a Graph Isomorphism Network (GIN) as a readout function to extract rich structural features.
4. Experimental Evaluation
The models were tested on standard TU Datasets (MUTAG, PTC_MR, etc.) and the synthetic EXP dataset, which contains 1-WL indistinguishable graph pairs.
4.1 Key Results
- Expressivity: On the EXP dataset, standard GNNs achieved only 50% accuracy, while Twin-GNNs reached over 99%.
- Performance: On real-world datasets like PTC_MR, NTwin-GNN achieved 72.22% accuracy, significantly outperforming GIN (54.09%).
- Efficiency: STwin-GNN maintains a runtime comparable to the basic 1-WL algorithm ($O(hM)$ complexity), proving that expressivity does not require massive computational trade-offs.
5. Conclusion
Twin-WL breaks the 1-WL expressivity ceiling by incorporating node identities into the message-passing framework. While it introduces some memory overhead for storing identity sets, its efficiency and performance gains make it a compelling alternative to higher-order GNNs. Future work includes extending this paradigm to node-level tasks and optimizing readout sensitivity.
Summary updated