Machine learning · Test 08
Distillation at temperature 1 improved calibration; only high-temperature soft labels made it worse.
Model inference speed trades against calibration, so a distilled model that matches accuracy still produces confidence scores that are too sharp.Source: Incoprea Theory XX, entry 6
Distilled models should be less calibrated at equal accuracy.
UCI Adult (32,561 training rows, 9,769 test); teacher 64–32 MLP; 16-unit students trained on hard labels and on soft labels at T = 1, 2, 4; expected calibration error with 15 bins.
The teacher reaches 84.9% accuracy with ECE 0.029. Every student is within 1.1 points of that accuracy. Distillation at T = 1 gives ECE 0.010 — better calibrated than the teacher. T = 2 gives 0.056 and T = 4 gives 0.138, both worse. The hard-label 16-unit control is the best calibrated model in the comparison (ECE 0.004).
Not supported as a general claim. Compression did not force miscalibration: at T = 1 the student was better calibrated than its teacher, and the hard-label small model was better still. The prediction holds only when high-temperature soft labels are used.
What would change this answer. Vision or language-model distillation, with repeated seeds, would test whether the temperature dependence is general. The code and inputs are included so the check can be repeated.