Multi-Class Pegasos on a Budget

Zhuang Wang, Koby Crammer, Slobodan VuceticICML 2010

This paper tackles one of the most persistent headaches in kernel-based machine learning: the "curse of kernelization." The authors introduce BPegasos$^M$, a budgeted multi-class version of the popular Pegasos algorithm. By using clever maintenance strategies like merging and projecting support vectors, the algorithm maintains high accuracy while keeping memory and computation time constant, even as training data streams in indefinitely.

The Problem: The Curse of Kernelization

Online learning is essential for processing massive data streams where you can only look at each example once. When you combine online learning with kernel methods (which allow models to learn complex, non-linear boundaries), you run into a major scaling issue.

Standard kernelized algorithms, like the Perceptron or Support Vector Machines (SVMs), store a subset of training examples called Support Vectors (SVs). In a noisy or complex data stream, the number of SVs grows without bound. This "curse of kernelization" means that as time goes on, the model becomes slower and consumes more memory, eventually crashing the system or becoming too slow for real-time use. This paper seeks to "budget" the model, forcing it to stay within a fixed size without sacrificing predictive power.

The Solution: BPegasos$^M$

The authors build upon Pegasos (Primal Estimated sub-Gradient SOlver for SVM), an efficient stochastic sub-gradient descent algorithm. Their contribution is two-fold:

  1. Multi-Class Extension: They extend the binary Pegasos algorithm to handle multi-class problems using the Crammer-Singer SVM formulation.
  2. Budget Maintenance: When the number of SVs exceeds a pre-defined budget $B$, the algorithm triggers a maintenance step to reduce the count back to $B$. They explore three strategies:
  3. Removal: Simply deleting the "least important" SV (the one with the smallest norm).
  4. Projection: Projecting the SV to be removed onto the space spanned by the remaining SVs to minimize model degradation.
  5. Merging: Combining two existing SVs into a single new one. This is the most sophisticated method, particularly effective when using Gaussian kernels.

Theoretically, the authors prove that the gap between their budgeted model and the optimal (unconstrained) solution is directly tied to the "model degradation" caused by these maintenance steps.

Key Insights

  • Maintenance as Gradient Error: The authors cleverly frame budget maintenance as a source of error in the gradient descent process. This allows them to use existing convergence proofs for "noisy" gradients to guarantee that the budgeted algorithm will still behave well.
  • Merging > Removal: Merging two support vectors is significantly more powerful than simply deleting one. By creating a new "synthetic" support vector that captures the information of two old ones, the model loses much less information.
  • The Efficiency Paradox: In several experiments, the budgeted version actually achieved higher accuracy than the non-budgeted version. Because the non-budgeted version became so slow that it had to be stopped early, the budgeted version could process the entire multi-million-example stream in a fraction of the time.
Accuracy and training time on the Waveform dataset

Key Results

The researchers evaluated their approach on five diverse datasets: USPS (10 classes), Letter (26 classes), Covertype (7 classes, 0.5M samples), Waveform (3 classes, 2M samples), and Checkerboard (2 classes, 10M samples).

  • Real-world Performance: As seen in the Waveform data experiment above, the merging strategy (Mrg) finished training in just 360 seconds. The non-budgeted version was still running after 3,000 seconds, had only processed a small portion of the data (54K SVs), and had to be stopped early.
  • Computational Speed: The runtime of the budgeted algorithms scales linearly with the number of training examples ($O(N)$), whereas the non-budgeted version scales quadratically ($O(N^2)$).
  • Accuracy: BPegasos$^M$ with merging or projection consistently outperformed simpler methods like random removal or "smallest coefficient" removal.
Accuracy comparison across datasets and budget sizes

As detailed in the results table, merging (BP$^M$+MRG) shines on complex tasks. For instance, on the Letter dataset, merging achieved 89.5% accuracy with a budget of 500, while random removal (BP$^M$+RAND) struggled at 68.1%.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Parameter Tuning: The performance is sensitive to the budget size $B$ and the slack parameter $\lambda$. Choosing these requires some prior knowledge or cross-validation.
  • Kernel Specificity: The merging math is specifically optimized for the Gaussian (RBF) kernel. While the general framework applies to others, the "merging" logic would need to be re-derived for different kernel types.
  • Fixed Budget: The budget is currently static. Future work could explore "adaptive budgets" that grow or shrink based on the complexity of the incoming data stream.

Summary updated

BibTeX
@inproceedings{wang2010multi,
  author = {Zhuang Wang and Koby Crammer and Slobodan Vucetic},
  title = {{Multi-Class Pegasos on a Budget}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure