Bandwidth Selection for Gaussian Kernel Ridge Regression via Jacobian Control

Oskar Allerbo, Rebecka Jörnsten
5/24/2022
stat.MLcs.LGstat.ME

Official code: allerbo/jacobian_bandwidth_selection (0 stars, Python, CC0-1.0, last commit 2023-12-01).

Abstract

Most machine learning methods require tuning of hyper-parameters. For kernel ridge regression with the Gaussian kernel, the hyper-parameter is the bandwidth.

Show full abstract

The bandwidth specifies the length scale of the kernel and has to be carefully selected to obtain a model with good generalization. The default methods for bandwidth selection, cross-validation and marginal likelihood maximization, often yield good results, albeit at high computational costs. Inspired by Jacobian regularization, we formulate an approximate expression for how the derivatives of the functions inferred by kernel ridge regression with the Gaussian kernel depend on the kernel bandwidth. We use this expression to propose a closed-form, computationally feather-light, bandwidth selection heuristic, based on controlling the Jacobian. In addition, the Jacobian expression illuminates how the bandwidth selection is a trade-off between the smoothness of the inferred function and the conditioning of the training data kernel matrix. We show on real and synthetic data that compared to cross-validation and marginal likelihood maximization, our method is on pair in terms of model performance, but up to six orders of magnitude faster.

View on arXivView PDF

Code Implementations(1)

CC0-1.0
00Python, ShellMay 24, 20223 years agoCC0-1.0

Similar Papers

Cite this paper

@article{allerbo2022bandwidth,
  title  = {Bandwidth Selection for Gaussian Kernel Ridge Regression via Jacobian Control},
  author = {Oskar Allerbo and Rebecka Jörnsten},
  year   = {2022},
  eprint = {2205.11956},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11956}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.11956.svg)](https://codeofpaper.com/paper/2205.11956)

Discussion