Can Calibration Improve Sample Prioritization?

Ganesh Tata, Gautham Krishna Gudur, Gopinath Chennupati, Mohammad Emtiyaz Khan

TL;DR

Training deep neural networks on smaller, prioritized subsets of data can drastically speed up training, but standard uncertainty-based selection struggles when models are overconfident. This paper demonstrates that integrating in-training calibration techniques (especially Mixup) yields more reliable sample prioritization, allowing models to train on as little as 30% of the dataset per epoch without significant loss in accuracy while substantially reducing calibration error.

What Problem Does This Paper Address?

Training modern deep neural networks is computationally expensive. One intuitive way to accelerate training is sample prioritization (subset selection): at each epoch, select only the most "informative" or challenging examples rather than iterating through the entire dataset.

A common heuristic for informativeness is predictive entropy (uncertainty sampling). However, modern deep networks are notorious for being poorly calibrated—often generating overconfident, erroneous predictions. If a model's confidence scores are distorted, its estimates of sample uncertainty become unreliable, degrading the quality of the selected subset. The authors investigate whether applying calibration techniques during training fixes this issue and enables efficient, high-performing subset selection.

Methods

The paper evaluates dynamic subset selection under different calibration regimens:

  • Sample Prioritization Mechanism: In each epoch (after an initial 10-warmup epochs on 100% data), the training loop selects the top-$n\%$ samples ($n \in \{10, 20, 30\}$) that maximize predictive entropy (Max Entropy): $$H[y|x, \mathcal{D}_{\text{train}}] = -\sum_{c} p(y=c|x, \mathcal{D}_{\text{train}}) \log p(y=c|x, \mathcal{D}_{\text{train}})$$
  • In-Training Calibration Techniques: Rather than relying on standard cross-entropy loss, the current model (ResNet-34) is trained using:
  • Mixup: Convex combinations of randomly paired inputs and labels.
  • Label Smoothing: Softening hard one-hot targets to curb peak softmax probabilities.
  • Focal Loss: Down-weighting easy, well-classified examples to force higher prediction entropy.
  • Target-Guided Prioritization: The authors also study whether an external, well-calibrated, high-capacity model (a pre-trained ResNet-50 trained with Mixup, termed the target model) can compute the entropy scores to curate subsets for the smaller current model being trained.

Datasets

The study evaluates methods on two standard image classification benchmarks:

  • CIFAR-10 (50,000 training images split into 90% train / 10% validation; 10,000 test images).
  • CIFAR-100 (same split protocol across 100 classes).

No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • Calibration rescues subset selection: Calibrated models consistently outperform uncalibrated baselines in Expected Calibration Error (ECE) across all subset sizes, avoiding the massive overconfidence spikes seen when uncalibrated models train on small subsets.
  • Mixup prevents subset class collapse: An unexpected qualitative finding is that selection via Mixup maintains balanced class representation across epochs. In contrast, loss-based calibration (Focal Loss, Label Smoothing) and uncalibrated cross-entropy heavily skew subset selections toward specific, difficult classes.
  • Subset stability: Under Max Entropy selection, roughly 75% to 90% of samples remain consistent from one epoch to the next (compared to ~30% with random sampling). Even though only a modest fraction of data changes across epochs, model accuracy remains high.
  • Target models act as an equalizer: Using a pre-trained, well-calibrated ResNet-50 target model to score samples significantly boosts underperforming techniques. For example, Label Smoothing on CIFAR-100 gains several percentage points in accuracy when guided by the target model.

Key Results

  • 70% Reduction in Samples per Epoch: On CIFAR-10, training on just 30% of data per epoch using Mixup reaches 94.39% accuracy (ECE of 2.67%), remarkably close to the 100%-data baseline of 95.10% (ECE 2.10%). The uncalibrated cross-entropy baseline at 30% subset size reaches only 93.60% accuracy with a much worse ECE of 5.33%.
  • Drastic ECE Reductions on CIFAR-100: When training on a 10% subset of CIFAR-100, the uncalibrated baseline suffers an ECE of 14.47% (69.65% accuracy). In contrast, Mixup maintains an ECE of 1.16% (69.10% accuracy), and Focal Loss attains 1.82% ECE.
  • Target Model Performance Boost: Guiding a ResNet-34 on CIFAR-100 (30% subset) with a calibrated ResNet-50 target pushes Mixup accuracy to 75.62% with an ECE of 0.86% (compared to 73.57% accuracy and 1.49% ECE without the target).

Limitations and Future Work

  • No Post-Hoc Calibration: The study explicitly limits its scope to in-training calibration. Techniques like Focal Loss often achieve peak calibration when coupled with post-hoc temperature scaling, which was excluded here.
  • Scope of Tasks: Evaluations are confined to CIFAR-10/100 and ResNet architectures; behavior on larger-scale datasets (e.g., ImageNet) or non-vision domains (such as NLP) remains unexplored.
  • Computational Overhead: While sample prioritization cuts backward-pass costs by 70–90%, calculating predictive entropy across the entire training set each epoch introduces inference overhead, which is not factored into a wall-clock runtime comparison.

Summary updated

BibTeX
@inproceedings{tata2022can,
  author = {Ganesh Tata and Gautham Krishna Gudur and Gopinath Chennupati and Mohammad Emtiyaz Khan},
  title = {{Can Calibration Improve Sample Prioritization?}},
  booktitle = {HITY @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=LnygZu8WJk},
}
Figure