TL;DR
This paper introduces Fermat–Weber Tree-Sliced Wasserstein (FW-TSW), a novel method that significantly improves the accuracy of Tree-Sliced Optimal Transport. By using the "geometric median" (the solution to the classical Fermat–Weber problem) to center tree-based projections, the authors create a more data-aware distance metric that outperforms existing methods in gradient flow, topic modeling, and diffusion model training with negligible computational overhead.
What Problem Does This Paper Address?
Comparing high-dimensional probability distributions is a cornerstone of modern AI, from training GANs to analyzing text. Optimal Transport (OT) is the gold standard for this, but it is computationally "heavy" ($O(n^3)$ complexity). To solve this, researchers use Sliced Wasserstein (SW) distances, which project data onto 1D lines where OT is cheap ($O(n \log n)$).
Recently, Tree-Sliced Wasserstein (TSW) emerged as a more powerful alternative. Instead of simple lines, TSW projects data onto tree-structured metric spaces, which better capture complex shapes. However, TSW's performance depends heavily on how these trees are "sliced"—specifically, where the root of the tree is placed. Previous methods used random or Gaussian sampling centered at the mean, which often fails to capture the true geometric center of the data, especially in the presence of outliers or complex topologies.
Methods
The authors propose a more principled way to build these tree systems by looking at the Fermat–Weber problem: finding a point (the geometric median) that minimizes the sum of distances to all points in a set.
- Geometric Median via Weiszfeld’s Algorithm: Instead of just using the arithmetic mean, the authors use an efficient iterative algorithm to find the geometric median of the combined source and target data.
- FW-TSW: They define a new sampling distribution where the root points of the tree systems are sampled from a Gaussian centered at this geometric median. This ensures the "slices" are always focused on the most representative region of the data.
- FW-TSW* (Enhanced Version): They further introduce a data-dependent directional sampling strategy. Instead of picking random directions, they bias the tree's branches toward vectors connecting random pairs of points from the two distributions.
- Mathematical Rigor: The authors prove that FW-TSW is a semi-metric, is invariant under Euclidean transformations (rotation/translation), and provides a tractable upper bound for the distance.
Datasets
The researchers evaluated their method across several diverse tasks:
- Synthetic Geometry: The "25 Gaussians" dataset for gradient flow.
- Point Clouds: ShapeNet Core-55 for 3D point cloud interpolation.
- Image Manifolds: A synthetic MNIST-like dataset of 16 ordered digits to test image reconstruction and sequence learning.
- Topic Modeling: Three standard text benchmarks: DBLP (computer science), M10 (academic documents), and BBC (news articles).
- Generative Modeling: CIFAR-10, used to train Denoising Diffusion GANs (DDGANs).
Key Insights and Ideas
- Position Matters: A major "aha" moment is the realization that while Sliced Wasserstein only cares about direction, Tree-Sliced Wasserstein is sensitive to both direction and position. By optimizing the position (the root), you unlock the full potential of the tree structure.
- Robustness of the Median: The geometric median is far more robust to outliers than the arithmetic mean. Centering trees here ensures that the resulting "slices" aren't pulled away by a few stray data points.
- Efficiency is Preserved: While finding the geometric median requires an iterative loop (Weiszfeld’s Algorithm), the authors show that just a few iterations are enough. The overall complexity remains $O(n \log n)$, making it just as scalable as standard sliced methods.
Key Results
- Superior Generative Quality: In CIFAR-10 image generation, FW-TSW achieved a Fréchet Inception Distance (FID) of 2.315*, significantly outperforming the previous state-of-the-art tree-sliced method (Db-TSW at 2.53).
- Better Topic Modeling: FW-TSW achieved higher topic coherence ($C_V$ scores) across all three text datasets compared to standard SW and TSW variants.
- Faster Convergence in Gradient Flow: On the 25 Gaussians task, FW-TSW* reached a lower Wasserstein distance faster than all competitors, demonstrating a smoother and more accurate optimization landscape.
- Linear Scaling: Empirical tests confirmed that the runtime and memory usage scale linearly with the number of data points ($n$) and dimensions ($d$).
Limitations and Future Work
The authors identify one primary limitation: like most sliced Wasserstein variants, FW-TSW does not explicitly produce a transport map (a plan for how to move mass from one distribution to another). It tells you how far apart the distributions are, but not necessarily how to transform one into the other.
Future work may involve extending this Fermat–Weber framework to develop tree-sliced methods that can generate these explicit transport plans, which are useful for tasks like domain adaptation and style transfer.
Summary updated