Introduction
In the analysis of "uncertain data," where observations are represented as probability distributions rather than discrete points, measuring similarity is a fundamental challenge. The Earth Mover’s Distance (EMD) is widely considered the gold standard for this task. By conceptualizing distributions as piles of dirt, EMD calculates the minimum "work" required to transform one distribution into the shape of another.
Despite its effectiveness, EMD is computationally expensive. Calculating the exact distance typically involves solving a transportation problem with cubic complexity ($O(n^3)$) relative to the number of bins. This makes direct K-Nearest Neighbor (K-NN) searches across large databases infeasible. While researchers often use "lower bounds" to prune candidates, existing indexing structures struggle to scale as databases grow in size and heterogeneity. This paper introduces a novel indexing method that approximates data as normal distributions to achieve significant speedups in EMD-based queries.
Methodology
The authors propose a multi-step pipeline designed to make EMD indexing tractable for large-scale datasets. The approach transforms a complex statistical problem into a more manageable geometric search problem.
1. Dimensionality Reduction and Normal Approximation
The process begins by projecting high-dimensional distributions onto a 1D vector. A key property of EMD is that the $L_1$ distance between the Cumulative Distribution Functions (CDFs) of these 1D projections serves as a tight lower bound for the actual EMD. Rather than storing the full 1D distribution, the authors approximate it using a Normal Distribution defined by its mean ($\mu$) and standard deviation ($\sigma$). To maintain accuracy, they pre-compute an error term that accounts for the discrepancy between the actual data and the normal fit.
2. Hough Transformation and Stochastic Dominance
The parameters of the normal distribution are mapped into a 2D "parameter space" using a Hough transform. The "secret sauce" of this method lies in the application of stochastic dominance—a concept where one CDF consistently remains above another. By defining geometric regions in the transformed parameter space based on dominance, the authors can identify which distributions are likely to be closer or further apart.
3. Quad-tree Indexing
These geometric regions are organized into a Quad-tree. This structure allows the system to prune entire clusters of distributions simultaneously during a query. Because the resulting "normal lower bound" can be computed in constant time ($O(1)$), it represents a massive efficiency gain over traditional EMD calculations.
Experimental Evaluation
The proposed method was evaluated against three real-world datasets to test both accuracy and scalability:
- RETINA: 3,932 images of retinas, represented by 12 MPEG-7 descriptors (96 bins total).
- IRMA: 10,000 medical images with features extracted into 199-bin distributions.
- Flickr: A massive dataset of 681,278 images, used to test the limits of the index's scalability. Each image was represented by a spatial color layout distribution.
Key Results
- Superior Pruning: On the RETINA and IRMA datasets, the normal lower bound proved significantly tighter than previous methods, capturing a higher percentage of the actual EMD and allowing for more effective candidate pruning.
- Performance Gains: The method was over twice as fast as the previous state-of-the-art (TBI) on the RETINA dataset.
- Scalability: On the Flickr dataset, the Quad-tree approach maintained high performance even as data diversity increased. While other methods saw performance degradation due to the proliferation of B+ trees, this geometric approach scaled gracefully, requiring nearly four times fewer data accesses than the TBI method.
Insights and Future Work
The success of this method stems from the realization that while a single normal distribution may not perfectly represent complex data, the $L_1$ distance between two normal CDFs has a closed-form solution. This allows for lightning-fast distance calculations that still respect the underlying "flow" of the EMD. Furthermore, by pre-computing and indexing the maximum/minimum errors in sub-intervals, the authors ensure the lower bound remains "safe" (never overestimating the true distance), which is critical for query accuracy.
Future research may explore more sophisticated projection strategies for highly complex data, as the current method relies on 1D projections (such as PCA). Additionally, the authors suggest adapting the index for dynamic databases, such as moving object or shape databases where bins are not static, and exploring higher-order stochastic dominance to further tighten the lower bounds.
Summary updated