Towards Class-wise Fair Adversarial Training via Anti-Bias Soft Label Distillation

Shiji Zhao, Chi Chen, Ranjie Duan, Xizhe Wang, Xingxing WeiarXiv 2025

Abstract

Adversarial Training (AT) and Adversarial Robustness Distillation (ARD) often result in uneven robustness across different classes, creating a "robust fairness" issue. This paper identifies the smoothness of soft labels as a critical factor in this disparity. We propose Anti-Bias Soft Label Distillation (ABSLD), which adaptively adjusts class-wise label smoothness via temperature scaling to balance error risks. Our approach improves fairness and generalization without sacrificing significant average robustness, outperforming state-of-the-art methods across multiple benchmarks.

The Robustness-Fairness Challenge

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks—small, intentional perturbations that lead to incorrect classifications. While Adversarial Training (AT) has emerged as a standard defense, it often leads to a significant "robustness gap." In datasets like CIFAR-10, models may become highly robust for "easy" classes (e.g., frogs) while remaining vulnerable for "hard" classes (e.g., cats). Existing solutions typically rely on sample-based methods, such as re-weighting training samples or adjusting adversarial margins, but these often suffer from poor generalization and overfitting.

Anti-Bias Soft Label Distillation (ABSLD)

ABSLD shifts the focus from sample manipulation to the supervision signal itself: the soft labels. The core insight is that the "smoothness" of soft labels in a Knowledge Distillation (KD) framework directly influences the intensity of supervision.

Comparison of sample-based vs. label-based (ABSLD) approaches for robust fairness.

As illustrated in Figure 1, while traditional methods adjust sample weights or margins, ABSLD "re-temperates" the teacher's soft labels. By assigning a unique temperature ($\tau$) to each class, the algorithm creates a dynamic feedback loop. For "hard" classes where the student struggles (high error risk), the teacher's temperature is decreased to produce a "sharper" label, providing stronger supervision. For "easy" classes, the temperature is increased to "smooth" the labels, relaxing the supervision and preventing the model from over-optimizing on simple tasks.

Mitigating Overfitting through Label-Based Adjustments

A key advantage of ABSLD's label-based approach is its superior generalization compared to sample-based methods. Sample-based re-weighting often leads to a large "error risk gap"—the difference in performance between training and testing sets—indicating that the fairness achieved during training does not translate to unseen data.

Error risk gap between training and test sets at the 200th epoch.

Figure 3 demonstrates that ABSLD (label-based) consistently maintains a significantly lower error risk gap across all classes compared to sample-based re-weighting. By manipulating the label distribution rather than individual sample weights, ABSLD provides a more stable and generalizable path toward achieving class-wise fairness.

Experimental Results and Insights

The researchers evaluated ABSLD on CIFAR-10, CIFAR-100, and Tiny-ImageNet benchmarks. Key findings include:

  • Fairness Gains: On CIFAR-100, ABSLD reduced the Normalized Standard Deviation (NSD) of class-wise robustness by up to 0.073 compared to the best baseline, indicating much more uniform protection across the 100 classes.
  • Worst-Class Protection: On CIFAR-10, the robustness of the most vulnerable classes improved by 0.7% to 1.7% across various attack types, including PGD and AutoAttack.
  • Generalization to Corruptions: The method proved effective not just against adversarial attacks, but also against common image corruptions like Gaussian noise and color transformations.
  • Hybrid Compatibility: As a label-based approach, ABSLD is highly adaptable and can be integrated with traditional sample-based methods for even greater performance gains.

Conclusion

ABSLD offers a promising new direction for fair adversarial training by leveraging label smoothness as a dynamic lever for supervision. While a fundamental trade-off between average robustness and fairness persists, ABSLD's ability to generalize fairness across test sets marks a significant advancement. Future work will explore the theoretical limits of this trade-off and the application of label-based fairness techniques to other domains like Natural Language Processing.

Summary updated

BibTeX
@misc{zhao2025towards,
  author = {Shiji Zhao and Chi Chen and Ranjie Duan and Xizhe Wang and Xingxing Wei},
  title = {{Towards Class-wise Fair Adversarial Training via Anti-Bias Soft Label Distillation}},
  year = {2025},
  eprint = {2506.08611},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.08611},
}
Figure