Calibration Bottleneck: Over-compressed Representations are Less Calibratable

Deng-Bao Wang, Min-Ling ZhangICML 2024

TL;DR

Deep neural networks often struggle with uncertainty calibration. Surprisingly, standard regularization techniques like weight decay actually make them harder to recalibrate post-hoc—a property the authors call "calibratability." By tracing this issue to the over-compression of features in the network's top layers, the authors propose Progressively Layer-Peeled (PLP) training. This method progressively freezes top layers during training to prevent over-compression, resulting in highly calibratable models without sacrificing accuracy.

The Problem: Discriminability vs. Calibratability

Modern deep neural networks (DNNs) are notoriously overconfident, often yielding high probabilities for incorrect predictions. To fix this, practitioners use train-time regularization (like label smoothing or weight decay) and post-hoc calibration (like Temperature Scaling, which tweaks the softmax temperature after training using a validation set).

However, this paper highlights a subtle but critical gap: model calibratability. Calibratability measures how amenable a model is to being fixed by post-hoc calibration. The authors discover a frustrating trade-off: standard regularizers like weight decay improve raw calibration but actually degrade calibratability.

Weight decay improves raw ECE but degrades calibrated ECE.

If you apply Temperature Scaling to a heavily regularized model, the final calibrated error is worse than if you had just trained a standard model and calibrated it. The paper seeks to understand why this inherent conflict between discriminability (accuracy) and calibratability exists, and how to train models that excel at both.

Diagnosing the Calibration Bottleneck

To understand why top layers ruin calibratability, the authors perform linear probing on intermediate layers of trained networks. They freeze the bottom $k$ layers, attach a linear classifier, and measure the calibratability of the features at that specific depth. They also use rate-distortion and decoder-based methods to estimate the mutual information (compression) at each layer.

The U-Shaped Calibratability Curve

When probing intermediate layers, the authors found a fascinating trend. Calibratability improves (error drops) as you move from the bottom layers to the middle layers. However, at the very last few top layers, calibratability sharply degrades, forming a distinct U-shape.

Layer-wise accuracy and calibrated ECE showing the U-shaped calibratability curve across different architectures.

The Information Bottleneck

The authors link this U-shape to the Information Bottleneck principle. To achieve high accuracy, the top layers heavily compress information. While great for generalization, this over-compression discards the nuanced information required for reliable uncertainty estimation. Stronger weight decay forces the network to compress information even more aggressively, which explains why it squeezes out the uncertainty signal and hurts post-hoc calibratability.

The Solution: Progressively Layer-Peeled (PLP) Training

To solve the over-compression problem, the authors introduce Progressively Layer-Peeled (PLP) training, based on the "weak classifier hypothesis." If the top layers of a network (the classification head) are prevented from being over-trained, the bottom layers (the representation module) are forced to learn richer, more calibratable features.

The Algorithm: A network is divided into $K$ layer groups. During training, the algorithm progressively freezes the parameters of the network from the top down. By the end of training, the top layers have been trained for far fewer epochs than the bottom layers, preventing them from over-compressing the learned representations.

Key Results

The authors evaluated PLP on standard image classification benchmarks (SVHN, CIFAR-10, CIFAR-100, and Tiny-ImageNet) using architectures like ResNet-18 and ResNet-50.

  • Superior Calibratability: PLP achieved the best average rank (1.94) for calibrated Expected Calibration Error (ECE) compared to 8 baselines, including standard training, label smoothing, mixup, and focal loss.
  • Breaking the Trade-off: On CIFAR-100 (ResNet-18), standard training yielded a calibrated ECE of 0.83, and weight decay worsened it to 1.03. PLP drastically improved calibrated ECE to 0.58, while maintaining a highly competitive accuracy of 94.5% (compared to 94.4% for standard).
  • Flattening the U-Curve: When probing the intermediate layers of PLP-trained models, the sharp spike in calibration error at the top layers completely disappears, proving that the method successfully prevents over-compression.
  • Better Raw Calibration: Though designed for post-hoc calibratability, PLP also significantly improved the raw (pre-calibration) ECE of the models across all tested datasets.

Limitations and Future Work

  • Hyperparameter Sensitivity: PLP introduces a hyperparameter ($\gamma$) that controls the pacing of the layer-freezing schedule. While relatively robust, it still requires some tuning to find the optimal balance between accuracy and calibratability for a given dataset.
  • Scope: The study primarily focuses on vision tasks and standard CNN architectures (ResNets, VGG). Future work should explore calibratability on larger datasets and diverse architectures like Transformers.
  • Pre-training Paradigms: Investigating how the prevalent pre-training/fine-tuning paradigm impacts calibratability is an open question.
  • Distribution Shifts: Testing the robustness of model calibratability under out-of-domain data shifts remains crucial for real-world, safety-critical applications.

Summary updated

BibTeX
@inproceedings{wang2024calibration,
  author = {Deng-Bao Wang and Min-Ling Zhang},
  title = {{Calibration Bottleneck: Over-compressed Representations are Less Calibratable}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=eRThYD9BGD},
}
Figure