Fast Kernel Classifiers with Online and Active Learning

Antoine Bordes, Seyda Ertekin, Jason Weston, Léon Bottou

TL;DR

This paper introduces LASVM, a novel online Support Vector Machine (SVM) algorithm that achieves competitive accuracy with significantly reduced training time and memory usage, even on massive datasets. It also explores active learning strategies to further enhance training speed and model simplicity by intelligently selecting informative training examples.

What Problem Does This Paper Address?

The paper tackles the growing challenge of training complex machine learning models, particularly kernel classifiers like SVMs, on increasingly large datasets. While theory suggests that abundant data can lead to more powerful models, the computational cost of processing and learning from this data becomes a bottleneck. Traditional SVMs, while powerful, can be computationally expensive, especially when dealing with high-dimensional feature spaces implicitly defined by kernel functions. The authors question whether every training example deserves equal attention and explore how to make learning more efficient by focusing computational effort on the most informative examples.

Methods

The core contribution is the LASVM (Online Support Vector Machine) algorithm. LASVM is an online algorithm that processes training examples sequentially and converges to the SVM solution. It's designed to be memory-efficient and faster than traditional SVM solvers by reorganizing the optimization process.

Key aspects of LASVM include:

  • Online Learning: Processes data one example at a time, making it suitable for streaming data and reducing memory requirements.
  • Support Vector Removal: Incorporates a "REPROCESS" step that can remove non-support vectors from the active set, leading to more compact models.
  • PROCESS and REPROCESS: Alternates between two core operations: "PROCESS" to potentially add a new example to the support vector set, and "REPROCESS" to refine the support vector set by removing redundant examples.
  • Active Example Selection: The paper also investigates methods to intelligently select which examples to process. This includes:
  • Gradient Selection: Picks examples that are likely to cause a large increase in the SVM objective function (potentially outliers).
  • Active Selection: Chooses examples closest to the decision boundary, regardless of their labels, inspired by active learning paradigms.
  • Randomized Search: A practical approach for selecting examples in online settings by sampling a small subset and choosing the best according to a criterion.

Datasets

The paper evaluates its methods on several standard datasets:

  • MNIST: A benchmark dataset for handwritten digit recognition, used for evaluating binary classification tasks (digit vs. all others).
  • Adult: A dataset commonly used for classification tasks.
  • Waveform: An artificial dataset.
  • Banana: Another artificial dataset.
  • Reuters: A text classification dataset (topic "moneyfx" vs. rest).
  • USPS: A dataset of handwritten digits.
  • USPS+N: The USPS dataset with added label noise.
  • Forest: A dataset used in previous research.

No new benchmarks were introduced; existing, well-established datasets were used.

Key Insights and Ideas

  • Not all examples are created equal: The core idea is that focusing computational effort on "informative" examples can drastically speed up training and lead to better models, challenging the notion that every data point needs equal processing.
  • Online learning for SVMs is viable and efficient: LASVM demonstrates that an online approach can achieve SVM-level accuracy with significant speedups and reduced memory footprint, making SVMs more scalable.
  • Active learning can yield better models with less data: By intelligently selecting examples, especially those near the decision boundary, algorithms can achieve comparable or better accuracy with fewer support vectors and less training time, even when using only a fraction of the labels.
  • Label noise is a critical factor: The performance of different example selection strategies varies significantly with noisy data, with "Active Selection" proving robust.

Key Results

  • LASVM Speedup: LASVM×1 (one epoch) trained approximately three times faster than LIBSVM (a state-of-the-art SVM solver) on the MNIST dataset, yielding comparable test error rates. LASVM×2 (two epochs) further improved performance.
  • Memory Efficiency: LASVM uses significantly less memory than traditional SVMs, especially when dealing with large datasets.
  • Active Learning Performance: On the "Adult" dataset, ACTIVE and AUTOACTIVE LASVM achieved accuracy comparable to LIBSVM but with substantially fewer support vectors (e.g., 2500 vs. 11278 for AUTOACTIVE). This was achieved with significantly less training time.
  • Robustness to Noise: The ACTIVE example selection strategy was shown to be insensitive to artificial label noise on the MNIST dataset, outperforming other methods under noisy conditions.
  • LASVM vs. Averaged Perceptron: LASVM achieved competitive results after a single epoch, whereas the Averaged Perceptron required many more epochs to reach similar accuracies, at the cost of much longer training times.

Limitations and Future Work

  • Theoretical Understanding: The authors acknowledge that a deeper theoretical understanding of why active example selection improves performance and the scaling laws for support vectors in these new models would be beneficial.
  • Finding the "Sweet Spot": For LASVM, there's a "sweet spot" for the REPROCESS parameter ($\delta_{max}$) that balances performance and speed. Finding this optimal parameter automatically is an area for future work.
  • Modulating REPROCESS: Investigating clever ways to modulate the number of REPROCESS calls during online iterations could further improve convergence speed.
  • Active Example Generation: The idea of using active example selection to drive the generation of new training examples based on known invariances is suggested as a future direction.
  • Convergence Speed: While LASVM converges, the convergence can be slow in practice, especially when using randomized search for example selection. Further investigation into intermediate kernel classifiers visited by the algorithm is suggested.

Summary updated

BibTeX
@article{bordes2005fast,
  author = {Antoine Bordes and Seyda Ertekin and Jason Weston and Léon Bottou},
  title = {{Fast Kernel Classifiers with Online and Active Learning}},
  journal = {J. Mach. Learn. Res.},
  year = {2005},
  url = {https://openreview.net/forum?id=x3NrKdQd2e},
}
Figure