Optimal Transport (OT) is a powerful mathematical tool for measuring the distance between two probability distributions. However, standard OT requires the total mass of both distributions to be equal. In many real-world scenarios—such as comparing a small set of clean data to a large, noisy dataset—we only want to transport a portion of the mass. This is known as Optimal Partial Transport (OPT).
Typically, researchers must pick a fixed amount of mass ($\alpha$) to transport and then calculate the cost. The challenge is that the "correct" $\alpha$ is rarely known in advance. For instance, we rarely know the exact percentage of noise or outliers in our data. This paper introduces a novel framework for computing the OT-profile, which captures the minimum cost of transporting mass $\alpha$ for all possible values of $\alpha$, providing a comprehensive view of the transport dynamics.
The OT-Profile Framework
The authors define the OT-profile as a function $\omega(\alpha)$ that maps the transported mass $\alpha$ to its minimum transport cost. By analyzing its mathematical properties, they prove that for discrete distributions, the OT-profile is a piecewise-linear, non-decreasing, convex function. Crucially, the first derivative of this profile is a non-decreasing step function, which serves as a powerful analytical signal.
To compute this profile, the paper introduces two primary algorithms:
- Exact Algorithm: A primal-dual combinatorial approach that generalizes the famous Hungarian Method. It operates in phases, using a modified Dijkstra’s algorithm on a residual graph to find the cheapest "augmenting paths" to transport more mass. This traces the entire profile in $\tilde{O}(n^2 K)$ time, where $K$ is the number of segments in the profile.
- Approximation Algorithm: For larger datasets, the authors adapt an existing state-of-the-art algorithm to provide a $\delta$-approximation of the profile in $O(n^2/\delta + n/\delta^2)$ time, reducing the combinatorial complexity to $O(1/\delta)$.
The Outlier Lemma and the Derivative Signal
While the total transport cost is useful, the marginal cost (the derivative of the OT-profile) is much more informative. It indicates how much "effort" is required to transport the very next unit of mass.
A key theoretical contribution of this work is the Outlier Lemma. The authors prove that the first derivative of the OT-profile exhibits a "noticeable rise" exactly when the algorithm exhausts the inlier data and begins attempting to transport mass from outliers.
Because the derivative jumps when it hits outliers, practitioners do not need to guess the outlier ratio beforehand. Instead, they can simply look for the "elbow" or jump in the derivative graph to automatically threshold the data.
Applications and Key Results
The researchers evaluated the OT-profile approach on several standard benchmarks, including MNIST and various UCI Repository datasets, focusing on outlier detection and Positive-Unlabelled (PU) learning.
Outlier Detection
On the MNIST dataset (using digits 0-4 as inliers and 5-9 as outliers), the OT-profile method consistently outperformed the previous state-of-the-art method, ROBOT. By leveraging the derivative signal to identify outliers, the proposed approach improved accuracy by 4% to 10% across different noise levels.
PU-Learning Without Priors
In PU-learning, models are trained using only a set of positive examples and a pile of unlabeled ones. Most existing methods require the "class prior" (the percentage of positive examples in the unlabeled set) to function correctly. The OT-profile allows researchers to estimate this prior accurately just by analyzing the cost curve. The proposed "OTP-wo-prior" method achieved results comparable to or better than existing methods that were explicitly given the true class prior. For example, on the Mushrooms dataset, it achieved 99.7% accuracy and estimated the class prior within 0.1% of the true value.
Limitations and Future Directions
While the exact algorithm is efficient for moderate dataset sizes ($n$), the $\tilde{O}(n^2 K)$ complexity might still be prohibitive for extremely large-scale industrial datasets without relying on the approximation algorithm. Additionally, the "Outlier Lemma" assumes that outliers are sufficiently distant from inliers in the feature space; if outliers are heavily interleaved with inliers, the jump in the derivative may be less pronounced.
Future work may extend the OT-profile framework to other variants of Optimal Transport, such as the Gromov-Wasserstein distance, which would allow for comparisons between distributions that exist in entirely different metric spaces.
Summary updated