Back to Deep Learning Mind Map
中文·English
🧠 Deep LearningID: label-smoothing

Label Smoothing

🎯Core Definition
label smoothing mixes the one-hot label with a uniform distribution: y=y(1ϵ)+ϵKy' = y(1-\epsilon) + \frac{\epsilon}{K}, where KK is the number of classes and ϵ\epsilon is typically 0.1; the true class gets 1ϵ+ϵK1-\epsilon+\frac{\epsilon}{K} and every other class gets ϵK\frac{\epsilon}{K}. It is equivalent to adding a KL penalty toward the uniform distribution to the cross-entropy loss.
💡Use Cases
standard for ImageNet-style classification (Inception / ResNet v2 families), Transformer machine translation, and LLM pretraining/finetuning to suppress overconfidence and improve calibration. Interviews ask for the formula, why it prevents overfitting, and its side effect on distillation.
Key Problems Solved
it prevents extreme logits (confidence saturating to 1) on one-hot labels, improving generalization and calibration. Classic side effect (Müller et al. 2019, 'When Does Label Smoothing Help?'): smoothing flattens the relative logit information ('dark knowledge') of the teacher, so student distillation gains drop noticeably — when distillation is planned, the teacher is usually trained without label smoothing.
🎯5 High-Frequency Exam Points
1
Write the label-smoothing formula y=y(1ϵ)+ϵKy' = y(1-\epsilon) + \frac{\epsilon}{K}, explain the roles of ϵ\epsilon and KK, and state the usual value of ϵ\epsilon.
2
Why does label smoothing prevent overconfidence? How does it affect logit magnitudes and model calibration?
3
Why does label smoothing hurt knowledge distillation? What information in the teacher's output does it destroy?
4
What regularization term is label smoothing equivalent to adding to cross-entropy? Write the corresponding loss form.
5
In which scenarios should label smoothing be avoided? How does it interact with temperature scaling?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Label Smoothing"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardDropoutNext CardWeight Decay & AdamW

🔗 More Deep Learning Knowledge Cards

Activation FunctionsAdam & AdamWAutograd Compute GraphBatch Normalization