Better May Not Be Fairer: Can Data Augmentation Mitigate Subgroup Degradation?

Ming-Chang Chiu, Pin-Yu Chen, Xuezhe MaarXiv 2022

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success in image classification, often reaching or exceeding human-level average accuracy on standard benchmarks. However, high average performance can be deceptive. Models frequently rely on "spurious correlations"—statistical associations between labels and non-essential features, such as background color or lighting—rather than the actual object of interest. This reliance leads to "subgroup degradation," where performance drops significantly on minority subgroups that lack these spurious cues (e.g., a bird photographed against a red background instead of the typical blue sky).

This paper investigates whether standard data augmentation (DA) techniques can mitigate this issue and introduces FlowAug, a semantic augmentation method designed to decouple object content from background style to improve model fairness and robustness.

Quantifying Subgroup Discrepancy

To rigorously study this phenomenon, the authors introduce CIFAR10-B and CIFAR100-B. These datasets consist of 20,000 human-annotated images from the CIFAR test sets, categorized into eight distinct background types: black, blue, green, gray, red, white, brown, and others.

Furthermore, the paper proposes a new metric, MacroStd, to quantify performance fluctuations across subgroups. Unlike average accuracy, MacroStd calculates the macro average of weighted standard deviations of accuracies across subgroups within a class. A lower MacroStd indicates a more robust and fair model that performs consistently regardless of spurious background features.

FlowAug: Semantic Data Augmentation

While traditional DA methods like flipping or cropping operate at a low level, FlowAug performs "semantic" augmentation. It leverages a flow-based generative model—specifically a Variational Autoencoder (VAE) with an invertible normalizing flow decoder—to factorize an image into two distinct latent representations:

  • Global Representation ($z$): Captures high-level "style" or background attributes.
  • Local Representation ($\nu$): Captures "content" or object-specific features.

By perturbing the global representation while keeping the local representation intact, FlowAug synthesizes new training samples where the same object appears against varied backgrounds. Two strategies are employed: adding truncated Gaussian noise to $z$ ($T_1$) or interpolating the global style between two different images ($T_2$). This process forces the model to ignore background noise and focus on the invariant features of the object.

Experimental Results

The effectiveness of FlowAug was evaluated against standard training and common DA techniques like Mixup, Cutmix, and AutoAug.

Subgroup performance comparison across different augmentation techniques. The red line indicates average accuracy, while the black line highlights the performance of the most degraded subgroup. FlowAug variations (bottom row) significantly narrow this gap compared to standard and traditional methods (top row).

As shown in the figure above, standard models exhibit a massive gap between average accuracy (red line) and the worst-performing subgroup (black line). While traditional methods like Mixup and Cutmix improve average accuracy, they often fail to significantly close this "subgroup gap." In contrast, FlowAug variations consistently achieve the lowest MacroStd scores, indicating more equitable performance across all background categories.

Key findings include:

  • Consistency: On CIFAR-10, FlowAug reduced MacroStd from 2.24 to as low as 1.65.
  • Generalization: On CIFAR-100, FlowAug reached 79.99% accuracy, outperforming Mixup (77.91%) and Cutmix (78.87%).
  • Robustness: FlowAug demonstrated superior out-of-distribution (OOD) performance on the CIFAR10.1 dataset, reaching 91.40% accuracy compared to 88.70% for the standard model.

Conclusion

The study demonstrates that "better" average accuracy does not necessarily imply a "fairer" model. By introducing the CIFAR-B datasets and the MacroStd metric, the authors provide tools to expose and measure subgroup degradation. FlowAug offers a promising solution by using generative flow models to perform semantic augmentation, effectively decoupling spurious background correlations from essential object features. Future work will focus on scaling these annotations and exploring other spurious factors beyond background color.

Summary updated

BibTeX
@misc{chiu2022better,
  author = {Ming-Chang Chiu and Pin-Yu Chen and Xuezhe Ma},
  title = {{Better May Not Be Fairer: Can Data Augmentation Mitigate Subgroup Degradation?}},
  year = {2022},
  url = {https://openreview.net/forum?id=c_I0NX0F_8mP},
}
Figure