Abstract
Data augmentation is widely applied and has shown its benefits in different machine learning tasks. However, as recently observed, it may have an unfair effect in multi-class classification. While data augmentation generally improves the overall performance (and therefore is beneficial for many classes), it can actually be detrimental for other classes, which can be problematic in some application domains. In this paper, to counteract this phenomenon, we propose CLAM, a CLAss-dependent Multiplicative-weights method. To derive it, we first formulate the training of a classifier as a non-linear optimization problem that aims at simultaneously maximizing the individual class performances and balancing them. By rewriting this optimization problem as an adversarial two-player game, we propose a novel multiplicative weight algorithm, for which we prove the convergence. Interestingly, our formulation also reveals that the class-dependent effects of data augmentation is not due to data augmentation only, but is in fact a general phenomenon. Our empirical results over five datasets demonstrate that the performance of learned classifiers is indeed more fairly distributed over classes, with only limited impact on the average accuracy.
Introduction
In modern computer vision, data augmentation (DA)—techniques like random cropping or color jittering—is the "secret sauce" for high accuracy. However, recent research has uncovered a troubling side effect: DA is not "class-blind." While it improves average accuracy, it can significantly degrade performance for specific classes, leading to a skewed and unfair model.
This disparity is particularly dangerous in safety-critical domains. For an autonomous vehicle, it doesn't matter if the model is 99% accurate on average if it consistently fails to recognize a specific type of rare road sign. A striking finding of this work is that class-dependent performance gaps exist even without data augmentation; DA simply exacerbates the "rich classes richer and the poor classes poorer" phenomenon. The challenge is to reduce these disparities without compromising the model's overall performance.
Methods: The CLAM Algorithm
The authors reformulate the classification task as a zero-sum two-player game between two entities:
- The Max Player (The Classifier): Aims to maximize the weighted accuracy across all classes.
- The Min Player (The Weight Assigner): Aims to ensure fairness by assigning higher weights to classes that are currently underperforming.
To solve this, they propose CLAM (CLAss-dependent Multiplicative-weights), which utilizes an adapted Multiplicative Weights (Hedge) algorithm. Unlike standard "max-min" strategies that focus exclusively on the single worst-performing class—often leading to unstable "whack-a-mole" training—CLAM employs a constrained simplex.
By restricting weights to a specific range, CLAM forces the model to improve the accuracies of all classes simultaneously. This leads to "Schur-concave" fairness, a mathematical property ensuring that redistributing performance from a high-performing class to a lower one always results in a fairer state. During training, the class weights converge to values inversely related to final accuracies, confirming the algorithm's ability to prioritize "hard" classes.
Experimental Evaluation
CLAM was evaluated across six diverse benchmarks, including standard sets (CIFAR-10/100, Fashion-MNIST), large-scale tasks (Mini-ImageNet, ImageNet), and real-world imbalanced data (iNaturalist2018).
Key Results
CLAM consistently outperformed standard cross-entropy training and specialized "fair" loss functions like Focal Loss:
- Reduced Variance: On CIFAR-100, CLAM reduced the standard deviation of class accuracies from 11.8% to 10.8%.
- Boosting the Bottom Tier: The worst-performing 10% of classes on CIFAR-100 saw an accuracy jump from 53.6% to 56.4%.
- Minimal Accuracy Tax: Unlike many fairness methods, CLAM maintained nearly identical average accuracy. In cases like CIFAR-100 and Mini-ImageNet, it even improved average accuracy slightly while increasing fairness.
Conclusion and Future Work
While CLAM effectively reduces class-dependent disparities, a slight "accuracy-fairness trade-off" remains, with some datasets showing a minor decrease in overall test accuracy (usually less than 1%). Future work could extend this two-player game approach to multi-task learning, balancing performance across diverse objectives like depth estimation and object detection.
Summary updated