[Paper Review] Class-Distribution-Aware Calibration for Long-Tailed Visual Recognition
This paper proposes class-distribution-aware temperature scaling (CDA-TS) and label smoothing (CDA-LS) to improve model calibration in long-tailed visual recognition. By adapting calibration parameters to class frequency, CDA-TS and CDA-LS reduce overconfidence in high-frequency classes, achieving superior calibration error and accuracy across CIFAR-100-LT, Places-LT, and ImageNet-LT datasets compared to standard TS and LS.
Despite impressive accuracy, deep neural networks are often miscalibrated and tend to overly confident predictions. Recent techniques like temperature scaling (TS) and label smoothing (LS) show effectiveness in obtaining a well-calibrated model by smoothing logits and hard labels with scalar factors, respectively. However, the use of uniform TS or LS factor may not be optimal for calibrating models trained on a long-tailed dataset where the model produces overly confident probabilities for high-frequency classes. In this study, we propose class-distribution-aware TS (CDA-TS) and LS (CDA-LS) by incorporating class frequency information in model calibration in the context of long-tailed distribution. In CDA-TS, the scalar temperature value is replaced with the CDA temperature vector encoded with class frequency to compensate for the over-confidence. Similarly, CDA-LS uses a vector smoothing factor and flattens the hard labels according to their corresponding class distribution. We also integrate CDA optimal temperature vector with distillation loss, which reduces miscalibration in self-distillation (SD). We empirically show that class-distribution-aware TS and LS can accommodate the imbalanced data distribution yielding superior performance in both calibration error and predictive accuracy. We also observe that SD with an extremely imbalanced dataset is less effective in terms of calibration performance. Code is available in https://github.com/mobarakol/Class-Distribution-Aware-TS-LS.
Motivation & Objective
- To address model miscalibration in long-tailed datasets where models become overconfident in high-frequency classes.
- To overcome the limitations of uniform temperature scaling (TS) and label smoothing (LS) in imbalanced data settings.
- To develop class-distribution-aware calibration techniques that incorporate class frequency into calibration parameters.
- To integrate CDA-TS into knowledge distillation for improved calibration and accuracy in self-distillation.
- To validate the proposed methods on multiple long-tailed benchmarks using state-of-the-art calibration metrics.
Proposed method
- CDA-TS replaces the scalar temperature with a class-specific temperature vector derived from class frequency to reduce overconfidence in high-frequency classes.
- CDA-LS uses a class-specific smoothing factor vector instead of a scalar, flattening hard labels according to class distribution.
- The CDA-TS vector is optimized via line search on a validation set to minimize calibration error.
- CDA-TS is integrated into knowledge distillation loss to improve calibration and accuracy during self-distillation.
- The method uses standard cross-entropy loss with modified logits (CDA-TS) or soft labels (CDA-LS) during training.
- Reliability diagrams and calibration error metrics (ECE, SCE, TACE, UCE, BS) are used to evaluate performance.
Experimental results
Research questions
- RQ1Can class-distribution-aware temperature scaling (CDA-TS) reduce miscalibration in models trained on long-tailed datasets?
- RQ2Does class-distribution-aware label smoothing (CDA-LS) improve calibration and accuracy compared to standard label smoothing?
- RQ3How does CDA-TS perform in self-distillation when applied to highly imbalanced data?
- RQ4Can CDA-TS and CDA-LS jointly improve both predictive accuracy and calibration error in long-tailed recognition?
- RQ5Does the use of class frequency in calibration parameters lead to better reliability diagrams and lower uncertainty calibration error?
Key findings
- CDA-TS reduced Expected Calibration Error (ECE) by 57% on CIFAR-100-LT with imbalance ratio 100 compared to baseline.
- On CIFAR-100-LT (imbalance ratio 10), CDA-TS achieved 58.67% accuracy and 0.1694 ECE, outperforming baseline (57.60% accuracy, 0.1801 ECE).
- CDA-LS reduced ECE from 0.328 (baseline) to 0.038 on CIFAR-100-LT with imbalance ratio 100, showing significant improvement.
- Self-distillation with CDA-TS achieved 58.67% accuracy and 0.1694 ECE, outperforming standard distillation with fixed T (57.64% accuracy, 0.1974 ECE).
- CDA-TS maintained or improved calibration across all three datasets: CIFAR-100-LT, Places-LT, and ImageNet-LT.
- CDA-TS showed lower uncertainty calibration error (UCE) and better reliability diagrams, with confidence curves closer to the identity line.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.