Classes Are Not Equal: An Empirical Study on Image Recognition Fairness

Jiequan Cui, Beier Zhu, Xin Wen, Xiaojuan Qi, Bei Yu, Hanwang Zhang

Introduction

In machine learning, fairness is typically discussed in the context of sensitive human attributes or imbalanced "long-tailed" datasets. However, this study identifies a more fundamental and pervasive issue: significant accuracy disparity on perfectly balanced datasets. Even when trained on datasets like ImageNet where every class has an equal number of samples, state-of-the-art models exhibit massive performance gaps. For instance, a standard ResNet-50 may achieve 100% accuracy on some classes while languishing at 16% on others.

The Prevalence of Accuracy Disparity

This performance inequality is not an isolated quirk of specific architectures. The researchers found that accuracy disparity persists across various models, including Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs), and across diverse datasets such as CIFAR-100 and ImageNet. Even large-scale vision-language models like CLIP, despite their massive pre-training, suffer from this "unfairness," with some classes hitting 0% zero-shot accuracy.

Accuracy disparity is a consistent phenomenon across different datasets and model architectures, even when training data is balanced.

The Root Cause: Problematic Representation

Unlike long-tailed learning, where the majority classes bias the classifier, the bottleneck in balanced data is the quality of feature representations. The study reveals that "hard" classes—those with low accuracy—often suffer from a "diversity trap." These classes (e.g., "velvet" or "screwdriver") typically appear in more complex and diverse scenes than "easy" classes (e.g., "ostrich").

Diagnostic metrics show that hard classes exhibit significantly higher intra-class feature variance and form less compact clusters in the feature space. This makes it difficult for the model to establish a clear decision boundary, leading to frequent misclassifications.

Harder classes consistently show higher feature variance and less compact clustering in t-SNE visualizations compared to easier classes.

Model Prediction Bias and False Positives

The complexity of hard classes leads to a high False Positive Frequency (FPF). Because these classes are diverse and often co-occur with other objects, the model frequently mistakenly predicts them for other inputs. During training, these false positives dominate the gradient updates, effectively "drowning out" the true positive signals and preventing the model from learning the actual distinguishing features of the hard class. This phenomenon is termed Model Prediction Bias (MPB).

Mitigation and Fairness Multipliers

The study evaluated several common training interventions. Interestingly, standard data augmentations like Mixup and CutMix act as "fairness multipliers." These techniques improve the accuracy of hard classes significantly more than easy ones (e.g., a 4.7% vs. 1.4% improvement on ImageNet). By forcing the model to learn more robust and interpolatable representations, these augmentations partially mitigate the representation gap.

Conclusion

Addressing class-level unfairness requires moving beyond simple classifier re-weighting, which often fails to improve overall performance in balanced settings. Future research should focus on addressing "data diversity imbalance." Developing algorithms that can handle naturally complex classes or those frequently appearing in multi-object contexts is essential for ensuring that every class receives a fair and robust representation in the feature space.

Summary updated

BibTeX
@inproceedings{cui2024classes,
  author = {Jiequan Cui and Beier Zhu and Xin Wen and Xiaojuan Qi and Bei Yu and Hanwang Zhang},
  title = {{Classes Are Not Equal: An Empirical Study on Image Recognition Fairness}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure