Towards Fairness-Aware Adversarial Learning

Yanghao Zhang, Tianle Zhang, Ronghui Mu, Xiaowei Huang, Wenjie Ruan

TL;DR

Adversarial training makes models robust on average, but often leaves specific classes highly vulnerable—a problem known as "robustness unfairness." This paper introduces Fairness-Aware Adversarial Learning (FAAL), a novel framework that uses Distributional Robust Optimization (DRO) to automatically balance performance across all categories. Remarkably, FAAL can transform an "unfair" model into a fair and robust one with just two epochs of fine-tuning, significantly outperforming existing methods in both speed and effectiveness.

What Problem Does This Paper Address?

Deep learning models are notoriously vulnerable to adversarial attacks—small, intentional perturbations to input data that cause misclassification. While Adversarial Training (AT) is the standard defense, it has a hidden side effect: it doesn't distribute robustness equally.

As shown in the radar plot below, a model might become highly robust at identifying "automobiles" under attack but remain extremely fragile when identifying "cats." In safety-critical applications like autonomous driving, a model that is robust against inanimate objects but vulnerable to "humans" is unacceptable. This disparity is the "robust fairness" issue. Previous solutions often relied on manual "reweighting" (giving more importance to certain classes), but these were often heuristic, slow to train, or required extra validation data.

Figure 1. Class-wise accuracy of the Wide-ResNet34-10 model on CIFAR-10 dataset, where AA accuracy represents the robust accuracy against AutoAttack.

Methods

The authors propose a min-max-max framework. To understand this, consider the standard AT "min-max" approach:

  1. Inner Max: Find the worst-case perturbation (adversarial example) for an input.
  2. Outer Min: Update model parameters to minimize the loss on those adversarial examples.

FAAL adds an Intermediate Maximization step. Instead of treating all classes equally in a batch, it uses Distributional Robust Optimization (DRO) to find the "worst-case distribution" among classes. It calculates Class-wise Distributionally Adversarial Weights (CDAW), which essentially tell the model: "In this training step, focus more on the classes you are currently failing to protect."

By using KL-divergence to constrain these weights, the authors ensure the model doesn't over-correct and ignore the average performance. This data-driven approach allows the model to adapt to distribution shifts induced by adversarial perturbations in real-time.

Datasets

The researchers evaluated FAAL on two standard computer vision benchmarks:

  • CIFAR-10: 10 categories of images.
  • CIFAR-100: A more challenging set with 100 categories. They tested these across various architectures, including Wide-ResNet34-10 and Preact-ResNet18, to ensure the method's versatility.

Key Insights and Ideas

  • Robustness Unfairness as Overfitting: The authors argue that unfairness is actually an overfitting problem caused by "unknown group distribution shifts" during the generation of adversarial examples.
  • The Power of Two Epochs: Unlike competing methods (like FRL) that require 80 epochs of fine-tuning to achieve fairness, FAAL achieves superior results in just two. This makes it incredibly efficient for researchers and engineers who want to "patch" existing robust models.
  • Theoretical Guarantees: The paper provides a mathematical proof (Theorem 1) showing that the FAAL loss acts as a guaranteed upper bound for the true test loss under unknown distribution shifts, providing a solid theoretical foundation for the empirical results.
  • Flexibility: FAAL is "adversary-agnostic." It can be plugged into various existing adversarial training methods like TRADES, MART, or AWP without changing their core logic.

Key Results

FAAL consistently improved the "worst-class accuracy" (the accuracy of the model's weakest category) without significantly hurting the average clean or robust accuracy.

  • Fine-tuning Efficiency: On CIFAR-10, FAAL improved the worst-class AutoAttack accuracy of a PGD-AT model from 24.40% to 35.70% in just 2 epochs. For comparison, the state-of-the-art FRL method took 80 epochs to reach only 33.10%.
  • Radar Plot "Rounding": Figure 2 illustrates how FAAL "rounds out" the model's performance. The blue and purple lines (FAAL) show a much more balanced and expansive robust accuracy across all classes compared to the original PGD-AT (orange).
Figure 2. Class-wise robust accuracy against AutoAttack after fine-tuning the PGD adversarially trained WRN model
  • Training from Scratch: When training from the ground up on CIFAR-100, FAAL-TRADES achieved the highest worst-class robust accuracy (23.57%) while maintaining competitive average robustness.

Limitations and Future Work

While FAAL is highly effective, the authors note a few areas for further exploration:

  • Hyperparameter Sensitivity: The constraint parameter $\tau$ (which controls how much the class weights can deviate from a uniform distribution) requires tuning for different datasets.
  • Scope of Fairness: The paper focuses specifically on class-level fairness. Future work could investigate if these DRO-based techniques can be applied to other types of fairness, such as demographic parity or equal opportunity in non-vision tasks.
  • Computational Overhead: Although the solving cost for the intermediate optimization is "negligible," it does add a small amount of complexity to each training batch compared to standard AT.

Summary updated

BibTeX
@misc{zhang2024towards,
  author = {Yanghao Zhang and Tianle Zhang and Ronghui Mu and Xiaowei Huang and Wenjie Ruan},
  title = {{Towards Fairness-Aware Adversarial Learning}},
  year = {2024},
  eprint = {2402.17729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.17729},
}
Figure