atlas

Research map / Large language models / Instruction and fine-tuning

Calibrated Language Models and How to Find Them with Label Smoothing

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Calibration and knowledge in LLM tuning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows SFT degrades LLM calibration, that label smoothing restores it except for large-vocabulary small-hidden-size models, and provides a memory-efficient Triton cross-entropy kernel supporting label smoothing.

Problem

Instruction tuning (SFT) of LLMs degrades confidence calibration, and label smoothing, which could fix this, becomes ineffective for large-vocabulary models and cannot be computed memory-efficiently in standard fused cross-entropy kernels.

Approach

Argues via entropy bounds that the LM head's minimum entropy grows with vocabulary size and shrinks with hidden size, explaining when label smoothing fails to help, and designs a fused Triton kernel that computes the label-smoothed cross-entropy without materializing the full logit matrix.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add label smoothing (β=0.1) during SFTLLaMA3-8B · MMLU (5-shot; Tulu3Mixture)ECE: 0.050 -> 0.012Helped
Add label smoothing (β=0.1) during SFTMistral-7B · MMLU (5-shot; Tulu3Mixture)ECE: 0.096 -> 0.028Helped
Add label smoothing (β=0.1) during SFTGemma2-2B · MMLU (5-shot; Tulu3Mixture)ECE: 0.341 -> 0.020Helped
Add label smoothing (β=0.1) during SFTLLaMA3-8B · MMLU (5-shot; OpenHermes)ECE: 0.038 -> 0.016Helped
Add label smoothing (β=0.1) during SFTMistral-7B · MMLU (5-shot; OpenHermes)ECE: 0.071 -> 0.014Helped
Add label smoothing (β=0.1) during SFTGemma2-2B · MMLU (5-shot; OpenHermes)ECE: 0.353 -> 0.016Helped
Use the custom kernel instead of torch.compileSmoothed cross-entropy on Gemma2-2B · Gemma2-2B loss and gradients (β > 0)forward+backward memory: \qty{16000}{MB} -> \qty{1164}{MB}Helped
Use the custom kernel instead of torch.compileSmoothed cross-entropy on Gemma2-2B · Gemma2-2B loss and gradients (β > 0)forward+backward time: \qty{62.3}{ms} -> \qty{72.9}{ms}Hurt
Remove vocabulary sorting (ablation)Custom smoothed cross-entropy kernel · Gemma2-2B loss and gradients (β > 0)forward+backward time: \qty{72.9}{ms} -> \qty{86.8}{ms}Hurt
Remove vocabulary sorting (ablation)Custom smoothed cross-entropy kernel · Gemma2-2B loss and gradients (β > 0)forward+backward memory: \qty{1164}{MB} -> \qty{1162}{MB}Helped
Remove gradient filtering (ablation)Custom smoothed cross-entropy kernel · Gemma2-2B loss and gradients (β > 0)forward+backward time: \qty{72.9}{ms} -> \qty{201.5}{ms}Hurt
Fuse forward and backward passes (ablation)Custom smoothed cross-entropy kernel · Gemma2-2B loss and gradients (β > 0)forward+backward time: \qty{72.9}{ms} -> \qty{100.6}{ms}Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca Tulu3Mixture OpenHermes-2.5

Benchmarks: MMLU HellaSwag Arc-easy

Metrics: accuracy expected calibration error root mean square calibration error peak GPU memory wall-clock time

Baselines: torch.compile torch.nn.CrossEntropyLoss Cut-Cross-Entropy Liger Kernels Chunked Cross Entropy (torchtune)

Builds on: label smoothing Cut-Cross-Entropy Liger Kernels open-instruct

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy