1. Statistical Framework: MLE vs. MAP¶
The choice of learning algorithm can be viewed through a probabilistic lens based on the likelihood and prior assumptions.
| Likelihood | Prior | Resulting Method |
|---|---|---|
| Gaussian | Uniform | Ordinary Least Squares (MLE) |
| Gaussian | Gaussian | Ridge Regression (MAP) |
| Gaussian | Laplace | Lasso Regression (MAP) |
| Laplace | Uniform | Robust Regression ( loss) |
Key Property: Maximum A Posteriori (MAP) estimation reduces to Maximum Likelihood Estimation (MLE) when the prior is uniform.
2. Generalization Terminologies¶
Generalization Error (): The expected loss on a new data point drawn from the population distribution . Also known as population risk or out-of-sample error.
Training Error: The average loss on the finite training set .
Generalization Gap: The difference between generalization error and training error.
Excess Risk: Measures how much worse a learned model performs compared to the Bayes optimal predictor .
3. Excess Risk Decomposition¶
Excess risk can be split into three fundamental components:
Approximation Error: The gap between the best-in-class predictor and the Bayes optimal . It reflects the limitation of the model class .
Estimation Error: The gap between the empirical risk minimizer and the best-in-class predictor . It results from learning from a finite dataset.
Optimization Error: The gap between the approximate solution returned by an algorithm and the true empirical minimizer .
4. Mathematical Proof: Bias-Variance Decomposition¶
Assume the true target is where . Let be the hypothesis learned from dataset , and be the expected hypothesis.
Proof Step 1: Decomposition of Expected Error at
The cross term vanishes because .
Proof Step 2: Decomposing the second term
The cross term vanishes because .
Final Result:
.
5. Underfitting, Overfitting, and Regularization¶
Underfitting (High Bias): Model is too simple to capture the underlying structure. Remedied by increasing model complexity or adding informative features.
Overfitting (High Variance): Model fits training noise. Remedied by collecting more data or reducing complexity.
Regularization: Explicitly penalizes complexity .
Ridge (): . Reduces variance and stabilizes solutions.
Lasso (): . Encourages sparse solutions (feature selection).
6. The “Double Descent” Phenomenon¶
Modern machine learning (e.g., deep learning) often operates in the overparameterized regime where the number of parameters exceeds the number of samples .
Interpolation Threshold (): The point where the model can exactly fit the training data; classically, this is where generalization is worst.
Double Descent: Beyond the interpolation threshold, increasing model complexity further can actually decrease the test error again, contradicting the classical trade-off.