TL;DR
This paper introduces a fast, analytical method to calculate the tightest possible upper and lower bounds on Euclidean distances between two compressed data objects, even when they are compressed using entirely different sets of basis coefficients. By solving this via a novel "double-waterfilling" algorithm, the authors enable highly accurate and lightning-fast data mining operations (like k-NN and k-Means) directly in the compressed domain.
What Problem Does This Paper Address?
As datasets grow, compressing data before performing analytics is practically mandatory. A standard way to compress sequential or high-dimensional data is to transform it (e.g., using Fourier or Wavelets) and keep only a few coefficients.
To get the highest fidelity compression, you should keep the "highest-energy" coefficients. However, because every data object is unique, the specific set of coefficients kept will vary from object to object. This creates a massive headache for data mining: how do you calculate the distance between two objects if they are represented by completely different, mismatched sets of coefficients?
Previous methods either forced all objects to use the same coefficients (which results in poor compression) or required at least one object to be uncompressed. This paper tackles the most general and challenging scenario: comparing two objects where both are compressed using their own optimal, potentially disjoint coefficient sets.
Methods
To compare two compressed sequences, the authors use the kept coefficients and a single stored value representing the total energy of the discarded coefficients.
They frame the search for the minimum (lower bound) and maximum (upper bound) possible original distances as a complex convex optimization problem. While this could technically be solved using off-the-shelf numerical solvers, doing so for millions of pairs in a database is computationally prohibitive.
The core novelty is the "double-waterfilling" algorithm. By mathematically deriving the exact Karush-Kuhn-Tucker (KKT) optimality conditions for the problem, the authors created a closed-form, analytical algorithm. It optimally "fills" or allocates the unknown discarded energy of both sequences to compute the exact distance bounds in a finite number of steps. They then adapt standard k-NN and k-Means algorithms to operate using these bounds (specifically, using the average of the upper and lower bounds as a distance proxy).
Datasets
The authors evaluated their approach on two distinct real-world datasets to prove its generality across different bases:
- Weblog Time-Series: ~2.2 million data values from IBM.com search logs, formatted as 2,150 time-series tracking query frequencies over 1024 days. Compressed using the Discrete Fourier Transform (DFT).
- VLSI Layout Images: ~150,000 binary images (512x512) of circuit layouts, converted to 1D signatures to support translation-invariant matching. Compressed using the Wavelet transform.
Key Insights and Ideas
- Smarter Compression Enables Tighter Bounds: Storing just one extra piece of side information—the total energy of the discarded coefficients—provides enough mathematical constraint to bound the true distance incredibly tightly, even when the kept coefficients don't align.
- Analytical Beats Numerical: By proving the mathematical properties of the optimal solution, the authors bypassed the need for iterative numerical solvers. They turned a computationally heavy optimization problem into a lightning-fast analytical one.
- Sparsity is a Superpower: When the underlying data is naturally sparse in a given basis, the discarded energy is tiny. This restricts the uncertainty space so much that this method can actually outperform PCA-based dimensionality reduction, without the massive computational cost of computing a Singular Value Decomposition (SVD).
Key Results
- Tightness: The computed bounds are up to 27% tighter than baseline deterministic approaches.
- Massive Speedup: The double-waterfilling algorithm computes distance bounds in ~2.5 milliseconds per pair. This is over 100x faster than numerical convex optimization solvers (which took >1 second per pair), making it viable for large-scale mining.
- Mining Accuracy: In k-NN and k-Means tasks, the method consistently outperforms Random Projection (RP) techniques. For highly sparse data, it even beats PCA-based approaches.
- Indexing Efficiency: When integrated into a VP-tree for database indexing, the tight bounds allow the algorithm to safely prune >90% of the dataset during search queries, drastically reducing disk reads.
Limitations and Future Work
- Limitations: The current mathematical formulation relies strictly on orthonormal bases (like standard Fourier or Wavelets) and the Euclidean distance (L2-norm). It cannot natively handle non-orthogonal transformations.
- Future Work: The authors suggest extending the methodology to over-complete bases (frames), which are highly relevant in modern compressed sensing. They also plan to explore the application of these bounds to other distance-based mining tasks, such as anomaly detection and density-based clustering.
Summary updated