Manuscript Offprint

arXiv:2610.20743

Vertical Sliced Wasserstein Distances for Meta-Measures

Elaheh Akbari, Ahmadreza Moradipari, Kyungtae Han, Hamed Pirsiavash, Yikun Bai, Rocio Diaz Martin, Soheil Kolouri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Many modern learning problems require comparing probability distributions whose individual observations are themselves probability measures, naturally giving rise to meta-measures in P(P(Ω))\mathcal{P}(\mathcal{P}(\Omega)). However, optimal transport distances on this space can be prohibitively expensive to evaluate. We introduce the vertical sliced Wasserstein (VSW) distance, a scalable metric on P(P(Ω))\mathcal{P}(\mathcal{P}(\Omega)). Rather than slicing along the transport geometry of P(Ω)\mathcal{P}(\Omega), VSW projects each inner measure using continuous test functions and compares the resulting one-dimensional distributions with one-dimensional Wasserstein distance. We prove that VSW is a valid metric on P(P(Ω))\mathcal{P}(\mathcal{P}(\Omega)), metrizes weak convergence, and admits dimension-independent statistical convergence guarantees. Empirically, VSW provides high accuracy and efficiency compared with existing distances for meta-measures. We further derive a practical particle gradient for the empirical VSW 2^2 objective and demonstrate its use for gradient-based transport of meta-measures. VSW provides a simple and scalable alternative for comparing and optimizing distributions of distributions.

1 Introduction and Related Work

Many learning problems naturally involve distributions of distributions (DoDs): a dataset can be viewed as a distribution over class-conditional distributions (Alvarez-Melis and Fusi, 2020), a collection of shapes as a distribution over point clouds where each point cloud is itself an empirical distribution (Haviv et al., 2025), and documents, cell populations, or mixture models can similarly be represented as collections of probability measures (Yurochkin et al., 2019; Nguyen and Mueller, 2026). Formally, these objects are meta-measures P∈P(P(Ω))\mathbb{P} \in \mathcal{P}(\mathcal{P}(\Omega)), i.e., probability measures whose observations are themselves probability measures on Ω\Omega. Comparing such objects requires accounting for variation both within each inner distribution and across the population of distributions.

Wasserstein distances on meta-measures. A natural metric for this setting is Wasserstein-over-Wasserstein (WoW), which solves an outer optimal transport (OT) problem using Wasserstein distance between inner measures as its ground cost. Related constructions appear in hierarchical OT (Yurochkin et al., 2019), generative modeling (Dukler et al., 2019), and the optimal transport dataset distance (OTDD) (Alvarez-Melis and Fusi, 2020). While geometrically appealing, WoW is expensive: comparing empirical meta-measures requires many inner OT problems and inherits the statistical and computational difficulties of Wasserstein distance at both levels (Dukler et al., 2019; Bonet et al., 2025b). Additionally, Bonet et al. (2025b) develop WoW gradient flows and introduce tractable MMD objectives with Sliced-Wasserstein kernels.

Sliced and scalable meta-measure distances. Recent methods therefore seek scalable alternatives through slicing. Double-Sliced Wasserstein (DSW) (Piening and Beinert, 2026) uses one-dimensional Wasserstein projections and quantile representations, Busemann-based approaches slice along geodesic directions of Wasserstein space (Bonet et al., 2025a), and s-OTDD uses moment-based projections for dataset comparison (Nguyen et al., 2025). Although substantially cheaper than exact WoW, these approaches still construct their projections from the transport geometry of the inner measures or surrogates thereof.

We introduce Vertical Sliced Wasserstein (VSW), a complementary approach that slices a measure through its action on continuous test functions. For a test function f∈C(Ω)f \in C(\Omega), an inner measure μ\mu is represented by the scalar Pf(μ)=∫Ωf dμP_f(\mu) = \int_\Omega f \, \mathrm{d}\mu. Applying this projection to every inner measure converts a meta-measure into a one-dimensional distribution. Then, one can compare efficiently P\mathbb{P} and Q\mathbb{Q} in P(P(Ω))\mathcal{P}(\mathcal{P}(\Omega)) using the one-dimensional pp-Wasserstein distance WpW_p by VSWpp(P,Q):=Ef∼σ[Wpp((Pf)#P,(Pf)#Q)]\text{VSW}_p^p(\mathbb{P}, \mathbb{Q}) := \mathbb{E}_{f \sim \sigma}[\text{W}_p^p((P_f)_\# \mathbb{P}, (P_f)_\# \mathbb{Q})], where σ\sigma is the law of a Gaussian process with universal covariance kernel κ\kappa. We call this construction vertical because it acts through the dual representation of each measure, in contrast to methods that slice along its transport geometry.

This simple change has important practical consequences. Each slice compresses an entire inner distribution to one scalar, requiring only test-function evaluation and averaging before a single one-dimensional OT computation across the outer distributions. VSW therefore avoids inner OT, per-distribution quantile representations, and Gaussian surrogates. At the same time, the family of test-function projections is rich enough to distinguish meta-measures: we prove that VSWpVSW_p is a metric and metrizes weak convergence. For p=2p = 2, VSW is additionally Hilbertian and closely connected to kernel mean embeddings, while retaining the outer Wasserstein comparison that distinguishes distributions beyond their mean measures.

Empirically, this combination yields an accurate and efficient meta-measure distance. Across dataset comparison, point-cloud and image-patch distributions, and shape classification, VSW closely tracks transport-based reference distances while consistently reducing runtime. We further derive an explicit gradient formulation for the empirical VSW22VSW_{2}^{2} objective, supporting parametric generative modeling. Our main contributions are:

  1. We introduce Vertical Sliced Wasserstein (VSW), a new sliced distance for meta-measures based on test-function projections, and prove that it defines a metric that metrizes weak convergence.

  2. We establish statistical and computational scalability, including dimension-independent two-stage convergence rates and efficient Monte Carlo estimation without inner OT.

  3. We show that VSW2VSW_{2} is Hilbertian, induces universal characteristic kernels on meta-measures, and admits, under discretization, an explicit gradient for optimization and generative modeling.

  4. We provide broad empirical validation across dataset comparison, point clouds, image patches, shape classification, discrete particle gradient flows, and hierarchical generation, where VSW is fast while maintaining strong agreement with transport-based baselines.

The closest computational baseline is DSW (Piening and Beinert, 2026), which first projects multivariate inner measures to one dimension, represents the resulting measures through quantile functions in L2([0,1])L^{2}([0,1]), and then applies functional slicing with Gaussian-process directions. VSW instead applies test functions directly to the original inner measures, reducing each to a single scalar per slice and avoiding both inner quantile construction and an additional Euclidean slicing stage. A related test-functional approach is the hierarchical IPM of Catalano and Lavenant (2024), which, unlike VSW, requires optimization over a class of test functions.

References (64)