Graph Learning via Logic-Based Weisfeiler-Leman Variants and Tabularization
Reijo Jaakkola, Tomi Janhunen, Antti Kuusisto, Magdalena Ortiz, Matias Selin, Mantas Šimkus
TL;DR
The paper tackles efficient graph classification by converting graphs into fixed-length tabular features derived from logic-guided Weisfeiler–Leman variants. It introduces a generalized WL framework, \mathcal{Q}-WL, together with PL(\mathcal{Q}) and a generalized bisimulation, to characterize expressive power. The proposed \mathcal{Q}-WL-RF pipeline converts node-type frequencies into tabular data and trains random forests, achieving competitive accuracy with Graph Transformers and GNNs while delivering 40–60x speedups and lower memory. The work validates across 14 diverse benchmarks and outlines future directions for richer quantifiers and alternative tabular learners.
Abstract
We present a novel approach for graph classification based on tabularizing graph data via new variants of the Weisfeiler-Leman algorithm and then applying methods for tabular data. We investigate a comprehensive class of versions of the Weisfeiler-Leman algorithm obtained by modifying the underlying logical framework and establish a precise theoretical characterization of their expressive power. We then test selected versions on 14 benchmark datasets that span a range of application domains. The experiments demonstrate that our approach generally achieves better predictive performance than graph neural networks and matches that of graph transformers, while being 40-60x faster and requiring neither a GPU nor extensive hyperparameter tuning.
