Linear Partial Gromov-Wasserstein Embedding

Yikun Bai, Abihith Kothapalli, Hengrong Du, Rocio Diaz Martin, Soheil Kolouri

TL;DR

This paper introduces the Linear Partial Gromov-Wasserstein (LPGW) embedding, a novel framework that linearizes the computationally heavy Partial Gromov-Wasserstein (PGW) problem. By reducing the pairwise distance computation complexity from quadratic $O(K^2)$ to linear $O(K)$ for $K$ metric spaces, LPGW enables highly efficient partial shape matching and robust representation learning under heavy noise.

What Problem Does This Paper Address?

Optimal Transport (OT) and its metric-space extension, the Gromov-Wasserstein (GW) distance, are powerful mathematical tools for comparing data distributions across different metric spaces. However, standard GW requires both distributions to have equal total mass, limiting its use in real-world scenarios involving partial matching or missing data (such as occluded or incomplete 3D shapes).

While Partial GW (PGW) relaxes this constraint to allow the comparison of unequal masses, it is highly non-convex and computationally prohibitive. Calculating pairwise distances among a collection of $K$ objects requires solving the optimization problem $O(K^2)$ times. This paper tackles this massive computational bottleneck to make partial metric space comparisons scalable.

Methods

The authors propose the Linear Partial Gromov-Wasserstein (LPGW) embedding. Inspired by classical Linear OT, they project target metric spaces onto a single, fixed reference space.

The core of their method lies in mapping each metric measure space into a structured triplet: $(\gamma_X, k_\gamma, \gamma_c)$. This triplet explicitly encodes:

  1. Source mass transport ($\gamma_X$)
  2. The underlying transport cost function ($k_\gamma$)
  3. Target mass creation/destruction ($\gamma_c$)

To make this practical for discrete data, they introduce an approximated LPGW (aLPGW) discrepancy using a barycentric projection method. Crucially, the authors provide theoretical guarantees proving that LPGW defines a valid metric under specific conditions, ensuring mathematical rigor alongside massive speedups.

Datasets

The method was evaluated on four distinct datasets:

  • Ellipse Dataset: 100 distinct 2D ellipses of varying sizes (90 to 650 points) used to evaluate approximation quality against true PGW.
  • 2D Shape Dataset: 8 classes of geometric shapes (such as bones, stars, and rectangles), containing 20 shapes each, used for shape retrieval tasks.
  • 3D Shape Dataset: Derived from the Multi-view Partial (MVP) point cloud challenge, containing complete and incomplete/partial 3D models across 4 classes.
  • MNIST 2D Point Cloud Dataset: Modified to evaluate classification robustness against random rotations, flips, and varying levels of uniformly distributed noise ($\eta \in \{0, 0.1, 0.3, 0.5\}$).

Key Insights and Ideas

  • Linearization via a Single Reference: Instead of comparing every pair of spaces directly, comparing everything to a single "barycenter" reference space drops the computational complexity from quadratic to linear.
  • Explicit Mass Tracking: By breaking the embedding into a triplet that tracks both transport and mass changes, the model naturally handles partial matches without losing geometric structure.
  • Natural Noise Filtering: In noisy datasets, LPGW naturally filters out random outlier points. Because the "partial" aspect allows the model to ignore points that do not match the clean reference structure, it avoids the pitfalls of standard Linear OT and Linear GW, which degrade by trying to force-match noise.

Key Results

  • Massive Speedups in Shape Retrieval: On the 3D shape dataset containing incomplete shapes, computing pairwise distances with exact PGW took 203.6 minutes. LPGW achieved virtually identical classification accuracy (93.7% vs 93.8%) in just 1.8 minutes—over a 100x speedup.
Shape Retrieval Results
  • High-Fidelity Approximation: For the ellipse dataset, LPGW achieved a Pearson Correlation Coefficient (PCC) of up to 0.9954 compared to exact PGW, proving it serves as an excellent proxy.
Elliptical Disks Results
  • Extreme Noise Robustness: On the corrupted MNIST dataset with 50% noise ($\eta=0.5$), standard Linear OT (LOT) and Linear GW (LGW) dropped to random guessing accuracy (~12.5%). In contrast, LPGW maintained a powerful 72.9% accuracy.
MNIST Noise Robustness Results

Limitations and Future Work

  • Reference Space Dependence: The performance and accuracy of LPGW are highly sensitive to the choice of the reference space; it must act as a good geometric "center" for the tested dataset to yield optimal results.
  • Theoretical Extensions for Gauge Mappings: The proof showing that the barycentric projection acts as an optimal Monge mapping is currently limited to specific settings. The authors conjecture it extends to squared Euclidean distances but note that general gauge mappings will require a more generalized formulation in future work.

Summary updated

BibTeX
@inproceedings{bai2025linear,
  author = {Yikun Bai and Abihith Kothapalli and Hengrong Du and Rocio Diaz Martin and Soheil Kolouri},
  title = {{Linear Partial Gromov-Wasserstein Embedding}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=BA1eG7vCNb},
}
Figure