Prediction-Only Distillation in Linear and Logistic Regression
Abstract
Self-distillation (SD) is typically studied when the student is retrained on the teacher’s original training inputs. In many practical deployments, however, the labeled training data are no longer available, and one has access only to the trained predictor and fresh unlabeled covariates. We study SD in this prediction-only regime through a fresh-X prediction-mixed scheme: a pure-distilled student is trained only on fresh covariates pseudo-labeled by the teacher, and the final predictor is an affine combination of the teacher and student predictions. For ridge regression under proportional asymptotics, we derive deterministic equivalents for the optimally mixed prediction risk. This risk is strictly smaller than the teacher risk for almost every pair of teacher and student regularization levels, including when the fresh covariates are out-of-distribution and even when their covariance is isotropic. Increasing the amount of fresh unlabeled data can worsen the optimally mixed risk at fixed student regularization, whereas optimal re-tuning guarantees non-increasing risk. Furthermore, we show that the optimal mixing weight is not identifiable in general from unlabeled covariates and teacher predictions alone, but can be consistently estimated in a single post-training step using a small independent labeled calibration set, without additional model fitting. Finally, as an extension, for binary logistic regression, we demonstrate that prediction mixing can outperform both the teacher and the pure-distilled classifier.