Asynchronous Doubly Stochastic Sparse Kernel Learning

Bin Gu, Miao Xin, Zhouyuan Huo, Heng Huang

Abstract

Kernel methods are powerful tools for non-linear modeling but suffer from high computational costs during both training and prediction on large-scale datasets. This paper introduces AsyDSSKL, an algorithm that leverages asynchronous parallel computing and doubly stochastic optimization—sampling both data points and features—to produce sparse, high-performance models. AsyDSSKL scales linearly with CPU cores and can process millions of samples in under a minute, effectively overcoming the traditional "training" and "prediction" walls associated with kernel methods.

Introduction: The Scalability Challenge

Traditional kernel methods, such as Support Vector Machines (SVMs), face significant bottlenecks in the big data era. Training complexity typically scales as $O(l^3)$ with $l$ samples, and storing the kernel matrix requires $O(l^2)$ space. Furthermore, the "prediction wall" arises because model size often grows linearly with the number of support vectors, making real-time inference prohibitively slow. While Random Feature Approximation offers a path forward by mapping kernels into finite-dimensional spaces, existing solvers often lack the necessary sparsity for fast prediction or the efficient parallelization required for rapid training.

Methodology

AsyDSSKL addresses these challenges through a multi-faceted architectural approach:

  1. Random Feature Approximation: Kernels are approximated using random features, transforming the problem into a linear optimization task in a high-dimensional space.
  2. Doubly Stochastic Optimization: The algorithm samples both mini-batches of data points and specific coordinates/features at each step. It utilizes Stochastic Variance Reduced Gradient (SVRG) to accelerate convergence.
  3. Asynchronous Parallelism: Implementing a lock-free "Hogwild!"-style approach, multiple threads read and write to a global weight vector simultaneously on shared-memory systems. This maximizes hardware utilization by preventing thread idling.
  4. Sparsity via $\ell_1$-regularization: An $\ell_1$-norm penalty is applied to enforce sparsity, ensuring the model ignores irrelevant random features. This results in a compact model optimized for rapid inference.

Experimental Evaluation

The authors evaluated AsyDSSKL on six large-scale datasets, covering binary classification (Covtype_B, RCV1, SUSY) and regression (Covtype_M, MNIST, Aloi). Notably, multi-class datasets like MNIST were treated as regression tasks for this evaluation.

Key Results and Insights

Training Efficiency and Accuracy

AsyDSSKL demonstrates superior convergence speed compared to state-of-the-art baselines such as LIBSVM and DoubleSGD. On the SUSY dataset (5 million samples), the algorithm reached high accuracy in under 60 seconds, significantly outperforming traditional methods.

Performance comparison of AsyDSSKL against baselines across various datasets.

Scalability and Parallel Performance

A core strength of AsyDSSKL is its ability to utilize multi-core architectures effectively. The algorithm exhibits near-linear speedup as the number of CPU cores increases, confirming that the asynchronous, lock-free design successfully mitigates computational bottlenecks.

Speedup of AsyDSSKL relative to the number of CPU cores.

Inference Speed

By enforcing model sparsity, AsyDSSKL significantly reduces testing time. On the Covtype datasets, it outperformed all non-sparse methods in prediction speed, addressing the "prediction wall" directly.

Discussion and Future Directions

While AsyDSSKL excels in shared-memory environments, extending it to distributed systems remains a challenge due to potential communication overhead. Additionally, performance is sensitive to hyperparameters like steplength and the number of random features. Future work may focus on adaptive feature selection to further improve the quality of kernel approximations.

Summary updated

BibTeX
@inproceedings{gu2018asynchronous,
  author = {Bin Gu and Miao Xin and Zhouyuan Huo and Heng Huang},
  title = {{Asynchronous Doubly Stochastic Sparse Kernel Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11803},
}
Figure