Introduction
Kernel methods are foundational to machine learning, enabling algorithms like SVMs and spectral clustering to operate in high-dimensional feature spaces. However, their computational cost—typically $O(n^2)$ or $O(n^3)$—renders them impractical for massive datasets. While approximation techniques like the Nyström method exist, they often fail to leverage modern multicore architectures or ignore the underlying geometric structure of the data during partitioning.
This paper introduces $DC^2$ (Divide-Compress-and-Conquer), a novel framework that uses recursive random projections to partition and compress data into representative "signatures." This geometry-aware approach allows expensive kernel learning tasks to be parallelized efficiently while maintaining high accuracy.
The $DC^2$ Framework
The core innovation of $DC^2$ is replacing naive random sampling with recursive random projections using Random Projection Trees (rpTrees). The workflow consists of three primary stages:
- Partitioning: Data is recursively split along random directions into a set of independent partitions. This preserves local geometry better than random sampling.
- Compression: Within each partition, the rpTree continues to grow until leaf nodes contain only a few points. Each leaf is then compressed into a single "signature point" (e.g., its centroid).
- Conquering: These signature points are aggregated into a reduced dataset, upon which the target kernel algorithm is executed.
Because the partitioning and compression steps are independent across branches, they can be executed in parallel across multiple CPU cores, leading to significant speedups.
Experimental Setup
The authors evaluated $DC^2$ by applying it to rpfCluster (an ensemble-based kernel clustering algorithm), creating a scalable variant called rpfCluster+. Testing was conducted on six standard benchmark datasets from the UCI repository, ranging from 67,000 to over 8 million instances.
Key Insights and Results
The $DC^2$ approach offers several advantages over traditional approximation methods:
- Geometric Preservation: By using random projections rather than random sampling, $DC^2$ maintains neighborhood structures. This results in a significantly lower Mean Squared Error (MSE) when reconstructing data from signatures—often over 1.5x lower on large datasets like HT Sensor.
- Scalability and Speed: In multicore mode,
rpfCluster+achieves massive speedups. With just two partitions, it outperforms fast approximate spectral clustering methods like RASP and approaches the speed of K-means, even on the 8.3-million-row Gas Sensor dataset. - Accuracy: The method maintains high clustering accuracy comparable to state-of-the-art approximations. Theoretical analysis confirms that the loss in spectral clustering accuracy is strictly bounded by the data approximation error, which vanishes as the number of signature points increases.
- Robustness: Unlike random sampling, which loses accuracy as the number of partitions increases, $DC^2$ remains robust, showing negligible accuracy loss even with high degrees of parallelization.
Conclusion and Future Work
$DC^2$ provides a unified architecture for large-scale kernel learning by using rpTrees for both macro-level partitioning and micro-level compression. While the current work focuses on spectral clustering, the framework is inherently flexible. Future research could extend $DC^2$ to other kernel-based tasks such as Kernel PCA or Kernel Ridge Regression, potentially bringing the same scalability and geometric awareness to a broader range of machine learning applications.
Summary updated