Loss valley over the weight, ball = gradient-descent iterate
Bias, variance and risk vs penalty strength

Fine-Tuning With Few Labels: Loss Valley, Bias and Variance (2D)

A model pretrained on a nearby task is fine-tuned on a handful of noisy labels with a penalty that pulls the weight back towards its pretrained value. Slide the number of labels, label noise, pretraining gap and penalty strength and watch gradient descent roll a ball down a Blender-built loss valley, with live bias, variance, excess risk and the closed-form optimal penalty. Numerical checks include a Monte Carlo test of the risk formula.

Made with 🟠 Blender