Kernel Matching Pursuit

Pascal Vincent, Yoshua Bengio

Abstract

Kernel Matching Pursuit (KMP) adapts a classic signal-processing technique to create kernel-based machine learning models. It offers a flexible, greedy alternative to Support Vector Machines (SVMs) that allows for direct control over model sparsity, often achieving comparable accuracy to SVMs while using significantly fewer support vectors. By decoupling model complexity from the regularization parameter and removing the requirement for Mercer kernels, KMP provides a versatile framework for non-linear learning.

Introduction

In the early 2000s, Support Vector Machines (SVMs) were the gold standard for kernel-based learning. However, they came with two specific "rigidities." First, they offer only indirect control over sparsity; the number of support vectors is an emergent byproduct of the regularization parameter $C$, making it impossible to specify a fixed budget of points. Second, SVMs rely on the "kernel trick," which requires kernels to be symmetric and positive definite (Mercer’s condition).

Pascal Vincent and Yoshua Bengio introduced Kernel Matching Pursuit to address these limitations. Their framework provides the same non-linear power as SVMs but with direct control over sparsity and the freedom to use any similarity measure as a kernel, even those that do not satisfy Mercer's conditions.

The KMP Framework

The algorithm builds on Matching Pursuit (MP), originally a signal-processing method for decomposing signals into a sum of "waveforms" chosen from a large dictionary. In the machine learning context, the dictionary $D$ consists of kernel functions centered on training points: $D = \{K(\cdot, x_i)\}$.

KMP employs a greedy optimization strategy, starting with an empty model and iteratively adding the kernel function from the dictionary that best reduces the residual error. The authors describe three primary variations:

  1. Basic MP: Adds a new function and optimizes only its weight.
  2. Back-fitting: Adds a new function, then re-optimizes the weights of all previously selected functions.
  3. Pre-fitting: The most sophisticated version; it chooses the next function by calculating what the total error would be if all weights were re-optimized simultaneously.
Geometric representation of a single Matching Pursuit step, illustrating the projection of a candidate basis function to reduce the residual error.

As shown in the geometric interpretation above, the algorithm seeks to minimize the residual $R_n$ by selecting a candidate function $\vec{g}$ whose projection $P_{B_n}\vec{g}$ most effectively moves the current approximation $\vec{f_n}$ toward the target $\vec{y}$. While MP traditionally uses squared error, the authors extended it to any differentiable loss function by using gradient descent in function space—a technique closely related to Boosting.

Experimental Results and Insights

The authors evaluated KMP against SVMs using artificial 2D data, the USPS handwritten digits benchmark, and several UCI datasets.

Comparable Accuracy and Superior Sparsity

On the USPS digit dataset and UCI benchmarks, KMP achieved error rates statistically indistinguishable from SVMs. However, KMP consistently produced much smaller models. For example, on the Wisconsin Breast Cancer dataset, SVMs used an average of 42 support vectors, while KMP-MSE achieved similar accuracy using only 7.

This efficiency stems from the fact that KMP support vectors can be located anywhere in the input space to best describe the decision surface. In contrast, SVM support vectors are constrained to lie near the decision boundary (the margin).

Flexibility and Robustness

Because KMP works directly in the input space rather than implicitly in a high-dimensional Hilbert space, it can utilize asymmetrical or non-positive-definite kernels. Furthermore, while squared-error KMP can be sensitive to outliers, the authors demonstrated that using a tanh loss function (KMP-tanh) successfully mitigates this, mimicking the robust behavior of SVM margins.

Conclusion

Kernel Matching Pursuit serves as a bridge between signal processing, boosting, and kernel methods. By treating the number of support vectors as a primary capacity-control parameter, it allows practitioners to stop adding kernels when validation performance plateaus. While future work is needed to develop formal generalization bounds and optimize computational complexity for massive datasets, KMP remains a powerful alternative for building highly sparse, non-linear models.

Summary updated

BibTeX
@article{vincent2002kernel,
  author = {Pascal Vincent and Yoshua Bengio},
  title = {{Kernel Matching Pursuit}},
  journal = {Machine Learning},
  year = {2002},
  doi = {10.1023/a:1013955821559},
}
Figure