Measuring the distance between two probability distributions is a fundamental task in modern machine learning, appearing in applications ranging from training Generative Adversarial Networks (GANs) to stabilizing Reinforcement Learning (RL) agents. While the Wasserstein distance (or "Earth Mover's Distance") is a gold standard for its ability to capture spatial geometry, it is notoriously expensive to compute in high dimensions.
In this work, researchers from the University of Cambridge, Google, and the Alan Turing Institute propose two major upgrades to the Wasserstein toolkit: a new metric called Projected Wasserstein distance and a more efficient sampling technique using orthogonal projections.
The Computational Challenge
The "True" Wasserstein distance is computationally heavy because it requires solving an optimal transport problem—essentially finding the cheapest way to move a mass from one distribution to another. For large datasets, this is too slow to use inside a training loop.
To solve this, researchers often use the Sliced Wasserstein (SW) distance. SW simplifies the problem by projecting high-dimensional data onto random 1D lines, where the problem becomes a simple sorting task that is incredibly fast. However, SW has two primary flaws:
- Information Loss: By looking only at 1D "slices," it loses the rich, high-dimensional relationships between points.
- Estimation Noise: Because it relies on random projections (Monte Carlo estimation), the distance value fluctuates significantly unless a large number of projections are used, which increases computational overhead.
Methodology
1. Projected Wasserstein (PW) Distance
In standard Sliced Wasserstein, points are projected onto a line, sorted to find a matching, and then the distance is measured between those points on that 1D line. The authors argue this introduces a "bias" because the same random vector is used for both matching and measuring.
Instead, they propose Projected Wasserstein: use the 1D projection only to decide which points match, but then calculate the distance between the original high-dimensional points. This keeps the computational efficiency of sorting while retaining the geometric information of the full space.
2. Orthogonal Coupling
When estimating these distances, practitioners typically pick $N$ random directions independently. The authors suggest a superior alternative: picking orthogonal directions (directions that are all 90 degrees to one another).
They demonstrate that this is a form of stratified sampling. By spreading the projection vectors out evenly across the space rather than letting them cluster randomly, one obtains a much more accurate estimate of the true distance with far fewer samples. To maintain efficiency, the authors utilized "Hadamard-Rademacher" matrices to approximate orthogonal projections, which are computationally cheaper than standard methods like Gram-Schmidt.
Key Results
The authors evaluated their methods across synthetic distributions, MNIST (for generative modeling), and MuJoCo benchmarks for Reinforcement Learning.
Variance Reduction
In high-dimensional tests (e.g., $d=50$), orthogonal estimation consistently achieved lower Mean Squared Error (MSE) than standard independent sampling.
As shown in the figure above, the "ort mse" is systematically lower than the "iid mse" across various scales, confirming that orthogonality effectively reduces estimation noise.
Stability and Performance
- Generative Modeling: In MNIST Auto-encoders, using orthogonal projections allowed models to converge faster, particularly when using lower learning rates.
- RL Stability: In the complex "HalfCheetah" environment, using the Projected Wasserstein distance for trust-region updates led to more stable training and higher cumulative rewards compared to the standard Sliced version.
Discussion and Limitations
While the results are promising, the benefits of these new methods are sometimes less pronounced in simpler, low-dimensional contexts. Interestingly, in some generative tasks, the Projected Wasserstein distance caused "mode collapse" toward the center of the distribution. The authors suggest that future work should investigate the relationship between the choice of distance metric and the specific topology of the data. Strengthening the theoretical link between estimation accuracy and final performance in downstream tasks remains an open challenge.
Summary updated