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

A Distributed Algorithm for Training Nonlinear Kernel Machines

Sundararajan Sellamanickam, Dhruv Mahajan, S. Sathiya Keerthi, S. SundararajanarXiv 2014

Abstract

Kernel machines are powerful tools for capturing nonlinear patterns but suffer from quadratic scaling costs. This paper introduces a distributed algorithm that trains these models on millions of examples using a reformulated Nyström approximation. By eliminating the $O(m^3)$ matrix inversion bottleneck and implementing an efficient AllReduce communication structure on Hadoop, the proposed method outperforms existing parallel solvers in both speed and accuracy on large-scale benchmarks like MNIST8m.

Introduction

Nonlinear kernel machines, such as Support Vector Machines (SVMs), are widely used for complex classification tasks. However, their computational complexity—typically $O(n^2)$ or $O(n^3)$ relative to the number of training points $n$—makes them difficult to scale to modern "big data" regimes. While the Nyström method provides a popular approximation by using $m$ basis points, it introduces its own bottleneck: the requirement to compute a pseudo-inverse, which scales as $O(m^3)$. This paper addresses these challenges through a mathematical reformulation and a distributed optimization framework.

Methodology

A Better Reformulation

Traditional Nyström-based solvers often rely on a "linearized" formulation that requires an explicit matrix inversion of the basis point kernel. The authors propose a new formulation that defines the objective function directly in terms of the basis points. This shift allows the optimization to proceed without ever calculating a global pseudo-inverse.

Comparison of training times and inversion overhead between Formulation (3) and the proposed Formulation (4) as the number of basis points $m$ increases.

As shown in the table above, as the number of basis points $m$ grows, the time spent on matrix inversion (Fraction of time for $A$) in the traditional Formulation (3) increases dramatically, reaching nearly 30% of total training time for $m=10,000$. The proposed Formulation (4) avoids this overhead entirely, resulting in significantly lower total training times as the model scales.

Optimization and Communication

The resulting optimization problem is solved using the Trust Region Newton (TRON) method. TRON is well-suited for distributed environments because its most demanding operations—calculating gradients and Hessian-vector products—can be decomposed into parallelizable matrix-vector multiplications.

To overcome the high latency of standard Map-Reduce "shuffles," the authors implemented an AllReduce tree. This structure allows nodes to aggregate gradients and update model parameters with much lower overhead than traditional Hadoop workflows, making iterative learning feasible on commodity clusters.

Experimental Evaluation

The algorithm was tested on several large-scale datasets, including Vehicle, Covtype, CCAT, and the 8-million-example MNIST8m dataset.

Performance on MNIST8m

On the MNIST8m dataset, the proposed method demonstrated significant advantages:

  • Efficiency: Running on 200 nodes, the algorithm completed training in 8,779 seconds.
  • Competitive Comparison: It outperformed P-packsvm, which required 12,880 seconds on a larger 512-node cluster.
  • Accuracy: The method achieved a test accuracy of 0.9963, surpassing the 0.9948 achieved by P-packsvm.

Key Insights

  • Scalability of Basis Points: For difficult datasets, a large number of basis points (up to 10% of $n$) is often necessary. The proposed reformulation is the first to make such large values of $m$ computationally practical.
  • Basis Point Selection: While K-means is a common strategy for selecting basis points, the authors found that simple random selection is equally effective when $m$ is large, significantly reducing preprocessing time.
  • Communication Bottlenecks: The study highlights that in distributed iterative learning, communication latency is often a greater hurdle than the underlying mathematics. The AllReduce implementation proved critical for maintaining near-linear speedup.

Conclusion

By rethinking the mathematical foundation of Nyström approximations and optimizing the communication layer for distributed environments, this work provides a scalable path for training high-performance nonlinear models. Future work will focus on further reducing communication latency and automating hyperparameter tuning within the distributed framework.

Summary updated

BibTeX
@misc{sellamanickam2014distributed,
  author = {Sundararajan Sellamanickam and Dhruv Mahajan and S. Sathiya Keerthi and S. Sundararajan},
  title = {{A Distributed Algorithm for Training Nonlinear Kernel Machines}},
  year = {2014},
  eprint = {1405.4543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1405.4543},
}
Figure