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

Large Scale Kernel Learning using Block Coordinate Descent

Stephen Tu, Rebecca Roelofs, Shivaram Venkataraman, Benjamin RechtarXiv 2016

Introduction

Kernel methods are fundamental to machine learning, providing a robust framework for capturing non-linear patterns by mapping data into high-dimensional feature spaces. However, their application to large-scale datasets has historically been hindered by a $O(n^2)$ space and $O(n^3)$ time complexity. For datasets with millions of points ($n \approx 10^6$), the resulting kernel matrix can exceed tens of terabytes, rendering standard solvers impractical.

To mitigate these costs, researchers often resort to approximation techniques such as Random Features (RF) or the Nyström method. While these methods reduce computational overhead, they frequently do so at the expense of statistical accuracy. This work challenges the assumption that full kernel learning is unscalable, demonstrating that distributed block coordinate descent (BCD) can efficiently solve full kernel problems at the scale of millions of points.

Methodology: Distributed Block Coordinate Descent

The core of the proposed approach is a distributed implementation of Block Coordinate Descent (BCD). Rather than attempting to invert a massive matrix globally, BCD updates small blocks of model parameters iteratively.

Parallelization and System Architecture

A key innovation lies in the parallelization strategy. Unlike traditional distributed algorithms that average independent iterations—often leading to high communication overhead—this approach parallelizes a single iteration across the entire cluster. This preserves the strong linear convergence properties of BCD.

To handle the massive memory requirements, the algorithm avoids materializing the full $n \times n$ kernel matrix. Instead, blocks of the matrix are generated on-the-fly, utilized for updates, and subsequently discarded. The system was implemented in Scala on Apache Spark, utilizing a cluster of 128 machines (1024 cores).

Table 1: Computational and communication costs per iteration for full kernel and approximation methods.

As shown in the cost analysis above, the communication overhead is minimized by parallelizing the computation of kernel blocks, which is critical for scaling on modern distributed hardware.

Theoretical Convergence Rates

The authors provide a new theoretical analysis of BCD for strongly convex quadratic functions. They demonstrate that BCD's convergence rate is comparable to gradient descent, with an improvement factor that scales with the block size.

Table 2: Theoretical iteration complexity and required block sizes for different kernel methods under various eigenvalue decay conditions.

The analysis reveals that the Nyström method, while statistically accurate, is "stiffer" than Random Features, requiring more iterations to converge due to poorer conditioning of the underlying system.

Experimental Evaluation

The approach was evaluated on three massive datasets:

  • TIMIT (Speech): 2.25 million training examples for phone classification.
  • Yelp Reviews (Text): 1.25 million reviews for rating prediction.
  • CIFAR-10 (Vision): 500,000 augmented images for classification.

The "Full Kernel" problems for these datasets involved matrices ranging from 2 TB to over 40 TB.

Key Results and Insights

  • Scalability: The conventional wisdom regarding the impracticality of kernel methods at $n=10^6$ is outdated. Distributed BCD solved a 2-million-point problem in just a few hours.
  • Accuracy Gains: On the TIMIT dataset, the full kernel achieved a top-1 test error of 33.51%, outperforming all approximation methods. On CIFAR-10, applying a non-linear kernel to convolutional features yielded a 9.3% accuracy improvement over linear models.
  • Approximation Trade-offs: The Nyström method generally offers better statistical accuracy than Random Features but requires significantly more optimization iterations.
  • Communication Efficiency: By minimizing data movement across the network, the system successfully scaled to 1024 cores.

Limitations and Future Work

While highly effective for square loss (kernel ridge regression), extending this framework to other loss functions like hinge or logistic loss remains a priority, potentially through ADMM. Additionally, incorporating acceleration techniques like Nesterov momentum could further reduce the iteration complexity, particularly for the Nyström method. Future research will also explore optimizing the "regularization path" for these large-scale solvers.

Summary updated

BibTeX
@misc{tu2016large,
  author = {Stephen Tu and Rebecca Roelofs and Shivaram Venkataraman and Benjamin Recht},
  title = {{Large Scale Kernel Learning using Block Coordinate Descent}},
  year = {2016},
  eprint = {1602.05310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1602.05310},
}
Figure