Optimizing for Generalization in Machine Learning with Cross-Validation Gradients

Shane Barratt, Rishi Sharma
5/18/2018
stat.MLcs.LG

Official code: sbarratt/crossval (6 stars, Jupyter Notebook, last commit 2018-05-21).

Abstract

Cross-validation is the workhorse of modern applied statistics and machine learning, as it provides a principled framework for selecting the model that maximizes generalization performance. In this paper, we show that the cross-validation risk is differentiable with respect to the hyperparameters and training data for many common machine learning algorithms, including logistic regression, elastic-net regression, and support vector machines.

Show full abstract

Leveraging this property of differentiability, we propose a cross-validation gradient method (CVGM) for hyperparameter optimization. Our method enables efficient optimization in high-dimensional hyperparameter spaces of the cross-validation risk, the best surrogate of the true generalization ability of our learning algorithm.

View on arXivView PDF

Code Implementations(1)

sbarratt/crossvalOfficial100%

Source code for "Optimizing for Generalization in Machine Learning with Cross-Validation Gradients"

61Jupyter NotebookMay 21, 20188 years ago

Similar Papers

Cite this paper

@article{barratt2018optimizing,
  title  = {Optimizing for Generalization in Machine Learning with Cross-Validation Gradients},
  author = {Shane Barratt and Rishi Sharma},
  year   = {2018},
  eprint = {1805.07072},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.07072}
}

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/1805.07072.svg)](https://codeofpaper.com/paper/1805.07072)

Discussion