Abstract
Kernel methods are powerful tools for non-linear learning but have historically struggled with scalability, often requiring prohibitive amounts of memory and computational time for large datasets. We present Joker, a joint optimization framework that enables large-scale kernel machines to run on consumer-grade hardware. By combining dual block coordinate descent with a trust-region component and Random Fourier Features (RFF), Joker reduces memory requirements by up to 90% compared to state-of-the-art Nyström-based methods. Crucially, Joker provides a unified engine for a wide array of models, including Support Vector Machines (SVM) and Kernel Logistic Regression (KLR), scaling efficiently to datasets with over 11 million samples.
Introduction
Despite their strong theoretical foundations, kernel machines have long been limited by the "scalability ghost." Standard implementations require $O(n^3)$ operations and $O(n^2)$ memory, making them impractical for datasets with millions of samples. While modern approximations like the Nyström method (e.g., in the Falkon library) have improved training speeds, they have introduced a new bottleneck: extreme memory consumption. Achieving high accuracy on massive datasets often requires over 50GB of RAM, far exceeding the capacity of standard consumer GPUs. Furthermore, most large-scale research has focused narrowly on Kernel Ridge Regression (KRR), neglecting other vital models like SVMs and KLR.
The Joker Framework
Joker is designed to be both lightweight and universal. Its architecture rests on three mathematical pillars:
- Optimization via Duality: By solving the dual problem using Fenchel conjugates, Joker creates a unified mathematical framework. This approach is often better conditioned for kernel machines and allows for the seamless integration of various loss functions (Square, Hinge, Logistic, Huber).
- DBCD-TR (Dual Block Coordinate Descent with Trust Region): This solver updates small subsets of variables to keep computational loads manageable. The trust-region component ensures stability, which is particularly vital for models like KLR where the optimization landscape can become ill-conditioned near boundaries.
- Random Fourier Features (RFF): To avoid the memory trap of Nyström-based preconditioning, Joker utilizes RFF to approximate the kernel. This allows the framework to store a significantly smaller weight vector, enabling execution on a single 10GB GPU.
One of the most elegant aspects of Joker is its versatility. As shown in the table above, KRR, SVM, and KLR are all handled by the same engine; only the feasible region and the specific conjugate function change between tasks.
Experimental Evaluation
The authors evaluated Joker on several massive benchmarks, including the Million Song Dataset (MSD), SUSY (5M samples), and HIGGS (11M samples). The results demonstrate that the traditional memory-accuracy trade-off can be broken.
Key Results
- Massive Memory Savings: On the HIGGS dataset, Joker required only 1.9GB of GPU memory, a stark contrast to the >50GB required by Falkon-based methods.
- Competitive Speed: Joker processed the 11-million-sample HIGGS dataset in approximately one hour on a single consumer GPU (RTX 3080).
- Superiority over Traditional Solvers: Joker is orders of magnitude faster than classic libraries. For the SUSY dataset, Joker finished in 25 minutes, while ThunderSVM required 15 hours.
- Scalability: The framework successfully scaled to the CIFAR-5M dataset, maintaining high accuracy where other kernel methods typically fail to scale due to memory constraints.
Conclusion and Future Work
Joker represents a significant leap forward in making kernel methods accessible for large-scale applications on modest hardware. By unifying diverse models under a single, memory-efficient dual optimization framework, it removes the primary barriers to using SVMs and KLR at scale. Future work will focus on extending the framework to more direct multi-class dual formulations and providing a more rigorous theoretical analysis of the DBCD-TR solver's convergence rates.
Summary updated