Entropy Regularization for Calibrated Neural Networks

This direction is split into other directions: confidence penalty. Its last version stays readable and citable here.

Version 1 of 1215 papers274 conceptsfrozen 2026-10-04

Deep neural networks are notoriously "greedy." When trained with standard cross-entropy loss, they strive to push the probability of the correct class as close to 1.0 as possible. While this maximizes accuracy on the training set, it often leads to overconfidence: the model becomes certain even when it is wrong, or when it encounters data it has never seen before.

Entropy regularization provides a mathematical "knob" to control this behavior. By adding an entropy-based term to the loss function, researchers can either force a model to be more cautious (smoothing the distribution) or more decisive (sharpening the distribution).

The Entropy Knob: Smoothing vs. Sharpening

At its core, entropy measures the "flatness" of a probability distribution. A uniform distribution (where every class is equally likely) has maximum entropy, while a "spiky" distribution (where one class has a probability of 1.0) has zero entropy.

In the research across these 164 papers, entropy regularization is used in two primary ways:

  1. Smoothing (Maximizing Entropy): To prevent overconfidence, researchers add a penalty that discourages low-entropy (spiky) distributions. This forces the model to maintain some probability mass across other classes, acting as a buffer against noise and out-of-distribution (OOD) shifts.
  2. Sharpening (Minimizing Entropy): In tasks like self-training or domain adaptation, where labels are missing, researchers often want the model to "make up its mind." Minimizing entropy forces the model to pick a winner, turning ambiguous predictions into confident pseudo-labels.

Preventing Overconfidence and Improving Calibration

The most common application of this idea is ensuring that a model's confidence matches its actual accuracy—a property called calibration. Dexter Neo and colleagues introduced MaxEnt Loss (MaxEnt Loss: Constrained Maximum Entropy for Calibration under Out-of-Distribution Shift), which uses the Principle of Maximum Entropy to constrain the model. By tying confidence scores to known class priors, they prevent Graph Neural Networks and standard CNNs from becoming biased under distribution shifts.

Similarly, Jaeyoung Kim and the team behind CALL (Bag of Tricks for In-Distribution Calibration of Pretrained Transformers) found that entropy regularization prevents the final layers of Transformers from developing excessively large weight norms. Without this penalty, these large weights produce high-magnitude logits that drive the "softmax" function toward extreme, overconfident values.

Even the way we define loss functions can be evolved to include this intuition. Risto Miikkulainen used evolutionary algorithms to discover the Baikal loss function (Improved Training Speed, Accuracy, and Data Utilization Through Loss Function Optimization), which features a U-shaped curve that explicitly penalizes the model if it becomes too certain, leading to better generalization on small datasets.

Entropy as a Tool for Stability and Adaptation

While smoothing helps with safety, sharpening helps with stability. Srinadh Bhojanapalli explored why two identical models often disagree on the same image—a problem called "churn" (On the Reproducibility of Neural Network Predictions). By applying minimum entropy regularization, they forced models to produce more "spiky" predictions, making the outputs less sensitive to small variations in training and improving reproducibility.

In the realm of Test-Time Adaptation (TTA), entropy becomes a dynamic signal. Mingkui Tan and the authors of EATA (Uncertainty-Calibrated Test-Time Model Adaptation without Forgetting) developed a strategy that minimizes entropy when predictions are consistent (to sharpen the model's knowledge) but maximizes it when predictions conflict (to prevent the model from learning from corrupted or ambiguous inputs).

Difficulty-Aware Regularization

Recent work has moved toward "sample-wise" entropy control. Instead of applying the same penalty to every image, models can adjust their skepticism based on the difficulty of the input. Peng Cui demonstrated that using foundation models to estimate sample difficulty allows for a more surgical approach (Learning Sample Difficulty from Pre-trained Models for Reliable Prediction). By specifically penalizing high confidence on "hard" or ambiguous samples, the resulting models become much better at "knowing what they don't know."

This transition from a fixed training objective to an entropy-aware one represents a shift in the field: moving away from models that simply maximize a score, and toward models that understand the limits of their own evidence.

Papers in this version

Showing 60 of 215 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_entropy_regularization_for_calibrated_ne_46cb5765,
  title = {Entropy Regularization for Calibrated Neural Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/entropy-regularization-for-calibrated-neural-networks/rdr_46cb5765a5fb416ebaf9435a48f1e5fc},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_entropy_regularization_for_calibrated_ne_46cb5765_v1,
  title = {Entropy Regularization for Calibrated Neural Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/entropy-regularization-for-calibrated-neural-networks/rdr_46cb5765a5fb416ebaf9435a48f1e5fc/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}