Enhancing Robustness to Class-Conditional Distribution Shift in Long-Tailed Recognition

Keliang Li, Hong Chang, Shiguang Shan, Xilin Chen

Introduction

Long-tailed recognition (LTR) presents a fundamental challenge where a minority of "head" classes dominate the training data, leaving "tail" classes with sparse representation. Traditional approaches primarily address label distribution shift—the change in class frequencies between training and testing. However, these methods often assume that the class-conditional distribution $P(x|y)$ remains consistent. This paper identifies Class-Conditional Distribution (CCD) shift as a critical, often overlooked bottleneck in LTR.

The CCD Shift Bottleneck

The authors argue that limited samples in tail classes fail to represent the true diversity of the data distribution. For instance, a handful of images cannot capture the full variance of a specific object category. This leads to an unreliable empirical distribution. Standard re-balancing techniques, by increasing the weight of these sparse samples, may inadvertently amplify noise and unreliable features.

Impact of Class-Conditional Distribution (CCD) shift on accuracy across different re-balancing methods.

As shown in Figure 1, "removing shift sampling" experiments reveal that CCD shift significantly limits performance, particularly for tail classes (higher class indices). When this shift is mitigated, accuracy across various methods like ERM, DRW, and CRT improves substantially, demonstrating that the underlying feature representation is often more capable than standard training suggests.

Distributionally Robust Augmentation (DRA)

To address this, the authors propose Distributionally Robust Augmentation (DRA). Built upon the Wasserstein Distributionally Robust Optimization (DRO) framework, DRA trains models to be robust against worst-case perturbations within a class-specific uncertainty set.

Key Components:

  • Class-Aware Robustness: DRA applies a larger robustness radius to tail classes, acknowledging their higher uncertainty, while maintaining a smaller radius for well-represented head classes.
  • Sequence of Examples: To stabilize optimization, DRA utilizes a sequence of adversarial examples generated during the inner loop of the DRO process, serving as an adaptive data augmentation strategy.
  • Theoretical Foundation: The method is supported by a new mathematical proof showing that minimizing the robust objective effectively reduces the true balanced risk compared to standard empirical risk minimization.

Experimental Results

DRA was evaluated on benchmarks including CIFAR-LT, ImageNet-LT, and CelebA-5.

  • Performance Gains: On ImageNet-LT, integrating DRA with Balanced Softmax improved Top-1 accuracy from 52.27% to 54.30%. In CIFAR-LT experiments, DRA consistently outperformed recent complex augmentation schemes when combined with standard re-balancing methods.
  • Calibration and Robustness: Beyond accuracy, DRA significantly improves confidence calibration. Long-tailed models typically exhibit over-confidence in head classes; DRA mitigates this, aligning predicted probabilities more closely with actual performance.
Correlation between Expected Calibration Error (ECE) and Feature Deviation Distance.

Figure 6 illustrates the relationship between feature deviation and calibration error. By reducing the feature deviation distance, methods that account for the shift (represented by the "removing shift" points) achieve lower Expected Calibration Error (ECE), indicating more reliable and trustworthy model predictions.

Conclusion

This work highlights CCD shift as a primary obstacle in long-tailed recognition. By shifting the focus from simple label re-balancing to class-conditional robustness, DRA provides a principled and effective way to improve both the accuracy and reliability of models trained on imbalanced data. Future work may extend these principles to multi-domain settings where class and domain shifts occur simultaneously.

Summary updated

BibTeX
@article{li2024enhancing,
  author = {Keliang Li and Hong Chang and Shiguang Shan and Xilin Chen},
  title = {{Enhancing Robustness to Class-Conditional Distribution Shift in Long-Tailed Recognition}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=IBtSKMJ8kc},
}
Figure