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

Gromov-Wasserstein Factorization Models for Graph Clustering

Hongteng Xu

Abstract

We propose a new nonlinear factorization model for graphs that are with topological structures, and optionally, node attributes. This model is based on a pseudometric called Gromov-Wasserstein (GW) discrepancy, which compares graphs in a relational way. It estimates observed graphs as GW barycenters constructed by a set of atoms with different weights. By minimizing the GW discrepancy between each observed graph and its GW barycenter-based estimation, we learn the atoms and their weights associated with the observed graphs. The model achieves a novel and flexible factorization mechanism under GW discrepancy, in which both the observed graphs and the learnable atoms can be unaligned and with different sizes. We design an effective approximate algorithm for learning this Gromov-Wasserstein factorization (GWF) model, unrolling loopy computations as stacked modules and computing gradients with backpropagation. The stacked modules can be with two different architectures, which correspond to the proximal point algorithm (PPA) and Bregman alternating direction method of multipliers (BADMM), respectively. Experiments show that our model obtains encouraging results on clustering graphs.

Introduction

Traditional factorization methods like Principal Component Analysis (PCA) or Non-negative Matrix Factorization (NMF) are fundamental in machine learning but struggle with non-vectorial data. Graphs, such as molecules or social networks, are often unaligned and vary in size, making standard fixed-dimensional representations inadequate. While Graph Neural Networks (GNNs) can generate embeddings, they often lack the explicit reconstruction mechanism that provides the interpretability found in classical factorization. This paper introduces Gromov-Wasserstein Factorization (GWF) to bridge this gap, offering a structural, relational framework for graph decomposition.

The Gromov-Wasserstein Factorization Framework

The core of GWF is the Gromov-Wasserstein (GW) discrepancy. Unlike standard optimal transport, which requires points to be in the same metric space, GW compares internal relations (e.g., edge weights or distances) within structures. This allows for the comparison of graphs with different node counts and no predefined alignment.

In the GWF model, each observed graph is represented as a GW barycenter—a weighted average—of a set of learnable "atoms" (base graphs). By minimizing the GW discrepancy between an observed graph and its reconstruction from these atoms, the model learns both the atomic structures and the specific weights (coefficients) for each observation. This relational reconstruction matches the "shape" of the graph, making it robust to noise and variations in graph size.

Conceptual illustration of GWF: observed graphs are represented as barycenters of learnable atoms on a manifold.

Unrolled Optimization and Architecture

To enable end-to-end training via backpropagation, the authors unroll the iterative optimization loops required for GW distances and barycenters into stacked neural modules. Two primary architectures are proposed: one based on the Proximal Point Algorithm (PPA) and another on the Bregman Alternating Direction Method of Multipliers (BADMM).

Architecture of the unrolled optimization modules: (a) shows the stacked computational modules for GWB and GWD, while (b) details a single layer of the GW barycenter module.

Efficiency is further enhanced using the envelope theorem, which simplifies gradient calculations by allowing the model to bypass the gradients of optimal transport matrices during backpropagation. This makes the model trainable as a differentiable architecture that can be integrated into larger deep learning pipelines.

Experimental Evaluation

The model was evaluated on standard benchmarks including AIDS (molecules), PROTEIN, and IMDB-B (social networks). GWF demonstrated superior performance in graph clustering tasks. For instance, on the AIDS dataset, the PPA-based GWF achieved 99.5% accuracy, significantly outperforming the Fused GW Kernel (91.0%) and GW K-means (95.2%).

Beyond accuracy, GWF offers significant scalability. While pairwise GW distance calculations scale quadratically ($O(I^2)$) with the number of graphs $I$, GWF scales linearly ($O(LKI)$), where $K$ is the number of atoms and $L$ is the number of layers. Visualizations using t-SNE confirmed that the learned weights provide highly discriminative latent representations, capturing underlying structural categories effectively.

Conclusion

GWF introduces a flexible and interpretable mechanism for graph factorization. By matching the relational structure of graphs, it provides a powerful tool for clustering and embedding unaligned data of varying sizes. While the $O(N^3)$ computational complexity per iteration remains a challenge for very large graphs, the unrolled architecture and linear scaling with respect to dataset size mark a significant step forward in structural data analysis.

Summary updated

BibTeX
@inproceedings{xu2020gromov,
  author = {Hongteng Xu},
  title = {{Gromov-Wasserstein Factorization Models for Graph Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=pstxYMJmf__},
}
Figure