the.ai

Foundations / Training

verified

Label Smoothing

Instead of training toward a target of exactly one for the correct class and zero for everything else, aim slightly lower — say 0.9 — and spread the remainder across the others. It is one line, it is in almost every transformer recipe, and it exists because the honest target is unreachable and chasing it does damage.

Viz primitive · update-spectrumsmoothing = 0.4 · bars = 10

10 values. The left group decays steeply; the right group is 19% of the way to flat, and reads flatter than the left.

A model's output distribution before and after smoothing the targets it was trained toward. Drag the smoothing up to watch the confident spike spread — the logit gap becomes finite, and the between-class structure a distillation teacher needs goes with it.

0.4

Reviewed by opendroid · 2026-08-18