Abstract
Kernel Logistic Regression (KLR) is a powerful classification tool that provides probabilistic outputs, yet its lack of sparsity makes it computationally prohibitive for large-scale datasets. This paper presents "conservative" online learning algorithms that introduce sparsity by selectively updating the model based on stochastic strategies. By employing margin-based and auxiliary function-based update rules, these algorithms achieve significant model compression and speedups while maintaining theoretical generalization error bounds comparable to non-sparse methods.
Introduction
Kernel Logistic Regression (KLR) is often preferred over Support Vector Machines (SVMs) because it naturally handles multi-class problems and provides well-calibrated posterior probabilities. However, KLR suffers from a fundamental scalability issue: it is not sparse. In a standard KLR model, the final classifier is a linear combination of all training examples. As datasets grow to millions of samples, the resulting model becomes incredibly bloated, leading to high memory consumption and slow prediction times.
While online learning—processing examples sequentially—can mitigate memory issues during training, standard online KLR still updates the model for every example, resulting in a "dense" classifier. This research addresses the challenge of maintaining KLR's benefits while forcing model sparsity, ensuring that only a small fraction of the data defines the final classifier.
Conservative Online Learning Algorithms
The authors propose two "conservative" online learning strategies that decide whether to update the model for each new data point using a Bernoulli random variable. This stochastic approach effectively filters out redundant information.
1. Margin-Based Approach
In this approach, the probability of updating the model is inversely related to the classification margin. If the current model is confident and correct about a new example, the update probability is low. Conversely, if the model is uncertain or incorrect, it is more likely to perform an update.
2. Auxiliary Function-Based Approach
This more flexible strategy uses a user-defined auxiliary function to determine the update probability. This allows for explicit control over the trade-off between model sparsity and predictive accuracy. By adjusting parameters such as $\gamma$, practitioners can tune the model's complexity to meet specific hardware or performance constraints.
Crucially, theoretical analysis confirms that these "lazy" update strategies maintain the same generalization error bounds as standard, non-sparse online learning algorithms.
Experimental Evaluation
The proposed algorithms were evaluated on several benchmark datasets from the LIBSVM library, including mushrooms, a9a, ijcnn1, and the large-scale rcv1.binary text dataset.
Key Results
The experiments demonstrated that conservative algorithms significantly reduce the number of support vectors without compromising accuracy.
- Sparsity and Accuracy: On the mushrooms and ijcnn1 datasets, the auxiliary approach matched the accuracy of standard online KLR while using only 20% of the training data as support vectors.
- Computational Efficiency: The proposed methods were approximately 10 times faster than state-of-the-art batch-mode coordinate descent algorithms (PCD and DCD) on the ijcnn1 dataset.
- Large-Scale Performance: On the rcv1.binary dataset (over 677,000 examples), the sparse KLR method performed comparably to Pegasos, a highly optimized online SVM solver, in terms of both accuracy and sparsity, while providing the additional benefit of probabilistic outputs.
Discussion and Future Work
The core insight of this work is that stochasticity can be a powerful tool for achieving sparsity. A probabilistic update rule preserves the statistical properties required for convergence while naturally discarding redundant data points. The ability to tune sparsity through auxiliary functions makes KLR a viable option for deployment on memory-constrained devices.
Future research could explore applying these conservative strategies to other loss functions beyond logit loss, potentially extending the benefits of stochastic sparsity to a wider range of online learning tasks. While the current methods show some sensitivity to parameter tuning and kernel selection, they represent a significant step toward making kernel-based probabilistic models practical for truly massive datasets.
Summary updated