Abstract
Kernel methods, such as Support Vector Machines (SVMs), offer high accuracy but suffer from $O(n^2)$ time and space complexity, making them difficult to scale to massive datasets. Traditional distributed solvers often rely on synchronizing primal variables, which is infeasible for kernel machines due to potentially infinite-dimensional feature spaces. This paper introduces the Parallel Block Minimization (PBM) framework, a distributed approach that operates on the dual problem. By employing k-means clustering for data partitioning and a communication-efficient line search on prediction vectors, PBM achieves massive speedups and linear scalability. Experimental results demonstrate that PBM can train a kernel SVM on datasets with millions of samples in a fraction of the time required by existing methods.
Introduction
Kernel methods are powerful tools for capturing non-linear patterns in data. However, their computational demands grow quadratically with the number of samples ($n$), posing a significant barrier for large-scale applications. While distributed algorithms have successfully scaled linear models by synchronizing model weights (primal variables), this strategy fails for kernel methods because the non-linear mapping can lead to infinite-dimensional feature spaces. Existing distributed kernel solvers often struggle with slow convergence, poor scalability, or accuracy-degrading approximations.
The Parallel Block Minimization (PBM) Framework
The proposed PBM framework addresses these challenges by optimizing the dual problem in a distributed manner. The core of the approach lies in several key innovations:
Smart Partitioning via K-means
Rather than random data distribution, PBM uses k-means clustering to partition the dataset. By grouping similar samples together, the algorithm creates a tighter block-diagonal approximation of the global kernel matrix. This ensures that local subproblems more accurately reflect the global objective, leading to faster convergence with fewer synchronization steps.
Communication-Efficient Synchronization
To avoid the "primal variable trap," PBM synchronizes updates by communicating the effect of local updates on the predictions for all training samples (the $Qd$ vector). This is achieved using an efficient REDUCE_SCATTER operation. A subsequent line search determines the optimal step size to guarantee a decrease in the global objective function.
Parallel Execution and Local Prediction
Each worker machine independently solves its assigned subproblem using optimized sequential solvers like Greedy Coordinate Descent. For inference, a "local prediction" heuristic is employed: test points are assigned to the nearest k-means cluster and predicted using only that cluster's local model. This heuristic has been shown to empirically improve predictive accuracy.
Experimental Evaluation
The authors evaluated PBM across five large-scale datasets, including covtype (464k samples), webspam (280k samples), and mnist8m (8 million samples).
As shown in the figures above, PBM with k-means partitioning (PBM-cluster) converges much faster than random partitioning (PBM-random). On the covtype dataset, PBM reached 96% accuracy in just 20 seconds using 32 machines, whereas competing parallel solvers required over 2,000 seconds to reach similar performance.
Key Results
- Scalability: PBM successfully handled datasets with over 8 million samples (
mnist8mandkdda), tasks that typically take days for single-machine solvers. - Linear Speedup: The framework demonstrated near-perfect linear speedup as the number of processing cores increased from 8 to 64.
- Versatility: The framework is applicable to both Kernel SVM and Kernel Logistic Regression, consistently outperforming existing baselines.
Conclusion and Future Work
PBM represents a significant advancement in distributed kernel learning. By bypassing the need to communicate primal weights and utilizing intelligent data partitioning, it enables the training of high-performance kernel machines on massive datasets.
Despite its success, memory remains a constraint due to the $O(n^2)$ nature of kernel matrices. While LRU caching helps, future work could explore integrating kernel approximation or sketching techniques directly into the PBM framework to further reduce the memory footprint. Additionally, optimizing communication for scenarios where datasets are too large to be fully replicated across machines remains an area for further refinement.
Summary updated