NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Doubly stochastic large scale kernel learning with the empirical kernel map

Nikolaas Steenbergen, Sebastian Schelter, Felix BießmannarXiv 2016

TL;DR

Kernel methods, powerful for modeling complex relationships, struggle with large datasets due to the quadratic growth of the kernel matrix. This paper introduces "doubly stochastic kernel learning," a simple and effective method that scales kernel methods by using random subsampling for both gradient computation and kernel map expansion, allowing them to compete with neural networks on big data.

What Problem Does This Paper Address?

Kernel methods, like Support Vector Machines (SVMs), have historically been a cornerstone of machine learning due to their ability to model non-linear dependencies by implicitly mapping data into a high-dimensional feature space. However, a major bottleneck is the computation and storage of the kernel matrix, which grows quadratically with the number of data points ($N$). This makes traditional kernel methods computationally intractable for "big data" scenarios, where $N$ can be in the millions. Consequently, neural networks, with their more scalable $O(N)$ complexity, have largely taken over in these domains. The paper aims to bridge this gap by enabling kernel methods to effectively handle large datasets without sacrificing their inherent modeling power.

Methods

The core innovation is a "doubly stochastic" optimization approach for kernel learning. Instead of relying on approximations that discard data points or kernel map basis functions, this method uses the entire dataset but introduces randomness in two key places:

  1. Gradient Computation: A random subset of data points ($I$) is sampled to compute a noisy gradient of the dual coefficients.
  2. Kernel Map Expansion: A separate random subset of data points ($J$) is sampled to approximate the empirical kernel map.

This "doubly stochastic" nature means that both the gradient estimate and the kernel map evaluation are noisy. The algorithm alternates between these two sampling steps, performing gradient descent updates. This approach is contrasted with "explicit kernel map" methods (like Random Kitchen Sinks) which approximate the kernel function itself using random Fourier features. The proposed method, "doubly stochastic empirical kernel learning" (DSEKL), leverages the empirical kernel map directly, avoiding the need to explicitly formulate a kernel map approximation. A parallelized version of the algorithm is also presented for shared-memory systems.

Datasets

The paper uses the following datasets for evaluation:

  • Artificial Data: A synthetic XOR problem dataset is generated to benchmark nonlinear classification.
  • Real-World Data: Several standard benchmark datasets from the libsvm homepage are used, including:
  • MNIST
    • Diabetes
    • Breast Cancer
    • Mushrooms
    • Sonar
    • Skin/non-skin
    • Madelon
  • Large-Scale Data: The "covertype" dataset (581,012 data points) is used to evaluate the parallel implementation.

Key Insights and Ideas

  • Leveraging the Full Dataset: The key insight is that by introducing stochasticity in the sampling for gradient and kernel map computation, one can still use the entire dataset effectively, avoiding the data-discarding nature of many previous scaling methods.
  • Simplicity and Parallelizability: The proposed algorithm is remarkably simple to implement and naturally lends itself to parallel execution, a crucial factor for large-scale machine learning.
  • Empirical vs. Explicit Kernel Maps: The paper highlights the trade-offs between approximating the kernel map directly (empirical) versus approximating the kernel function itself (explicit). While explicit methods might have advantages in certain scenarios (e.g., very sparse data), empirical methods have the potential to better model specific data distributions if trained on data.
  • Competitive Performance: The core idea is that by carefully managing the stochasticity, kernel methods can achieve performance comparable to state-of-the-art batch methods and neural networks on large datasets.

Key Results

  • Serial Execution: On small-scale experiments (e.g., the XOR problem with $N=100$), DSEKL achieved performance comparable to batch SVMs as the number of samples for gradient computation ($I$) and kernel map expansion ($J$) increased. In scenarios with very few samples, explicit kernel map approximations (like Random Kitchen Sinks) showed a temporary advantage.
  • Real-World Benchmarks: On several standard benchmark datasets, DSEKL achieved test errors comparable to batch kernel SVMs, with mean ± standard deviation across 10 repetitions. For example, on MNIST, the error was 0.00±0.01 for both DSEKL and batch SVM.
  • Large-Scale Parallel Execution: On the covertype dataset, the parallel implementation demonstrated significant speedups. A linear speedup was observed up to 20 cores, achieving a speedup factor of 16 compared to a single core. The validation error decreased from 51% to about 17% after one pass through the data, converging to 13.34% after 54 epochs.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper mentions hyperparameter optimization (e.g., regularization parameter, RBF scale, step size, minibatch size $I$, and kernel expansion size $J$), finding optimal settings can still be challenging.
  • Comparison Nuances: The authors acknowledge that direct comparisons with explicit kernel map approximations can be difficult due to implementation differences. Future work should investigate when to prefer explicit over empirical kernel map approximations.
  • Distributed Systems: The current implementation is not directly suited for distributed systems like Apache Spark or Flink due to communication overhead. Future work could explore distributed variants that update parameters locally on slaves and aggregate globally less frequently.
  • GPU Acceleration and Streaming: Implementing DSEKL on GPUs for massive parallel computation and adapting it for streaming/online learning settings are suggested future directions.
  • Truncation Schemes: Combining DSEKL with truncation schemes for speeding up predictions at test time is also mentioned as a potential enhancement.

Summary updated

BibTeX
@misc{steenbergen2016doubly,
  author = {Nikolaas Steenbergen and Sebastian Schelter and Felix Bießmann},
  title = {{Doubly stochastic large scale kernel learning with the empirical kernel map}},
  year = {2016},
  eprint = {1609.00585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.00585},
}
Figure