Abstract
Supervised learning in computational physics often involves datasets where inputs are large meshes (graphs) with continuous node attributes. Traditional graph kernels struggle with the scalability required for these meshes (tens of thousands of nodes) or fail to handle continuous features. We introduce the Sliced Wasserstein Weisfeiler-Lehman (SWWL) graph kernel for Gaussian Process Regression (GPR). By utilizing the Sliced Wasserstein distance, we achieve a positive definite kernel with significantly reduced computational complexity, enabling the processing of massive datasets previously considered intractable.
1. Introduction
In engineering and physics, data is frequently represented as meshes—large, sparse graphs where nodes carry continuous physical attributes like pressure or velocity. While Graph Neural Networks (GNNs) are widely used, they often lack the robust uncertainty quantification (UQ) provided by Gaussian Process Regression (GPR). However, GPR requires a positive definite kernel to measure graph similarity. Existing kernels are typically designed for small molecules and fail to scale to engineering meshes or handle continuous attributes effectively.
2. Methodology: The SWWL Kernel
The proposed SWWL kernel operates in three distinct stages to transform graph data into a format suitable for efficient GPR:
- Continuous Weisfeiler-Lehman (WL) Embeddings: Instead of discrete labels, nodes aggregate continuous attributes from neighbors over $H$ iterations. This captures local structural and feature-based context.
- Sliced Wasserstein (SW) Distance: Comparing two graphs is treated as comparing empirical probability distributions of node embeddings. While standard Wasserstein distance is computationally expensive ($O(n^3 \log n)$) and lacks guaranteed positive definiteness, the Sliced Wasserstein distance projects these distributions onto random 1D lines. In 1D, the distance is computed via sorted quantiles in $O(n \log n)$ time.
- Projected Quantile Embeddings: Graphs are represented by a fixed number of quantiles ($Q$) across several random projections ($P$). This yields a fixed-length vector (size $P \times Q$), allowing similarity to be computed as a simple Euclidean distance in a Hilbert space.
3. Experimental Results
The SWWL kernel was validated across multiple scales, from small molecular classification to large-scale physics regression.
- Small-scale Benchmarks: On datasets like ENZYMES and BZR, SWWL achieved state-of-the-art performance with massive speedups. For instance, on ENZYMES, distance matrix computation took ~1.3 seconds for SWWL versus ~220 seconds for the standard WWL kernel.
- Large-scale Physics Regression: The kernel was applied to datasets like AirfRANS (over 170,000 nodes) and Rotor37 (30,000 nodes). SWWL successfully processed these meshes in minutes, whereas competing kernels like WWL or FGW were computationally intractable.
A key finding is the efficiency of information compression. As shown in the sensitivity analysis, predictive accuracy (RMSE) stabilizes with a relatively small number of projections and quantiles, regardless of the original mesh size.
4. Discussion and Conclusion
The SWWL kernel decouples the complexity of the Gram matrix construction from the number of nodes in the input graphs. Once embeddings are pre-computed, GPR training time depends only on the number of graphs and the embedding size ($P \times Q$). Furthermore, the Hilbertian nature of the Sliced Wasserstein distance guarantees positive definiteness, making it theoretically sound for GPR. Future work includes extending the model to predict vector fields and exploring supervised embedding schemes.
Summary updated