A Convergent Single-Loop Algorithm for Relaxation of Gromov-Wasserstein in Graph Data

Jiajin Li, Jianheng Tang, Lemin Kong, Huikang Liu, Anthony Man-Cho So, Jose Blanchet

Overview

Researchers have developed the Bregman Alternating Projected Gradient (BAPG) method, a "single-loop" algorithm that significantly speeds up the calculation of the Gromov-Wasserstein (GW) distance. By relaxing strict feasibility constraints and using a clever operator-splitting technique, BAPG achieves state-of-the-art accuracy in graph alignment and partitioning while being orders of magnitude faster and more GPU-friendly than traditional "double-loop" approaches.

The Challenge of Gromov-Wasserstein Distance

The Gromov-Wasserstein (GW) distance is a powerful mathematical tool for comparing objects that live in different metric spaces—such as comparing a social network to a protein interaction graph. In machine learning, it serves as the gold standard for graph alignment (finding corresponding nodes between two graphs) and graph partitioning.

However, computing the GW distance is notoriously difficult. The core problem involves finding a "coupling matrix" within the Birkhoff polytope—a set of matrices where every row and column must sum to one. Standard algorithms are "double-loop": they feature an outer loop to move toward the solution and an expensive inner loop (like the Sinkhorn algorithm) to ensure the matrix remains feasible. This structure makes them slow, computationally heavy, and difficult to scale to large datasets.

The BAPG Approach

The authors introduce BAPG, which breaks the traditional double-loop cycle. Their key innovation is a relaxation technique based on operator splitting.

Instead of forcing the coupling matrix to satisfy both row and column constraints simultaneously at every step, they decouple them. The problem is transformed into a penalized version where the algorithm alternates between projecting onto row constraints and column constraints.

By choosing relative entropy (Kullback-Leibler divergence) as their "Bregman distance" function, the researchers derived closed-form updates. Consequently, the algorithm only requires simple matrix-vector multiplications and element-wise operations—tasks that modern GPUs can execute at lightning speed.

Key Insights

  • Feasibility vs. Accuracy: A major insight is that for tasks like graph alignment, a perfectly "feasible" doubly stochastic matrix is not strictly necessary. A slightly "relaxed" matrix can still yield a highly accurate node-to-node mapping while being much faster to compute.
  • The Luo-Tseng Error Bound: The authors proved that the GW problem satisfies a specific regularity condition called the Luo-Tseng error bound. This sophisticated theoretical tool, usually applied to convex problems, allowed the authors to mathematically bound the distance between their "relaxed" solution and the true "optimal" solution.
  • Single-Loop Efficiency: By adopting a single-loop structure, the algorithm becomes "first-order," making it robust to hyperparameters (like step size) and significantly reducing memory overhead.

Experimental Results

The authors evaluated BAPG across a diverse set of benchmarks, including synthetic graphs and real-world datasets like Proteins, Enzymes, Reddit, Wikipedia, and Amazon.

  • Superior Accuracy: On synthetic graph alignment, KL-BAPG achieved nearly 99.8% accuracy, whereas traditional methods like Frank-Wolfe (FW) hovered around 24.5%.
  • Massive Speedups: On the Reddit dataset, BAPG was significantly faster than the standard BPG algorithm. When accelerated on a GPU, BAPG achieved an acceleration ratio of over 7x compared to its CPU version, outperforming other GPU-accelerated baselines.
  • Noise Robustness: BAPG remained stable even as noise levels in the graphs increased, while the performance of competing methods degraded sharply.
Comparison of coupling maps generated by BPG-S, FW, and KL-BAPG

Limitations and Future Work

Despite its impressive speed, the algorithm still has a cubic per-iteration complexity ($O(n^3)$), which limits its application on truly massive graphs with millions of nodes.

Future research directions include:

  1. Sparsity: Incorporating sparse or low-rank structures into the coupling matrix to reduce the computational cost per iteration.
  2. Non-Symmetric Data: Extending the theoretical framework to handle non-symmetric distance matrices, broadening its application to directed graphs and more complex data structures.

Summary updated

BibTeX
@inproceedings{li2023convergent,
  author = {Jiajin Li and Jianheng Tang and Lemin Kong and Huikang Liu and Jia Li and Anthony Man-Cho So and Jose Blanchet},
  title = {{A Convergent Single-Loop Algorithm for Relaxation of Gromov-Wasserstein in Graph Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=0jxPyVWmiiF},
}
Figure