Abstract
Choosing the right kernel is a critical step for kernel-based machine learning, yet traditional methods like cross-validation or Multiple Kernel Learning (MKL) are computationally intensive. This paper introduces Online Kernel Selection (OKS), an efficient algorithm that identifies the optimal kernel on the fly. By sampling only one kernel per training example, OKS achieves state-of-the-art accuracy at a fraction of the time required by batch methods.
Introduction
Kernel methods, such as Support Vector Machines (SVMs), are powerful tools for identifying non-linear patterns in data. However, their efficacy is strictly dependent on the choice of the kernel function. Selecting an inappropriate kernel often leads to model failure.
Conventional approaches to kernel selection include:
- Cross-Validation: Training separate models for every candidate kernel and selecting the best performer. This process is prohibitively slow, especially with large kernel pools.
- Multiple Kernel Learning (MKL): Learning an optimal combination of multiple kernels simultaneously. While effective, MKL scales poorly due to the need to compute and store massive kernel matrices for every candidate before training begins.
This research addresses the challenge of identifying a high-performing kernel from a large pool without the massive computational overhead of batch processing.
The Online Kernel Selection (OKS) Framework
The authors propose the Online Kernel Selection (OKS) framework, which processes data examples sequentially rather than in batch. Key components of the algorithm include:
- The Sampling Trick: Instead of updating every kernel-based predictor at each step, the algorithm uses a probability distribution to sample just one kernel for testing and updating. This significantly reduces per-step computation.
- Unbiased Estimates: To mitigate the randomness of sampling, the algorithm employs techniques from multi-armed bandit literature. By dividing the loss and gradient by the sampling probability, it creates an unbiased estimate of true performance.
- Exploitation vs. Exploration: OKS maintains weights for each kernel, primarily selecting those that have performed well (exploitation) while maintaining a smoothing parameter ($\delta$) to ensure occasional testing of less-used kernels (exploration).
- Optimization for Hinge Loss: A specialized version for binary classification updates only when the sampled kernel misclassifies an instance, further accelerating real-world categorization tasks.
Experimental Setup
The OKS approach was evaluated on two prominent image classification benchmarks: Pascal07 and Corel5k. For both datasets, 15 types of image features (e.g., Gist descriptors, color histograms) were extracted. Four types of kernels (linear, polynomial, chi-square, and Gaussian) were applied to each feature, resulting in a total pool of 60 candidate kernels.
Results and Discussion
The experimental results highlight significant gains in both efficiency and stability.
Efficiency and Accuracy
On the Pascal07 "animal vs. vehicle" task, the batch MKL method (SIPMKL) required 53 hours to complete. In contrast, OKS-SVM (OKS followed by a final SVM pass) took approximately 2 minutes (0.033h). Despite this speedup, OKS-SVM achieved an accuracy of 86.75%, comparable to the 88.18% achieved by the exhaustive "MuSVM" method.
Stability and Kernel Identification
Compared to other stochastic online methods like SOM, OKS demonstrated significantly lower variance, indicating higher reliability across random runs. Furthermore, OKS successfully identified the chi-square kernel as a top performer for image features, aligning with established empirical wisdom in computer vision.
Theoretical Performance
Unlike previous online MKL methods with multiplicative regret bounds, OKS achieves an additive regret bound of $O(\sqrt{T})$. This ensures that as the number of samples ($T$) increases, the performance of the selected kernel converges toward that of the best possible kernel in the pool.
Conclusion
OKS provides a scalable and efficient solution for kernel selection in large-scale machine learning tasks. By avoiding the "memory explosion" of traditional MKL and the time-intensive nature of cross-validation, it opens doors for real-time applications.
Future work includes extending the framework to multi-class problems and relaxing the independent and identically distributed (i.i.d.) assumption to better handle non-stationary streaming data. The authors also suggest exploring the algorithm's performance on a broader range of prediction tasks beyond image classification.
Summary updated