Learning Ultrametric Trees for Optimal Transport Regression
Samantha Chen, Puoya Tabaghi, Yusu Wang
TL;DR
The paper tackles the cubic-time bottleneck of computing the 1-Wasserstein distance by learning an ultrametric tree that approximates OT on a discrete space. It casts the problem as optimal transport regression on ultrametrics and solves it with projected gradient descent, using a hierarchical minimum spanning tree as the projection operator to ultrametrics. The authors introduce a gradient-based learning scheme parameterized by the ultrametric’s height variables (LCAs) and provide a runtime analysis showing $O(k N^2)$ training complexity while enabling $O(N)$ inference on the learned tree. Empirical results demonstrate improved Wasserstein approximations over Flowtree and Quadtree on real graphs and synthetic dense distributions, with the added ability to recover ground-truth tree topology on synthetic data, highlighting practical impact for fast, accurate OT in discrete spaces.
Abstract
Optimal transport provides a metric which quantifies the dissimilarity between probability measures. For measures supported in discrete metric spaces, finding the optimal transport distance has cubic time complexity in the size of the space. However, measures supported on trees admit a closed-form optimal transport that can be computed in linear time. In this paper, we aim to find an optimal tree structure for a given discrete metric space so that the tree-Wasserstein distance approximates the optimal transport distance in the original space. One of our key ideas is to cast the problem in ultrametric spaces. This helps us optimize over the space of ultrametric trees -- a mixed-discrete and continuous optimization problem -- via projected gradient decent over the space of ultrametric matrices. During optimization, we project the parameters to the ultrametric space via a hierarchical minimum spanning tree algorithm, equivalent to the closest projection to ultrametrics under the supremum norm. Experimental results on real datasets show that our approach outperforms previous approaches (e.g. Flowtree, Quadtree) in approximating optimal transport distances. Finally, experiments on synthetic data generated on ground truth trees show that our algorithm can accurately uncover the underlying trees.
