[Paper Review] Fast and Robust Comparison of Probability Measures in Heterogeneous Spaces
This paper proposes Anchor Energy (AE) and Anchor Wasserstein (AW) distances for fast, robust comparison of probability measures in heterogeneous spaces by representing each point as a 1D distribution of its pairwise distances (anchor features). It introduces a sweep line algorithm to compute AE in O(n² log n) time—quasi-linear w.r.t. input size—demonstrating superior speed and stability over Gromov-Wasserstein approximations, with robust rank-based variants enhancing noise resilience.
Comparing two probability measures supported on heterogeneous spaces is an increasingly important problem in machine learning. Such problems arise when comparing for instance two populations of biological cells, each described with its own set of features, or when looking at families of word embeddings trained across different corpora/languages. For such settings, the Gromov Wasserstein (GW) distance is often presented as the gold standard. GW is intuitive, as it quantifies whether one measure can be isomorphically mapped to the other. However, its exact computation is intractable, and most algorithms that claim to approximate it remain expensive. Building on \cite{memoli-2011}, who proposed to represent each point in each distribution as the 1D distribution of its distances to all other points, we introduce in this paper the Anchor Energy (AE) and Anchor Wasserstein (AW) distances, which are respectively the energy and Wasserstein distances instantiated on such representations. Our main contribution is to propose a sweep line algorithm to compute AE \emph{exactly} in log-quadratic time, where a naive implementation would be cubic. This is quasi-linear w.r.t. the description of the problem itself. Our second contribution is the proposal of robust variants of AE and AW that uses rank statistics rather than the original distances. We show that AE and AW perform well in various experimental settings at a fraction of the computational cost of popular GW approximations. Code is available at \url{https://github.com/joisino/anchor-energy}.
Motivation & Objective
- Address the challenge of comparing probability measures supported on different, heterogeneous metric spaces—common in biological, linguistic, and graph data.
- Overcome the computational intractability of Gromov-Wasserstein (GW) distances, which are theoretically sound but expensive to compute.
- Develop efficient alternatives to GW that maintain interpretability and robustness while reducing computational cost.
- Enable scalable and stable comparison of complex data types such as graphs, word embeddings, and single-cell omics data.
- Introduce a rank-based variant to improve robustness against noise and outliers in real-world data.
Proposed method
- Represent each point in a measured metric space (MMS) as a 1D empirical distribution of its distances to all other points—termed 'anchor features'.
- Compute the energy distance (AE) between the anchor distributions using the 1-Wasserstein distance as a negative definite kernel in P(R).
- Propose a sweep line algorithm to compute AE exactly in O(n² log n) time, reducing the naive O(n³) complexity.
- Introduce Anchor Wasserstein (AW) as the entropic-regularized Wasserstein distance between anchor distributions for improved differentiability and stability.
- Develop AEP (Anchor Energy Procrustean) assignment, a robust method for node matching in graphs using averaged transportation plans.
- Apply rank statistics to replace raw distances in anchor features, enhancing robustness to noise and outliers.
Experimental results
Research questions
- RQ1Can we achieve fast and stable comparison of probability measures in heterogeneous spaces without the computational burden of Gromov-Wasserstein?
- RQ2Can we design a distance metric based on anchor features that enables exact, efficient computation while preserving meaningful geometric structure?
- RQ3How does the proposed sweep line algorithm improve the time complexity of energy distance computation on anchor features?
- RQ4To what extent do rank-based variants of AE and AW improve robustness to noise in real-world data?
- RQ5Can AE and AW outperform or match GW-based methods in tasks like graph matching and generative model evaluation?
Key findings
- The proposed sweep line algorithm computes the Anchor Energy (AE) distance in O(n² log n) time, achieving quasi-linear complexity relative to the input size (n² cost matrix).
- AE and AW distances are significantly faster than state-of-the-art GW approximations, with computational cost reduced to a fraction of existing methods.
- The rank-based variant of AE and AW shows improved robustness to noise, outperforming GW and AW in node assignment tasks on synthetic BA graphs.
- In graph matching, AEP (Anchor Energy Procrustean) achieves higher correlation between matched node orders than GW, AW, and centrality-based methods, indicating better role preservation.
- In graph generative model evaluation, the proposed method correctly identifies GraphRNN as statistically indistinguishable from real data (p > 0.05), while rejecting ER and BA baselines.
- The method enables exact energy distance computation in O(sn log(sn)) time for s samples, making large-scale model evaluation feasible and efficient.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.