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

A Regularized Wasserstein Framework for Graph Kernels

Asiri Wijesinghe, Qing Wang, Stephen Gould · DOI

Abstract

We propose a learning framework for graph kernels, which is theoretically grounded on regularizing optimal transport. This framework provides a novel optimal transport distance metric, namely Regularized Wasserstein (RW) discrepancy, which can preserve both features and structure of graphs via Wasserstein distances on features and their local variations, local barycenters and global connectivity. Two strongly convex regularization terms are introduced to improve the learning ability. One is to relax an optimal alignment between graphs to be a cluster-to-cluster mapping between their locally connected vertices, thereby preserving the local clustering structure of graphs. The other is to take into account node degree distributions in order to better preserve the global structure of graphs. We also design an efficient algorithm to enable a fast approximation for solving the optimization problem. Theoretically, our framework is robust and can guarantee the convergence and numerical stability in optimization. We have empirically validated our method using 12 datasets against 16 state-of-the-art baselines. The experimental results show that our method consistently outperforms all state-of-the-art methods on all benchmark databases for both graphs with discrete attributes and graphs with continuous attributes.

Introduction

Measuring the similarity between graphs is a fundamental task in machine learning, essential for applications ranging from drug discovery to social network analysis. Traditionally, researchers have relied on graph kernels that identify shared substructures, such as specific paths or cycles. However, these methods often require domain-specific expertise and struggle to capture the overall distribution of features across a graph.

Recently, Optimal Transport (OT)—specifically Wasserstein distances—has emerged as a powerful tool to compare graphs as probability distributions of nodes. Despite its promise, standard OT on graphs faces three major hurdles: structural blindness (ignoring connectivity), rigidity (enforcing strict one-to-one node mappings), and computational instability. This paper introduces the Regularized Wasserstein (RW) framework to address these challenges by integrating local feature variations and global structural connectivity into a unified, robust metric.

The Regularized Wasserstein (RW) Framework

The core of our approach is the Regularized Wasserstein (RW) discrepancy, which integrates three distinct "views" of a graph into a single cost function to capture its multi-faceted nature:

  • Feature Local Variation: Instead of raw node features, we calculate how features change relative to their neighbors using a normalized graph Laplacian. This captures the "texture" of the data on the graph.
  • Local Barycentric Wasserstein (LW): This term uses Laplacian regularization to relax the node-to-node mapping into a "cluster-to-cluster" mapping. It ensures that if two nodes are close in one graph, their counterparts in the second graph should also be close, preserving local clustering.
  • Global Connectivity Wasserstein (GW): This uses a Gromov-Wasserstein approach to compare global structures like shortest paths. We introduce a degree-entropy regularization term to make the alignment robust to node degree distributions.
Overview of the Regularized Wasserstein Framework for graph comparison.

To solve this complex optimization problem efficiently, we developed the Sinkhorn Conditional Gradient (SCG) algorithm. By combining the Frank-Wolfe method with Sinkhorn iterations, SCG provides a fast approximation with proven convergence guarantees ($O(1/\sqrt{k})$) and numerical stability.

Experimental Evaluation

We evaluated the RW framework on 12 diverse benchmark datasets, including social networks and bioinformatics graphs with both discrete and continuous attributes. We compared our Regularized Wasserstein Kernel (RWK) against 16 baselines, including traditional kernels (e.g., Weisfeiler-Lehman), other OT-based kernels (WWL, FGW), and modern Graph Neural Networks (GIN, DGCNN).

Key Results

  • Consistent Superiority: RWK outperformed all 16 baselines across all 12 datasets. On discrete graphs, it improved best-known results by up to 5.3%, while on continuous graphs, improvements reached 6.7%.
  • Scalability: Despite its complexity, RWK is more scalable than other advanced OT methods like WWL. The SCG algorithm allows it to run faster on larger datasets while maintaining higher accuracy.
  • Ablation Success: Removing either the local (LW) or global (GW) structural components led to significant performance drops, confirming that both views are essential for a complete understanding of graph similarity.
Performance comparison on datasets with discrete attributes.

Insights and Future Work

The success of the RW framework stems from its ability to move away from rigid node-matching toward "soft" alignment. By using strongly convex regularization, the transport plan can effectively compare graphs of different sizes and densities. Furthermore, the concatenation of raw features with their local variations provides a significantly richer representation of the graph data.

While the resulting kernel matrix is indefinite—requiring specific handling during learning—the framework's mathematical grounding ensures robustness. Future work will explore extending this framework to graph generative models, using the RW discrepancy as a loss function to generate more structurally realistic graphs.

Summary updated

BibTeX
@inproceedings{wijesinghe2021regularized,
  author = {Asiri Wijesinghe and Qing Wang and Stephen Gould},
  title = {{A Regularized Wasserstein Framework for Graph Kernels}},
  booktitle = {ICDM},
  year = {2021},
  doi = {10.1109/icdm51629.2021.00085},
}
Figure