Home Knowledge Base Label smoothing in ViT

Label smoothing in ViT is the regularization method that replaces hard one-hot targets with softened distributions to reduce overconfidence and improve calibration - instead of forcing probability one for a single class, it reserves small mass for other classes and encourages less extreme logits.

What Is Label Smoothing?

Why Label Smoothing Matters

Smoothing Configurations

Fixed Epsilon:

Scheduled Epsilon:

Class-Aware Smoothing:

How It Works

Step 1: Build softened label distribution for each sample by allocating most probability to target class and small residual across others.

Step 2: Compute cross entropy against softened targets, producing gradients that discourage extreme certainty.

Tools & Platforms

Label smoothing is a simple but effective calibration tool that helps ViTs generalize better by reducing pathological confidence spikes - it keeps classifier behavior more realistic under real world variation.

label smoothing in vitcomputer vision

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.