PF-GNN: Differentiable particle filtering based approximation of universal graph representations
Mohammed Haroon Dupty, Yanfei Dong, Wee Sun Lee
TL;DR
This work tackles the expressivity gap of $1$-WL-based GNNs by embedding exact isomorphism solver ideas into a differentiable learning framework. PF-GNN builds a probabilistic representation over IR colorings via Sequential Monte Carlo, approximating a universal graph representation $f(oldsymbol{G}) = hoig(ig extstyle abla oldsymbol{ ext{(path embeddings)}}ig)$ and learning end-to-end through a learned node-selection policy, differentiable resampling, and a mean-particle readout. The method achieves permutation-invariant, unique-identification capabilities under universal approximators and shows strong empirical performance on synthetic isomorphism benchmarks and real-world datasets, often outperforming 1-WL and competing with higher-order models. Its practical impact lies in providing a flexible, backbone-agnostic framework that enhances GNN expressivity with linear runtime growth and parallelizable path sampling, enabling robust graph understanding across diverse tasks.
Abstract
Message passing Graph Neural Networks (GNNs) are known to be limited in expressive power by the 1-WL color-refinement test for graph isomorphism. Other more expressive models either are computationally expensive or need preprocessing to extract structural features from the graph. In this work, we propose to make GNNs universal by guiding the learning process with exact isomorphism solver techniques which operate on the paradigm of Individualization and Refinement (IR), a method to artificially introduce asymmetry and further refine the coloring when 1-WL stops. Isomorphism solvers generate a search tree of colorings whose leaves uniquely identify the graph. However, the tree grows exponentially large and needs hand-crafted pruning techniques which are not desirable from a learning perspective. We take a probabilistic view and approximate the search tree of colorings (i.e. embeddings) by sampling multiple paths from root to leaves of the search tree. To learn more discriminative representations, we guide the sampling process with particle filter updates, a principled approach for sequential state estimation. Our algorithm is end-to-end differentiable, can be applied with any GNN as backbone and learns richer graph representations with only linear increase in runtime. Experimental evaluation shows that our approach consistently outperforms leading GNN models on both synthetic benchmarks for isomorphism detection as well as real-world datasets.
