arXiv:2608.29247cs.LGAug 2026

Manuscript Offprint

arXiv:2608.29247

RL-FAT: Reinforcement Learning for Fair Adversarial Training

Tejaswini Medi, Levan Mikeladze, Margret Keuper

Abstract

Deep neural networks remain highly vulnerable to adversarial perturbations, and adversarial training (AT) has become a widely used approach for improving robustness. However, improvements in average robust accuracy often mask substantial class-wise disparities: while some classes become more robust, others may remain disproportionately vulnerable under attack. This imbalance raises an important adversarial fairness concern, particularly in vision tasks where reliable robustness is expected across all categories. To address this challenge, we propose RL-FAT, a reinforcement-learning-inspired fair adversarial training framework that uses policy-gradient based feedback from adversarial predictions. RL-FAT interprets the prediction distribution as a policy and combines correctness-based prediction rewards with class-wise value estimates to compute class-specific advantages for policy-gradient optimization. This enables the model to adaptively focus on class-wise misclassification. Furthermore, we introduce a fairness-emphasis adversarial loss that assigns stronger training pressure to classes with high adversarial loss, thereby mitigating class-wise robustness disparity. By combining reinforcement-driven adaptation with fairness-emphasis regularization, RL-FAT improves adversarial robustness while promoting a more balanced robustness distribution across classes. Extensive experiments demonstrate that our method achieves competitive robust accuracy and substantially reduces class-wise robustness imbalance compared with standard adversarial training baselines.

Introduction

Adversarial training is one of the most effective approaches for improving the robustness of deep neural networks by training models on adversarially perturbed examples, leading to substantial gains in average robust accuracy under strong attacks [0, 3, 8, 9, 10, 11, 12, 13, 14, 15, 16]. Among existing methods, TRADES [17] provides a theoretically motivated objective that balances natural accuracy and adversarial robustness, making it one of the most widely used baselines in robust optimization. However, improvements in average robust accuracy can still hide severe class-wise vulnerabilities [16, 40]. For example, in an autonomous driving system, a model may remain robust when recognizing common objects such as cars or

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

Gap Clean Robust Mean Average

(a) ResNet-18

(b) XCiT-S12

Figure

CIFAR-10 classes

Figure

CIFAR-10 classes

Figure 1: Per-class clean and AutoAttack robust accuracy at ε=8/255\varepsilon = 8/255 on CIFAR-10. The shaded region indicates the clean-to-robust performance gap, while dotted horizontal lines denote the corresponding mean average clean and robust accuracies.

road signs, while failing under small adversarial perturbations on less frequent but safety-critical classes such as pedestrians, cyclists, or emergency vehicles. In such cases, the model may appear reliable on average, although its behavior on hard classes determines the actual real-world risk. This motivates evaluating robust classifiers not only by average robust accuracy, but also by worst-class robust accuracy and class-wise robust fairness. Such class-wise disparities commonly studied as the robust fairness problem [1, 2, 6, 5, 5, 6, 4, 5].

Figure 1 illustrates this phenomenon using ResNet-18 [4] and XCiT-S12 [0] as representative CNN-based and transformer-based RobustBench models [1, 6, 6], respectively. For both architectures, the disparity between average and worst-class accuracy is substantially larger under adversarial evaluation than under clean evaluation. This suggests that robust unfairness is not limited to a single architecture family, but is a broader issue in current adversarially trained robust models. Therefore, improving robust fairness is necessary to ensure that robust models perform reliably across all semantic class categories.

Recent robust fairness methods aim to improve worst-class robustness while preserving competitive average robust accuracy. WAT [2] optimizes the worst-class objective using no-regret dynamics, but remains tied to explicit class-level worst-case updates. BAT [5] shows that robust unfairness can also arise during adversarial example generation due to class-dependent attack difficulty and biased target-class tendencies, but mainly addresses these biases through designed balancing rules. CFA [6] argues that different classes prefer different adversarial training configurations, such as perturbation margins, regularization strengths, and class-wise weights, and calibrates them separately. DAFA [2] introduces an inter-class distance-aware strategy by assigning larger robustness trade-offs to visually or semantically similar classes through class-specific perturbation margins and loss weights. From a distributional perspective, FAAL [4] formulates robust fairness as a distributionally robust optimization problem and learns class-wise adversarial weights through a min-max-max objective. ABSLD [1] studies robust fairness in adversarial distillation by assigning class-dependent soft-label temperatures.

Although these methods demonstrate the importance of adaptive class-aware training, they often rely on designed class-wise rules, predefined distance metrics, distillation-specific designs, or additional optimization mechanisms rather than learning fairness-aware adjustments directly from objective level training feedback.

To address this limitation, we propose RL-FAT, a reinforcement learning-inspired fair adversarial training framework that adaptively promotes robust fairness across classes. The key idea is to learn class-aware training emphasis from adversarial prediction feedback. In RL-FAT, the model's adversarial prediction is interpreted as an action, prediction correctness provides a positive or negative reward, and a class-wise baseline estimates the expected reward for each class. The resulting class-specific advantage guides policy-gradient optimization, allowing the model to focus on reducing class-wise misclassification. We further combine this reinforcement-driven objective with a fairness-emphasis adversarial loss, where classes with above-average adversarial loss receive stronger training emphasis. Together, these components enable RL-FAT to perform adaptive class-aware robust optimization without explicitly designing class-specific adversarial training configurations. Our contributions are summarized as follows:

• We propose RL-FAT, a reinforcement learning-inspired fair adversarial training framework that uses class-wise prediction correctness feedback, class-specific advantage estimation, and fairness-emphasis adversarial loss to improve worst-class robustness while preserving competitive average robust accuracy.

• We evaluate robust fairness using worst-class robust accuracy and a relative robust fairness metric that measures whether improvements in worst-class robustness exceed changes in average robustness.

• Experiments on CIFAR-10, CIFAR-100, and ImageNette show that RL-FAT consistently improves worst-class robust accuracy and robust fairness under strong attacks such as AutoAttack, while maintaining competitive overall clean and robust accuracy.

References (42)