Optimal Unconstrained Self-Distillation in Ridge Regression: Strict Improvements, Precise Asymptotics, and One-Shot Tuning
Abstract
Lay Summary
Self-distillation is a process in which a model is retrained on the same data using a mix of its own predictions and the true labels. A mixing weight between 0 and 1 is commonly used to control how much the model learns from the true labels versus its own predictions. We study self-distillation in ridge regression where the mixing weight is allowed to take any real value, including negative ones, as recent studies have suggested that this can sometimes work better. Our first result gives a simple rule for determining when the retrained model (student) can outperform the original model (teacher) and when negative mixing is helpful. We also derive the exact performance of the student in large-scale settings where the number of data points and features grow together at the same rate. In some simple cases, the student can closely match the best possible model with extreme regularization. From a practical standpoint, we propose an efficient method for estimating the best mixing weight without testing many possible values or setting aside some data for tuning. Extensions such as performing distillation over multiple rounds, distillation using the teacher's labels on fresh data, or other ridge variants are also covered. Our results provide a simple and computationally cheap way to improve poorly tuned teachers, at least in ridge-type problems.