Random Binary Mappings for Kernel Learning and Efficient SVM

Gemma Roig, Xavier Boix, Luc Van GoolarXiv 2013

Abstract

Traditional non-linear kernels in Support Vector Machines (SVMs) offer high accuracy but suffer from significant computational overhead at test time. This paper introduces Multiple Binary Kernel Learning (MBKL), a framework that constructs custom kernels from a weighted ensemble of thousands of simple, randomized binary decision stumps. MBKL bridges the gap between the performance of non-linear kernels and the efficiency of linear SVMs by learning an explicit non-linear mapping that is both sparse and data-adaptive.

Introduction

The "kernel trick" is fundamental to SVM performance, allowing data to be mapped into high-dimensional spaces where linear separation is possible. However, selecting the optimal kernel (e.g., RBF or $\chi^2$) is often a manual, trial-and-error process. Furthermore, non-linear kernels scale poorly with the number of support vectors, making them unsuitable for real-time applications or massive datasets. Multiple Kernel Learning (MKL) attempts to automate this but often results in models that are too slow for practical use.

The MBKL Framework

The authors propose a "Multiple Binary Kernel Learning" (MBKL) approach that uses a massive committee of simple "stumps" instead of a single complex kernel.

  1. Random Decision Stumps: Thousands of stumps are generated by selecting a random feature dimension and a random threshold.
  2. Binary Base Kernels: Each stump acts as a binary classifier. If two images fall on the same side of a stump's threshold, the kernel value is 1; otherwise, it is 0.
  3. Explicit Mapping: These stumps define an explicit non-linear mapping into a high-dimensional binary space.

Learning the Kernel Weights

The final kernel is a weighted sum of these binary kernels. The weights are learned using a multi-stage process designed for efficiency. Initially, a "myopic" heuristic (Stage 0) provides a fast estimate of stump utility based on class distribution. This is followed by $\ell_1$-regularization (Stage 1) to select a sparse subset of the most informative stumps.

Heuristic logic for the initial 'myopic' weight estimation (Stage 0).

Experimental Evaluation

The authors evaluated MBKL across diverse computer vision benchmarks, including Daimler (pedestrian detection), Flowers17, and a subset of ImageNet.

Comparison of the learned MBKL kernel with the standard $\chi^2$ distance on the Flowers17 dataset. (a) Correlation between MBKL and $\chi^2$ distances. (b, c) Visualization of the kernel matrices.

As illustrated in the figure above, the learned MBKL kernel (c) effectively approximates the structure of the $\chi^2$ distance (a). Crucially, because MBKL provides an explicit mapping, it can be evaluated as a linear SVM at test time, offering significant speedups over traditional kernel-based methods.

Key Results

  • Accuracy: MBKL consistently matched or exceeded the performance of hand-tuned $\chi^2$ kernels. For example, on the Daimler dataset, it achieved 96.3% accuracy compared to 96.2% for $\chi^2$.
  • Efficiency: On the Flowers17 dataset, the sparsity induced by $\ell_1$ regularization made MBKL even faster than a standard linear SVM by discarding non-informative feature components.
  • Scalability: The two-stage learning process successfully handled large-scale data on ImageNet, where traditional MKL methods often fail due to computational complexity.

Conclusion

MBKL offers a powerful and scalable alternative to manual kernel engineering. By leveraging the aggregate power of simple binary stumps, it provides the accuracy of non-linear SVMs at the computational cost of linear ones, making it ideal for large-scale image classification tasks.

Summary updated

BibTeX
@misc{roig2013random,
  author = {Gemma Roig and Xavier Boix and Luc Van Gool},
  title = {{Random Binary Mappings for Kernel Learning and Efficient SVM}},
  year = {2013},
  eprint = {1307.5161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1307.5161},
}
Figure