The Gromov–Wasserstein distance of measured kernels #
A measured kernel is a triple (X, μ, ω): a measurable space X, a measure μ on it, and a
kernel ω : X × X → Z with values in an extended metric space Z. A metric-measure space is the
special case Z = ℝ and ω (x, x') = dist x x'. Two measured kernels living on different spaces
cannot be compared pointwise; the Gromov–Wasserstein distance compares them through a coupling
π of μ and ν, measuring how badly π distorts the two kernels. For an exponent
p : ℝ≥0∞ the distortion of π is the L^p (π ⊗ π) seminorm
dis_p (π) = ‖(x, y), (x', y') ↦ edist (ωX (x, x')) (ωY (y, y'))‖_{L^p (π ⊗ π)},
and the p-Gromov–Wasserstein distance is its infimum over the couplings of μ and ν.
This file defines both, with no factor 1 / 2, and proves the axioms of an extended
pseudodistance under finiteness and measurability hypotheses: the distance vanishes from an
almost-everywhere strongly measurable kernel on an s-finite measure to itself, it is symmetric
for a sigma-finite measure on one side, and for 1 ≤ p and a finite middle measure it satisfies
the triangle inequality whenever the two couplings glue along the middle carrier, in particular
when the third carrier is standard Borel.
As for TauCeti.wassersteinEDist, the objective is an eLpNorm, so the exponent p = ∞ is a case
of the definition: there the distortion is the π ⊗ π-essential supremum of the kernel
discrepancy. For 0 < p < ∞ the p-th power of the distance is the infimum of the integrals
∫∫ edist (ωX (x, x')) (ωY (y, y')) ^ p d(π ⊗ π).
The kernels are only assumed almost-everywhere strongly measurable, AEStronglyMeasurable ωX (μ.prod μ): this gives the kernel an essentially separable range, so no separability, completeness
or measurable structure is required of the target Z, and no topology is required of X. The
measures are raw MeasureTheory.Measures, as for the Wasserstein distance; the theorems take the
finiteness instances they use.
Main definitions #
TauCeti.gromovWassersteinDistortion p ωX ωY π— theL^p (π ⊗ π)seminorm ofedist (ωX (x, x')) (ωY (y, y')).TauCeti.gromovWassersteinEDist p μ ωX ν ωY— the infimum of the distortion over the couplingsπofμandν.
Main statements #
TauCeti.gromovWassersteinEDist_le,TauCeti.le_gromovWassersteinEDistandTauCeti.gromovWassersteinEDist_lt_iff— the universal property of the infimum;TauCeti.gromovWassersteinDistortion_map_prodMk_of_aemeasurableandTauCeti.gromovWassersteinDistortion_map_prodMk— the distortion of the plan(f, g)_# γinduced by two parametrizationsf,gof the marginals, read onγ ⊗ γ, withTauCeti.gromovWassersteinEDist_le_eLpNorm_of_aemeasurable,TauCeti.gromovWassersteinEDist_le_eLpNormandTauCeti.tendsto_gromovWassersteinEDist_zero_of_tendsto_eLpNormthe resulting distance bound and convergence criterion;TauCeti.gromovWassersteinEDist_rpowandTauCeti.gromovWassersteinEDist_top— the integral-of-a-power formula for0 < p < ∞and the essential-supremum formula forp = ∞;TauCeti.gromovWassersteinDistortion_congr_aeandTauCeti.gromovWassersteinEDist_congr_ae— invariance under almost-everywhere modification of the kernels;TauCeti.gromovWassersteinDistortion_eq_zero_iff— for a weak extended metric target and a nonzero exponent, zero distortion is exactly almost-everywhere equality of the pulled-back kernels;TauCeti.gromovWassersteinEDist_comp_prodMap_eq_zero— a measured kernel and its pullback along a measure-preserving map are at distance0;TauCeti.gromovWassersteinEDist_eq_zero_of_ae_eq_comp_prodMap— the same conclusion when the source kernel agrees almost everywhere with the pullback;TauCeti.gromovWassersteinEDist_self,TauCeti.gromovWassersteinEDist_commandTauCeti.gromovWassersteinEDist_triangle— the axioms of an extended pseudodistance, the triangle inequality for a standard Borel third carrier, from the general formTauCeti.gromovWassersteinEDist_triangle_of_exists_gluefor any carriers along which the two couplings glue;TauCeti.gromovWassersteinEDist_dirac_leftandTauCeti.gromovWassersteinEDist_dirac_right— the distance to a one-point measured kernel({y}, δ_y, ω)is theL^p (μ ⊗ μ)size‖edist (ωX ·) (ω (y, y))‖_{L^p (μ ⊗ μ)}ofωXabout the pointω (y, y).
Implementation notes #
The distance is an iterated ⨅ over plans and over proofs of TauCeti.IsCoupling, matching
TauCeti.wassersteinEDist: two measures with no coupling, for instance finite measures of
different total mass, are at distance ∞.
The distance is not a metric on measured kernels: a kernel and its pullback along a
measure-preserving map are at distance 0
(TauCeti.gromovWassersteinEDist_comp_prodMap_eq_zero), and so are two kernels agreeing almost
everywhere. Under the hypotheses above (finite measures, almost-everywhere strongly measurable
kernels, 1 ≤ p and gluing carriers) it behaves as an extended pseudometric.
Some sources, among them Bauer, Mémoli, Needham and Nishino, put a factor 1 / 2 in front of the
infimum; the distance here is twice theirs.
References #
- F. Mémoli, Gromov–Wasserstein distances and the metric approach to object matching, Found. Comput. Math. 11 (2011), where the distance is defined on metric-measure spaces as an infimum of distortions over couplings and the triangle inequality is proved by gluing.
- K.-T. Sturm, The space of spaces: curvature bounds and gradient flows on the space of metric measure spaces, Mem. Amer. Math. Soc. 290 (2023).
- M. Bauer, F. Mémoli, T. Needham and M. Nishino, The Z-Gromov–Wasserstein distance, J. Mach.
Learn. Res. 26 (2025), for kernels with values in a general metric space
Z.
The p-distortion of a plan π on X × Y between the kernels ωX and ωY: the
L^p (π ⊗ π) seminorm of the kernel discrepancy
((x, y), (x', y')) ↦ edist (ωX (x, x')) (ωY (y, y')).
Instances For
The p-Gromov–Wasserstein distance of the measured kernels (X, μ, ωX) and
(Y, ν, ωY): the infimum, over the couplings π of μ and ν, of the distortion
TauCeti.gromovWassersteinDistortion p ωX ωY π.
It is ∞ when μ and ν have no coupling at all. No factor 1 / 2 is included.
Instances For
Every coupling bounds the Gromov–Wasserstein distance from above by its distortion.
A bound valid on the distortion of every coupling bounds the Gromov–Wasserstein distance from below.
The Gromov–Wasserstein distance is below a threshold exactly when the distortion of some coupling is.
The distortion of a coupling does not see a modification of either kernel on a null set.
The Gromov–Wasserstein distance does not see a modification of either kernel on a null set.
Exchanging the two arguments of both kernels does not change the distortion of a plan.
Exchanging the two arguments of both kernels does not change their Gromov–Wasserstein distance. The outgoing and incoming views of a measured kernel are therefore compared by the same distance.
The pair of kernel values ((x, y), (x', y')) ↦ (ωX (x, x'), ωY (y, y')) is
almost-everywhere strongly measurable for the square of a coupling.
Exchanging the two coordinates of a plan exchanges the roles of the two kernels and does not change the distortion.
Symmetry. Exchanging the two measured kernels does not change their Gromov–Wasserstein distance.
At a nonzero exponent, zero distortion means that the two pulled-back kernels agree almost everywhere. No integrability or finiteness hypothesis is needed.
Kernels reparametrized by two almost-everywhere measurable maps out of a common space (Ω, γ)
pushing γ to μ and ν give an almost-everywhere strongly measurable discrepancy on γ ⊗ γ.
Kernels reparametrized by two measure-preserving maps out of a common space (Ω, γ) give an
almost-everywhere strongly measurable discrepancy on γ ⊗ γ.
The kernel discrepancy integrated in the distortion of a coupling is almost-everywhere strongly measurable for the square of the coupling.
For a coupling, the ∞-distortion is at most c exactly when the indicator of the set where
the kernel discrepancy exceeds c has zero integral against the square of the coupling.
Distortion of an a.e.-measurable parametrized plan. If almost-everywhere measurable maps
f and g push an s-finite measure γ on Ω forward to μ and ν, the plan (f, g)_# γ
couples them, and its distortion is the L^p (γ ⊗ γ) seminorm of the discrepancy of the two
pulled-back kernels.
Distortion of a parametrized plan. If f and g push a measure γ on Ω forward to
μ and ν, the plan (f, g)_# γ couples them, and its distortion is the L^p (γ ⊗ γ) seminorm
of the discrepancy of the two pulled-back kernels.
The common-parametrization bound for almost-everywhere measurable parametrizations: if f
and g push an s-finite measure γ on Ω forward to μ and ν, the Gromov–Wasserstein distance
of (X, μ, ωX) and (Y, ν, ωY) is at most the L^p (γ ⊗ γ) seminorm of the discrepancy of the
pulled-back kernels.
The common-parametrization bound. If f and g push a measure γ on Ω forward to μ
and ν, the Gromov–Wasserstein distance of (X, μ, ωX) and (Y, ν, ωY) is at most the
L^p (γ ⊗ γ) seminorm of the discrepancy of the pulled-back kernels.
Gromov–Wasserstein convergence from a common a.e.-measurable parametrization. Along any
filter l, if f i : Ω → X' i and g : Ω → Y push one s-finite measure γ forward to μ' i
(eventually along l) and ν, and the L^p (γ ⊗ γ) discrepancy between the pulled-back kernels
tends to zero, then gromovWassersteinEDist p (μ' i) (ω' i) ν ωY tends to zero.
Gromov–Wasserstein convergence from a common parametrization. Along any filter l, if
measure-preserving maps f i : Ω → X' i (eventually along l) and g : Ω → Y push one s-finite
measure γ forward to μ' i and ν, and the L^p (γ ⊗ γ) discrepancy between the pulled-back
kernels tends to zero, then gromovWassersteinEDist p (μ' i) (ω' i) ν ωY tends to zero.
For 0 < p < ∞, the p-th power of the Gromov–Wasserstein distance is the infimum over
couplings π of ∫∫ edist (ωX (x, x')) (ωY (y, y')) ^ p d(π ⊗ π).
At exponent ∞, the Gromov–Wasserstein distance is the infimum over couplings π of the
π ⊗ π-essential supremum of the kernel discrepancy.
A measured kernel (Y, ν, ωY) and its pullback (X, μ, ωY ∘ (f × f)) along a
measure-preserving map f are at Gromov–Wasserstein distance 0. In particular the
Gromov–Wasserstein distance is only an extended pseudodistance on measured kernels.
A kernel agreeing almost everywhere with a pullback along a measure-preserving map is at
Gromov–Wasserstein distance 0 from the original measured kernel.
A kernel on a coupling that agrees almost everywhere with the pullback along the first
projection is at Gromov–Wasserstein distance 0 from the first measured kernel.
A kernel on a coupling that agrees almost everywhere with the pullback along the second
projection is at Gromov–Wasserstein distance 0 from the second measured kernel.
A measured kernel is at Gromov–Wasserstein distance 0 from itself.
The triangle inequality, for carriers along which couplings glue. If every coupling of
μ and ν and every coupling of ν and ρ are the two consecutive two-coordinate marginals of
a single measure on X × Y × W, then for 1 ≤ p the Gromov–Wasserstein distance satisfies the
triangle inequality through (Y, ν, ωY).
The triangle inequality. For 1 ≤ p and a standard Borel third carrier, the
Gromov–Wasserstein distance satisfies the triangle inequality: the two couplings are glued along
the middle space by disintegrating the second one.
Distance to a one-point measured kernel. A probability measure μ has exactly one
coupling with the Dirac measure δ_y, so the Gromov–Wasserstein distance from ({y}, δ_y, ωY) to
(X, μ, ωX) is the L^p (μ ⊗ μ) size of ωX about the point ωY (y, y).
Distance to a one-point measured kernel, with the point on the right: the
Gromov–Wasserstein distance from (X, μ, ωX) to ({y}, δ_y, ωY) is the L^p (μ ⊗ μ) size of
ωX about the point ωY (y, y).