TL;DR
Standard Optimal Transport (OT) methods for comparing graphs are often too rigid because they force a "conservation of mass," requiring every node in one graph to be matched to the other. This paper introduces the Semi-relaxed Gromov-Wasserstein (srGW) divergence, which relaxes this constraint to allow for more flexible subgraph matching. This approach not only achieves state-of-the-art results in graph partitioning and clustering but is also 100x to 1000x faster than traditional Gromov-Wasserstein methods.
What Problem Does This Paper Address?
Comparing structured objects like graphs is a cornerstone of machine learning, but it’s notoriously difficult because graphs can have different numbers of nodes and entirely different topologies. The Gromov-Wasserstein (GW) distance has emerged as a powerful tool for this, treating graphs as probability distributions over their nodes.
However, GW has a major "mass conservation" problem: it requires a full coupling between all nodes of the two graphs. If you try to match a small graph (e.g., a specific molecule) to a large one (e.g., a massive chemical database), GW struggles because it tries to spread the "importance" of the small graph across the entire large graph. Furthermore, solving the GW distance involves a complex non-convex quadratic program that is computationally expensive and scales poorly to large datasets.
Methods
The authors propose the Semi-relaxed Gromov-Wasserstein (srGW) divergence. The key innovation is relaxing the second marginal constraint in the OT optimization problem.
- Relaxed Matching: While standard GW requires the matching matrix (coupling) to sum up to fixed probability distributions on both sides, srGW only enforces this for the source graph. This allows the algorithm to "choose" which nodes in the target graph are most relevant, effectively performing a soft subgraph selection.
- Efficient Solvers: Because the constraints are relaxed, the authors can solve the optimization problem using a Conditional Gradient (CG) algorithm. Unlike standard GW, the linear subproblems in srGW are independent across rows, making them highly parallelizable on GPUs.
- Regularization: They introduce entropic regularization (for smoother, more robust plans) and sparsity-promoting penalties. The latter is particularly useful for "Dictionary Learning," where a dataset of graphs is represented as different sparse subsets of a single learned "template" graph.
- Graph Completion: The authors show that srGW can be used to "fill in the blanks" of a partially observed graph by optimizing the missing entries to minimize the srGW divergence to a learned dictionary.
Datasets
The paper evaluates srGW across a wide variety of standard graph benchmarks:
- Social Networks: IMDB-Binary and IMDB-Multi.
- Bio/Chemical Graphs: MUTAG (mutagenic compounds), PTC-MR, BZR, COX2, PROTEINS, and ENZYMES.
- Large-scale Partitioning: Wikipedia hyperlink networks, EU-email interactions, Amazon product networks, and Village (social interactions in Indian villages).
Key Insights and Ideas
- Asymmetry as a Strength: Unlike the standard GW distance, srGW is asymmetric. This is actually a feature, not a bug—it reflects the reality that matching a sample to a template is fundamentally different from matching a template to a sample.
- Automatic Subgraph Selection: By relaxing the mass constraint, the model naturally ignores "noise" or irrelevant nodes in the target graph. This makes it far more effective for finding communities or clusters within a larger structure.
- The Power of a Single Atom: In their Dictionary Learning framework, they show that you don't need a massive library of "graph atoms." Instead, you can learn one large, well-structured "super-graph" and represent every other graph in your dataset as a specific weighting of that super-graph's nodes.
- Computational Leap: By simplifying the constraint set, they turned a bottleneck into a parallelizable operation. This allows them to process graphs with thousands of nodes in milliseconds.
Key Results
- Partitioning: srGW consistently outperformed standard GW-based partitioning (GWL) and even beat specialized community detection algorithms like Louvain and InfoMap on 3 out of 6 real-world datasets.
- Clustering: On the IMDB and MUTAG datasets, srGW variants achieved the highest Rand Index scores, proving that the learned embeddings capture structural nuances better than rigid OT methods.
- Speedup: The most dramatic result is the efficiency. srGW is shown to be 2 to 3 orders of magnitude faster than standard GW Dictionary Learning on a CPU. For example, on the IMDB-B dataset, srGW took ~1.5ms compared to 108ms for GDL and 219ms for GWF.
- Graph Completion: srGW was significantly more accurate at reconstructing missing edges and node features than previous linear dictionary models, especially when the percentage of missing nodes was high (up to 20%).
Limitations and Future Work
- Overfitting Risk: Because srGW is more flexible than standard GW, it can potentially overfit when the training data is very scarce. The authors suggest that sparsity-promoting regularization is essential to mitigate this.
- Theoretical Foundations: While the empirical results are strong, the authors note that the theoretical relationship between srGW and the "subgraph isomorphism" problem (a classic hard problem in computer science) needs further study.
- Stochastic Block Models (SBM): The authors suggest that future work could apply srGW to estimate parameters for SBMs, which are popular statistical models for social networks.
Overall, this paper provides a much-needed "loosening" of the rules for Optimal Transport on graphs, making the technology both more accurate for real-world tasks and fast enough for production-scale applications.
Summary updated