Kernels as features: On kernels, margins, and low-dimensional mappings

Maria-Florina Balcan, Avrim Blum, Santosh S. VempalaMachine Learning 2006

Abstract

The "Kernel Trick" is a fundamental technique in machine learning that enables algorithms to operate in high-dimensional feature spaces implicitly. However, this often necessitates the use of specific kernelized algorithms, such as Support Vector Machines (SVMs). This paper investigates whether the representational power of a kernel can be explicitly extracted into a low-dimensional feature space. We demonstrate that if a kernel function provides a large-margin separator in a high-dimensional space, it is possible to efficiently transform this "black-box" kernel into a simple set of explicit features using a small sample of unlabeled data. We propose three mapping techniques—Similarity, Orthogonal, and Two-Stage mappings—and provide theoretical bounds showing that a dimensionality of $\tilde{O}(1/\gamma^2)$ is sufficient to preserve separability. Our experimental results on synthetic and UCI datasets confirm that linear classifiers operating on these distilled features achieve performance parity with full Kernel SVMs.

Introduction

In modern machine learning, kernels allow for the exploration of complex, non-linear relationships by mapping data into high-dimensional (or even infinite-dimensional) Hilbert spaces. While powerful, the reliance on the "Kernel Trick" locks practitioners into a subset of algorithms that can be expressed solely in terms of inner products. The Johnson-Lindenstrauss (JL) lemma provides a theoretical silver lining: if data is separable by a margin $\gamma$ in a high-dimensional space, there exists a mapping to a much lower-dimensional space (roughly $1/\gamma^2$ dimensions) that preserves this separability.

The challenge lies in the fact that the JL lemma typically assumes knowledge of the explicit mapping $\phi(x)$. In many applications, we only have access to a "black-box" kernel function $K(x, y) = \langle \phi(x), \phi(y) \rangle$. This paper addresses the fundamental question: How can we efficiently find a low-dimensional, explicit feature mapping using only black-box kernel access?

Methodology

The authors propose three primary mapping techniques that leverage a small sample of unlabeled data from the underlying distribution $D$ to construct the feature space.

1. The Similarity Mapping ($F_1$)

The most straightforward approach involves selecting $d$ random unlabeled points $x_1, \dots, x_d$ from the distribution. These points act as "landmarks." The features for any new point $x$ are defined by its kernel similarity to these landmarks: $$F_1(x) = (K(x, x_1), \dots, K(x, x_d))$$ This mapping effectively uses the kernel's similarity measure as a direct coordinate system.

2. The Orthogonal Mapping ($F_2$)

To improve upon the basic similarity mapping, the $F_2$ approach performs an orthogonal projection into the subspace spanned by the landmark points. By decomposing the kernel matrix of the unlabeled samples using the Moore-Penrose pseudoinverse, the authors ensure that the resulting features are orthonormal. This refinement better preserves the margin $\gamma$ compared to the raw similarity scores of $F_1$.

3. The Two-Stage Mapping ($F_3$)

For applications requiring extreme dimensionality reduction, the authors introduce a two-stage process. First, the $F_2$ mapping is applied to project the data into a manageable intermediate space. Second, a standard JL random projection is applied to further reduce the dimensionality to a logarithmic dependence on the error rate $\epsilon$.

Theoretical Insights

A key contribution of this work is the realization that kernels are essentially distribution-dependent features. The authors provide a lower bound proof demonstrating that for an arbitrary "black-box" kernel, it is impossible to find a margin-preserving mapping without access to the data distribution $D$. This "oblivious" mapping failure occurs because a "poisoned" kernel can hide margin information in a way that only becomes visible when the location of data points is known.

Furthermore, the research emphasizes that the margin $\gamma$ is the primary determinant of the distilled space's complexity. If a large margin exists, the required dimensionality for an explicit feature space is surprisingly small, regardless of the complexity of the original input space or the kernel's implicit dimensionality.

Experimental Results

The proposed mappings were evaluated on synthetic datasets (featuring elliptical and hyperbolic boundaries) and several UCI Machine Learning Repository datasets, including Breast Cancer, Ionosphere, and IRIS.

The results demonstrate remarkable efficiency. On the IRIS 1VS23 task, the $F_2$ mapping using only 10 unlabeled landmark points allowed a linear SVM to achieve a 0.000 error rate, perfectly matching the performance of a full Kernel SVM. Additionally, the explicit nature of these features allowed the use of non-kernel algorithms like Balanced Winnow. On synthetic datasets, the $F_2$ + Winnow combination achieved an error rate of 0.004, nearly identical to the 0.000 achieved by the full SVM.

Conclusion

This paper provides a bridge between the implicit power of kernels and the efficiency of explicit feature representations. By showing that kernels can be "distilled" into low-dimensional spaces using unlabeled data, the authors open the door for applying a wider range of linear algorithms to problems previously reserved for kernel methods. While the necessity of data distribution access for arbitrary kernels is proven, future work remains to determine if "natural" kernels (like RBF or Polynomial) might allow for distribution-independent mappings.

Summary updated

BibTeX
@article{balcan2006kernels,
  author = {Maria-Florina Balcan and Avrim Blum and Santosh S. Vempala},
  title = {{Kernels as features: On kernels, margins, and low-dimensional mappings}},
  journal = {Machine Learning},
  year = {2006},
  doi = {10.1007/s10994-006-7550-1},
}
Figure