Lightspeed Geometric Dataset Distance via Sliced Optimal Transport
Khai Nguyen, Hai Nguyen, Tuan Pham, Nhat Ho
TL;DR
This work targets the challenge of computing scalable, model- and embedding-agnostic distances between datasets. It introduces the Sliced Optimal Transport Dataset Distance (s-OTDD), built on Moment Transform Projection (MTP) to map a label distribution into a scalar via a one-dimensional feature projection and scaled moments, and then composes data-point projections to form one-dimensional representations. The distance is defined as the expected $W_p^p$ distance between projected distributions over random projections, is provably a metric under injectivity, and admits a Monte Carlo estimator with near-linear complexity in the number of data points and feature dimensions, independent of the number of classes. Empirically, s-OTDD closely tracks OTDD (Exact) while delivering substantial speedups and robust correlations with transfer-learning performance and augmentation effectiveness across image and text domains, making it well-suited for large-scale, distributed, or federated settings.
Abstract
We introduce sliced optimal transport dataset distance (s-OTDD), a model-agnostic, embedding-agnostic approach for dataset comparison that requires no training, is robust to variations in the number of classes, and can handle disjoint label sets. The core innovation is Moment Transform Projection (MTP), which maps a label, represented as a distribution over features, to a real number. Using MTP, we derive a data point projection that transforms datasets into one-dimensional distributions. The s-OTDD is defined as the expected Wasserstein distance between the projected distributions, with respect to random projection parameters. Leveraging the closed form solution of one-dimensional optimal transport, s-OTDD achieves (near-)linear computational complexity in the number of data points and feature dimensions and is independent of the number of classes. With its geometrically meaningful projection, s-OTDD strongly correlates with the optimal transport dataset distance while being more efficient than existing dataset discrepancy measures. Moreover, it correlates well with the performance gap in transfer learning and classification accuracy in data augmentation.
