Learning the Kernel for Classification and Regression

Chen Li, Luca Venturi, Ruitu XuarXiv 2017

Abstract

This paper investigates the problem of learning optimal kernel functions through polynomial combinations of base kernels for use in regression and classification tasks. We analyze existing gradient descent algorithms, propose regularized variants (rIIA and rPGD2), and establish theoretical conditions for their convergence. Through numerical experiments on various UCI datasets, we demonstrate that while learning linear combinations of kernels consistently improves performance over uniform baselines, higher-degree polynomial combinations introduce significant optimization instabilities and generalization challenges.

Introduction

In kernel-based learning methods such as Kernel Ridge Regression (KRR) and Support Vector Machines (SVM), the choice of the kernel function is critical. The kernel defines the feature space and the similarity metric, directly dictating the model's ability to capture non-linear relationships. Multiple Kernel Learning (MKL) seeks to automate this choice by learning an optimal combination of several base kernels. While linear MKL is well-understood, this research explores the more complex landscape of polynomial kernel combinations, aiming to determine if increased expressivity translates to better predictive accuracy.

Methodology

Optimization Framework

We focus on optimizing the dual formulation of Kernel Ridge Regression. The study evaluates two primary iterative approaches:

  1. Projection-Based Gradient Descent (PGD): An approach that updates kernel weights and projects them back onto a feasible set.
  2. Interpolated Iterative Algorithm (IIA): A method designed to refine weights through successive interpolation.

To improve stability, we introduce regularized variants (rIIA and rPGD2). Unlike standard methods that use hard constraints on kernel weights ($\mu$), our variants incorporate a regularization term ($\beta||\mu||^2$) directly into the objective function. This modification aims to smooth the optimization landscape and prevent the weights from diverging.

The KRR-SVM Pipeline

Optimizing kernels directly for SVMs is computationally expensive because SVMs lack a closed-form solution at each iteration. To circumvent this, we utilize KRR as a mathematical relaxation of the SVM. We learn the optimal kernel parameters using the KRR framework and subsequently apply the learned kernel to the SVM for classification tasks. This pipeline leverages the efficiency of KRR while maintaining the robust classification performance of SVMs.

Theoretical Insights

The Convergence-Regularization Trade-off

A central finding of our theoretical analysis is the "$\lambda$ Catch-22." We provide a rigorous proof (Proposition 2.3) demonstrating that the convexity of the objective function for polynomial combinations depends heavily on the KRR regularization parameter $\lambda$.

Specifically, for the gradient descent algorithm to guarantee convergence to a global minimum, $\lambda$ must be kept very small. However, a small $\lambda$ reduces the model's ability to generalize, often leading to overfitting. Conversely, increasing $\lambda$ to improve model robustness can turn the objective function concave, causing optimization algorithms to fail or become trapped in local minima.

Generalization Bounds

Using Rademacher complexity, we analyzed the generalization error of polynomial kernel combinations. Our findings suggest that as the degree of the polynomial combination increases, the complexity of the hypothesis space grows at a rate that often outweighs the benefits of the added expressivity, leading to worse generalization compared to linear combinations.

Empirical Results

Regression Performance

Experiments were conducted on several UCI datasets, including Ionosphere, Sonar, and Breast Cancer.

  • Linear Combinations ($d=1$): Learning a linear combination of kernels significantly outperformed the baseline (uniform combination). For instance, on the Ionosphere dataset, MSE improved from ~1.11 (baseline) to ~0.82.
  • Polynomial Combinations ($d=2$): Moving to quadratic combinations generally resulted in a performance drop. On the same Ionosphere data, the MSE rose to 0.94 using the rPGD method, accompanied by higher variance across different data splits.

Classification Performance

When applying KRR-learned kernels to SVM classification, the results were more stable than in pure regression. While linear combinations remained the most reliable, polynomial combinations occasionally showed marginal improvements in specific classification contexts, though they remained highly sensitive to hyperparameter initialization.

Discussion and Future Work

The empirical evidence suggests that while polynomial MKL is theoretically expressive, it is practically difficult to optimize. The sensitivity to the regularization parameter $\lambda$ and the non-convex nature of the objective function present significant hurdles.

Future research should focus on more robust hyperparameter selection strategies. Additionally, we propose exploring manifold optimization—specifically trust-region methods on matrix manifolds—as a potential alternative to projected gradient descent. This approach may provide a more geometrically sound framework for navigating the complex optimization landscapes inherent in quadratic and higher-order kernel learning.

Summary updated

BibTeX
@misc{li2017learning,
  author = {Chen Li and Luca Venturi and Ruitu Xu},
  title = {{Learning the Kernel for Classification and Regression}},
  year = {2017},
  eprint = {1712.08597},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.08597},
}
Figure