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

A Novel Sliced Fused Gromov-Wasserstein Distance

Moritz Piening, Robert Beinert · DOI

Abstract

Comparing structured data, such as graphs and 3D meshes, requires metrics that account for both internal topology and external node features. While the Fused Gromov-Wasserstein (FGW) distance is the standard for such tasks, its computational complexity limits scalability. This paper introduces the Sliced Fused Third Lower Bound (SFTLB), a novel distance metric that combines hierarchical optimal transport with numerical quadrature and slicing techniques. SFTLB achieves significant speedups—reducing complexity from $O(n^3)$ to $O(n^2 \log n)$—while maintaining isometric invariance, a property often lost in previous sliced approaches. Experimental results across 3D shape retrieval and graph isomorphism testing demonstrate that SFTLB is not only faster but often more robust than exact solvers.

1. Introduction

In machine learning, "heterogeneous" data structures—where nodes possess both connectivity information and individual feature vectors—are increasingly common. Examples include social networks with user profiles or 3D meshes with surface textures. The Gromov-Wasserstein (GW) distance and its extension, the Fused Gromov-Wasserstein (FGW) distance, provide a mathematically rigorous framework for comparing such objects by minimizing a quadratic cost function.

However, the practical application of FGW is hindered by its computational cost. Solving the underlying non-convex optimization problem typically requires $O(n^3)$ operations, making it unsuitable for large-scale datasets. While "sliced" Wasserstein distances have been proposed to mitigate this by projecting data onto 1D lines, they historically struggled with isometric invariance. If a 3D object is rotated or reflected, these previous sliced methods would yield different distance values, rendering them ineffective for geometric tasks.

2. The SFTLB Framework

Researchers from TU Berlin propose the Sliced Fused Third Lower Bound (SFTLB) to address these limitations. The method is built on four key pillars:

2.1 Generalizing the Third Lower Bound

The approach begins with the Third Lower Bound (TLB), a known tight lower bound for the GW distance. The authors extend this to the "Fused" case (FTLB), allowing the metric to simultaneously process structural relationships and node-level features.

2.2 From Hierarchical to Euclidean Space

TLB is traditionally formulated as a hierarchical optimal transport problem, which is computationally difficult. The authors demonstrate that by utilizing the quantile functions of local distance distributions, this hierarchical problem can be reframed as a standard Wasserstein distance between empirical measures in a Euclidean space. This transformation is crucial as it moves the problem into a domain where more efficient tools are available.

2.3 Numerical Quadrature

To ensure the 1D optimal transport calculations are both efficient and exact, the framework employs numerical quadrature schemes. This allows the structural role of any given node to be represented as a vector of sampled quantiles, effectively "vectorizing" the graph's local topology.

2.4 Slicing for Efficiency

Finally, the Sliced Wasserstein (SW) technique is applied to the resulting high-dimensional "quantile plus feature" vectors. By projecting these vectors onto random 1D lines, the computational complexity is reduced from $O(n^3)$ to roughly $O(n^2 \log n)$.

3. Experimental Evaluation

The SFTLB method was tested against several benchmarks to evaluate its speed, accuracy, and invariance properties:

  • Geometric Data: 2D point clouds (bones, stars) and 3D animal meshes (73 models downsampled to 50 vertices).
  • Human Pose Matching: The FAUST dataset, consisting of 100 human meshes in various poses, was used to test the ability to distinguish local versus global structural changes.
  • Graph Isomorphism: Synthetic graphs (Watts-Strogatz, Barabasi-Albert, and Random Regular) were used to determine if the metric could correctly identify topologically identical structures.
  • Scalability: The ModelNet-10 dataset provided a platform for large-scale robustness testing.

4. Key Insights

4.1 Isometric Invariance Regained

A primary contribution of SFTLB is the recovery of isometric invariance. Unlike previous sliced GW methods that project the raw coordinates of points, SFTLB projects the distributions of internal distances. Because internal distances do not change when a shape is rotated or reflected, the resulting metric is naturally invariant to isometries.

4.2 Robustness and Accuracy

Interestingly, SFTLB often outperforms "exact" GW solvers. Because standard solvers are prone to getting trapped in local minima due to the non-convexity of the GW problem, the SFTLB—which avoids quadratic programming entirely—provides a more reliable signal for tasks like graph isomorphism testing. In these tests, SFTLB achieved 100% accuracy on several graph types where standard solvers scored as low as 65-70%.

4.3 Computational Performance

The speedup provided by SFTLB is substantial. In a benchmark involving 10,000 nodes, the standard FGW solver required 178 seconds to compute a distance, while SFTLB completed the same task in just 1.18 seconds.

5. Conclusion and Future Work

SFTLB represents a significant step forward in the efficient comparison of structured data. By combining the theoretical grounding of the Third Lower Bound with the speed of Sliced Wasserstein distances, it offers a scalable, isometrically invariant alternative to traditional FGW.

While the method is highly effective, its performance depends on hyperparameters such as the number of projections ($L$) and the quadrature size ($r$). Future research may focus on further accelerating the calculation of local distance distributions—currently the primary bottleneck—using sweep-line algorithms or other optimized geometric data structures.

Summary updated

BibTeX
@inproceedings{piening2026novel,
  author = {Moritz Piening and Robert Beinert},
  title = {{A Novel Sliced Fused Gromov-Wasserstein Distance}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i29.39669},
}
Figure