TL;DR
This paper introduces a novel "data-dependent" algorithm to efficiently answer whether the Earth Mover's Distance (EMD) between two large, high-dimensional point sets exceeds a given threshold. By leveraging the concept of "low doubling dimensions" and a hierarchical decomposition, their method significantly speeds up EMD queries compared to directly computing the full EMD.
What Problem Does This Paper Address?
The Earth Mover's Distance (EMD) is a powerful metric for comparing distributions, widely used in machine learning and data mining for tasks like image retrieval and domain adaptation. However, computing the exact EMD can be computationally expensive, especially for large datasets in high-dimensional spaces. Often, we don't need the exact EMD value, but rather a quick answer to a query: is the EMD greater than or less than a specific threshold T? Existing methods struggle with this "EMD query problem" due to their high complexity. This paper tackles this challenge by developing a faster algorithm specifically for scenarios where the data, despite being in high-dimensional space, has a low "intrinsic dimensionality" (characterized by a low doubling dimension).
Methods
The core of the proposed solution is a "data-dependent" algorithm that avoids direct EMD computation. It builds upon a hierarchical decomposition inspired by "net trees" used in doubling metrics. The key ideas are:
- Hierarchical Decomposition: The algorithm recursively breaks down the problem by partitioning the point sets into smaller subsets. This is achieved using a modified version of the Gonzalez's k-center clustering algorithm, which is efficient for low-doubling-dimension data.
- Data-Dependent Height: The depth of this hierarchical decomposition (the "tree height") is not fixed but depends on how close the actual EMD is to the query threshold
T. If the EMD is far fromT, the tree is shallower, leading to faster computation. - Sub-problem EMD Computation: At each level of the hierarchy, a much smaller EMD computation is performed on the decomposed subsets. The paper emphasizes that any existing EMD algorithm can be used as a black-box for these sub-problems, making the framework flexible and allowing for improvements as EMD algorithms evolve.
- Distinguishing Cases: The algorithm iteratively refines the EMD estimate. Based on the EMD of the sub-problems, it either concludes whether the overall EMD is above or below
Tor continues to a deeper level of decomposition.
Datasets
The paper evaluates its algorithm on both synthetic and real-world datasets:
- Synthetic Datasets: Generated from random manifolds in R⁵⁰⁰, with the polynomial degree used as a proxy for doubling dimension.
- Real-world Datasets:
- MNIST (image dataset)
- CIFAR-10 (image dataset)
The authors note that their algorithm does not strictly require the doubling dimension to be known beforehand.
Key Insights and Ideas
- The "Query" is Key: The paper highlights that for many practical applications, a binary answer (above/below threshold) is sufficient and much more achievable than an exact EMD value.
- Doubling Dimension as a Practical Assumption: While high-dimensional data is common, the assumption of low doubling dimension is often valid for real-world datasets (e.g., data lying on a low-dimensional manifold). This assumption is crucial for the efficiency of their hierarchical decomposition.
- Data-Dependent Efficiency: The algorithm's runtime is not fixed but adapts to the input. If the EMD is far from the threshold, it finishes quickly. This is a significant advantage over methods with worst-case guarantees.
- Modularity of EMD Solvers: The framework's ability to plug in any existing EMD solver makes it robust and future-proof. It benefits from advances in EMD computation without needing to be re-engineered.
Key Results
The experimental results demonstrate significant speedups:
- Speedup: The proposed algorithm achieved running time ratios of less than 0.3 on synthetic datasets and 0.38 on real datasets when compared to direct EMD computation using Network Simplex or Sinkhorn algorithms. This translates to saving at least 70% and 62% of the running time, respectively.
- Scalability: The ratios substantially decrease as the dataset size increases, indicating good scalability.
- Parameter Sensitivity: The running time increases when the threshold
Tis close to the actual EMD (requiring a deeper tree), and becomes flatter whenTis far from the EMD. - Precision: The algorithm achieved an average precision of ≥ 97.6% on synthetic datasets and ≥ 88.8% on real datasets for correctly classifying instances into the defined cases.
Limitations and Future Work
- Limitations:
- The algorithm's performance is data-dependent; if the EMD is very close to the threshold, the tree height increases, leading to longer running times.
- While the doubling dimension doesn't need to be explicitly provided, the algorithm's efficiency relies on the data exhibiting this property.
- Future Work:
- Generalizing the proposed data-dependent framework to other distance measures beyond EMD, such as Kullback-Leibler divergence.
Summary updated