Alignment Based Kernel Learning with a Continuous Set of Base Kernels

Arash Afkanpour, Csaba Szepesvari, Michael BowlingarXiv 2011

TL;DR

This paper introduces a novel two-stage kernel learning algorithm that dynamically learns combinations from a continuous set of base kernels without requiring manual discretization. By leveraging a forward-stagewise additive modeling (boosting) framework to maximize centered kernel alignment, the method achieves state-of-the-art classification accuracy while running orders of magnitude faster than existing continuous kernel learning approaches.

What Problem Does This Paper Address?

Kernel-based methods like Support Vector Machines (SVMs) depend heavily on the choice of the kernel function and its hyperparameters (such as the bandwidth $\sigma$ of a Gaussian kernel). Multiple Kernel Learning (MKL) attempts to solve this by learning a combination of base kernels. However, standard MKL algorithms require a predefined, finite dictionary of kernels. This forces practitioners to discretize continuous parameter spaces a priori.

This discretization approach suffers from two major flaws:

  1. The Curse of Dimensionality: If you want to learn a separate bandwidth parameter for each input feature (a multi-dimensional parameter space), the number of required base kernels grows exponentially with the number of dimensions.
  2. Suboptimal Selection: Choosing the discretization grid independent of the data can easily miss the optimal kernel parameters.

While continuous kernel learning methods exist, previous approaches rely on alternating minimization, making them computationally expensive and highly prone to getting trapped in local optima.

Methods

The authors propose Continuous Alignment-based kernel learning (CA), a two-stage approach:

  • Stage 1 (Kernel Learning): The algorithm learns a kernel combination that maximizes the centered kernel alignment metric—a surrogate measure of how well a kernel matrix matches the ideal target matrix ($YY^\top$). Instead of using a fixed grid, it searches over a continuous parameter space.
  • Stage 2 (Predictor Learning): The optimized kernel is passed to a standard supervised learning algorithm (like a soft-margin SVM) to train the final classifier.

To navigate the continuous space efficiently, the authors use Forward-Stagewise Additive Modeling (FSAM), a boosting-style architecture. In each iteration, the algorithm computes the functional gradient of the alignment objective to greedily find the next best base kernel parameter ($\sigma^*$). Crucially, the authors derive a computationally efficient, closed-form expression to determine the optimal step size ($\eta$) for updating the kernel combination.

For high-dimensional parameter spaces, they introduce a regularization term that shrinks coordinate-wise parameters toward their common average, preventing the algorithm from overfitting the alignment metric.

The abbreviations of the evaluated methods are summarized below: List of evaluated kernel learning methods

Table 1: List of the kernel learning methods evaluated in the experiments. The key to the naming of the methods is as follows: CA stands for “continuous alignment” maximization, CR stands for “continuous risk” minimization, DA stands for “discrete alignment”, D1, D2, DU should be obvious.

Datasets

The method was evaluated on both synthetic benchmarks and a massive suite of real-world datasets:

  • Synthetic Data: A 1D frequency discovery problem using Dirichlet kernels, and a 50-dimensional Gaussian classification problem designed to test multi-dimensional parameter search with varying levels of irrelevant features ($\gamma$).
  • MNIST: 8 distinct binary handwritten digit recognition tasks (784 dimensions).
  • UCI Letter Recognition: 12 binary classification tasks distinguishing capital English letters.
  • Miscellaneous Benchmarks: 11 classic datasets from the UCI repository and Delve, including Banana, Breast Cancer, Diabetes, German, Heart, Image Segmentation, Ringnorm, Sonar, Splice, Thyroid, and Waveform.

Key Insights and Ideas

  • Boosting Beats Local Minima: Even though finding the optimal continuous parameter $\sigma^*$ involves solving a non-convex optimization problem (as illustrated by the multiple local minima in the flipped objective function), the boosting framework is incredibly robust. Imperfect local greedy steps still yield excellent global performance.
  • The Danger of "Surrogate Overfitting": The authors discovered that two-stage methods can overfit the first-stage alignment metric. A kernel combination that achieves higher test-set alignment doesn't automatically translate to better classification accuracy unless proper capacity control (regularization) is enforced.
  • Dictionary Quality > Combination Weights: The success of continuous methods over discrete ones suggests that discovering the right dictionary of kernels from the data matters far more than how perfectly you tune the weights of a predefined, mediocre dictionary.

Key Results

  • Top-Tier Accuracy: In both the MNIST and UCI Letter recognition tasks, the 1-dimensional version of the proposed method (CA-1D) achieved a median rank of 1, outperforming discrete MKL variants ($\ell_1$ and $\ell_2$ norms) and uniform kernel combinations.
  • Massive Speedups: Compared to its closest continuous competitor (CR by Argyriou et al.), the proposed method is drastically faster. For instance, on MNIST, CA-1D took 12 seconds compared to CR's 377 seconds. On the Letter dataset, it took 9 seconds versus CR's 590 seconds.
Table 2: Median rank and running time (sec.) of kernel learning methods obtained in experiments.
  • Handling High Dimensions: In the 50-dimensional synthetic problem where the number of irrelevant features increased with $\gamma$, only the multi-dimensional continuous method (CA-nD) successfully adapted, driving down misclassification error while standard 1D methods degraded.
Figure 2: Performance and running time of various methods for a 50-dimensional synthetic problem as a function of the relevance parameter γ. Note that the number of irrelevant features increases with γ. For details of the experiments, see the text.

Limitations and Future Work

  • Non-Convex Greedy Step: The step to find the optimal base kernel parameter $\sigma$ relies on local numerical solvers (fmincon in MATLAB). While empirical results show the objective function is well-behaved, there are no theoretical guarantees against getting stuck in poor local optima for highly complex kernel spaces.
  • Alignment vs. Classification Error: The non-monotonic relationship between alignment optimization and final classification error remains a challenge. Future work is needed to more deeply explore the theoretical implications of this surrogate gap.
  • Hybrid Approaches: The authors suggest that combining continuous dictionary search methods (like CA) with finite-kernel learning algorithms represents a promising, unexplored direction.

Summary updated

BibTeX
@misc{afkanpour2011alignment,
  author = {Arash Afkanpour and Csaba Szepesvari and Michael Bowling},
  title = {{Alignment Based Kernel Learning with a Continuous Set of Base Kernels}},
  year = {2011},
  eprint = {1112.4607},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1112.4607},
}
Figure