Skip to main content
QUICK REVIEW

[Paper Review] The Theory Behind Overfitting, Cross Validation, Regularization, Bagging, and Boosting: Tutorial

Benyamin Ghojogh, Mark Crowley|arXiv (Cornell University)|May 28, 2019
Domain Adaptation and Few-Shot LearningComputer Science149 citations
TL;DR

This tutorial explains the theory behind overfitting, cross validation, regularization, bagging, and boosting, using SURE and bias-variance analysis across regression and classification.

ABSTRACT

In this tutorial paper, we first define mean squared error, variance, covariance, and bias of both random variables and classification/predictor models. Then, we formulate the true and generalization errors of the model for both training and validation/test instances where we make use of the Stein's Unbiased Risk Estimator (SURE). We define overfitting, underfitting, and generalization using the obtained true and generalization errors. We introduce cross validation and two well-known examples which are $K$-fold and leave-one-out cross validations. We briefly introduce generalized cross validation and then move on to regularization where we use the SURE again. We work on both $\\ell_2$ and $\\ell_1$ norm regularizations. Then, we show that bootstrap aggregating (bagging) reduces the variance of estimation. Boosting, specifically AdaBoost, is introduced and it is explained as both an additive model and a maximum margin model, i.e., Support Vector Machine (SVM). The upper bound on the generalization error of boosting is also provided to show why boosting prevents from overfitting. As examples of regularization, the theory of ridge and lasso regressions, weight decay, noise injection to input/weights, and early stopping are explained. Random forest, dropout, histogram of oriented gradients, and single shot multi-box detector are explained as examples of bagging in machine learning and computer vision. Finally, boosting tree and SVM models are mentioned as examples of boosting.

Motivation & Objective

  • Define mean squared error, variance, covariance, and bias for random variables and models.
  • Distinguish true vs. generalization errors using Stein’s Unbiased Risk Estimator (SURE).
  • Introduce cross validation (K-fold and leave-one-out) and generalized cross validation; discuss regularization.
  • Explain regularization (ridge and lasso) and its impact on model complexity.
  • Describe bagging and boosting, including AdaBoost, and relate boosting to SVM/maximum margin ideas.
  • Provide examples of regularization and ensemble methods in ML and computer vision.

Proposed method

  • Formulate true and generalization errors for training and validation/test data using SURE.
  • Derive and relate bias, variance, and MSE for estimators (including ensemble models).
  • Present K-fold and LOOCV procedures with definitions of training/test splits and cheating warnings.
  • Introduce generalized cross validation and regularization via SURE for both ℓ2 and ℓ1 norms.
  • Explain variance reduction via bagging and connect boosting to additive models and SVM concepts.
  • Discuss practical regularization techniques (ridge, lasso, weight decay, early stopping, noise injection) and ensemble methods (random forests, dropout, histogram of oriented gradients, single shot multi-box detector).

Experimental results

Research questions

  • RQ1What are the true vs. generalization errors for training and test data, and how can SURE be used to unbiasedly estimate them?
  • RQ2How do bias, variance, and MSE relate in regression and classification settings, including ensemble methods?
  • RQ3How do cross validation strategies (K-fold, LOOCV) help prevent overfitting and select model complexity?
  • RQ4What roles do regularization, bagging, and boosting play in controlling model complexity and generalization?
  • RQ5What are practical interpretations and bounds that explain why boosting can prevent overfitting?

Key findings

  • Definitions and relationships among mean squared error, variance, and bias for both random variables and models are presented.
  • SURE provides a framework to connect training and true errors, enabling analysis of overfitting and regularization effects.
  • K-fold and leave-one-out cross validation are formalized with guidance on data splits and potential cheating scenarios.
  • Bagging is shown to reduce estimator variance, with examples spanning random forests, dropout, and CV techniques in ML/CV.
  • Boosting is discussed as both an additive model and a maximum-margin (SVM-like) approach, with an upper bound on generalization error to justify resistance to overfitting.
  • Regularization (ridge, lasso, weight decay, noise injection, early stopping) is examined within the same bias-variance framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.