Replace absolute certainty with a measured target.

One-hot labels demand probability one for the winner and zero for every alternative. Label smoothing redistributes a small amount of target mass, changing the loss, gradients, and confidence pressure.

Target and prediction, class by class

training targetmodel predictiongradient p − y
ycorrect = 0.90 · y + 0.10 / 5Smoothing spreads ε across all classes; frameworks may differ in the exact convention, so verify the implementation.
Cross entropy1.609

Loss against the selected target distribution.

Correct confidence20%

Model probability on the labeled class.

Gradient norm0.89

Magnitude of p − y across logits.

Target entropy0.39

Uncertainty explicitly encoded by the target.

One-hot targets never stop asking for more

Even after the correct class wins, cross-entropy continues pushing its logit upward toward probability one. Label smoothing gives the optimum a finite target confidence.

Gradients change for every class

For softmax cross-entropy, each logit gradient is prediction minus target. Redistributing target mass weakens the winner's negative gradient and gives alternatives a small positive target.

Calibration is an outcome to measure

Smoothing can reduce overconfidence, but it can also alter representation geometry and harm some distillation or uncertainty workflows. Evaluate accuracy, log loss, calibration, and downstream use.

Tune it as a regularizer, not a ritual.

Check the convention

Some implementations spread ε across all classes; others allocate it only to incorrect classes. That changes the exact target and optimum confidence.

Audit noisy labels

Smoothing does not identify incorrect annotations. Compare with data cleaning, robust losses, reweighting, and cohort-specific error analysis.

Report the full recipe

Record ε, class count, loss implementation, augmentation, mixup, distillation, and calibration procedure so the training objective is reproducible.

Primary reading

Rethinking the Inception Architecture for Computer Vision Szegedy et al.When Does Label Smoothing Help? Müller, Kornblith & Hintontorch.nn.CrossEntropyLoss PyTorch