RL-FAT: Reinforcement Learning for Fair Adversarial Training
Organizations: Chair for Machine Learning University of Mannheim Germany · MPI for Informatics Saarland Informatics Campus Germany
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.
Figures & tables
| Method | Avg. Clean | Worst Clean | Avg. Robust | Worst Robust | |
|---|---|---|---|---|---|
| TRADES | 81.75 0.61 | 66.52 1.53 | 23.80 1.35 | 0.00 | |
| FRL | 82.02 0.20 | 70.27 0.76 | 44.91 0.30 | 27.60 0.74 | 24.72 |
| WAT | 79.02 0.21 | 70.00 1.31 | 45.92 0.19 | 29.44 1.39 | 30.40 |
| CFA | 79.02 0.13 | 64.01 0.04 | 49.30 0.21 | 27.21 0.67 | 14.17 |
| DAFA | 81.49 0.63 | 66.66 0.66 | 48.03 0.80 | 31.02 0.66 | 32.75 |
| RL-FAT | 82.99 0.09 | 67.52 0.44 | 47.88 0.20 | 32.38 0.44 | 38.77 |
| Method | Avg. Clean | Worst Clean | Avg. Robust | Worst Robust | |
|---|---|---|---|---|---|
| TRADES | |||||
| FRL | |||||
| WAT | |||||
| CFA | |||||
| DAFA | |||||
| RL-FAT |
| Method | Avg. Clean | Worst Clean | Avg. Robust | Worst Robust | |
|---|---|---|---|---|---|
| TRADES | |||||
| FRL | |||||
| WAT | |||||
| CFA | |||||
| DAFA | |||||
| RL-FAT |
| Steered Class | Avg. Clean | Worst Clean | Worst Clean Class | Target Clean | Avg. Robust | Worst Robust | Worst Robust Class | Target Robust |
|---|---|---|---|---|---|---|---|---|
| Airplane | Dog (4/5) | Dog (3/5) | ||||||
| Automobile | Dog (5/5) | Dog (4/5) | ||||||
| Bird | Deer (5/5) | Deer (5/5) | ||||||
| Cat | Dog (4/5) | Deer (5/5) | ||||||
| Deer | Bird (5/5) | Frog (5/5) | ||||||
| Dog | Cat (5/5) | Cat (5/5) |
| Variant | Avg. Clean | Worst Clean | Avg. Robust | Worst Robust | |
|---|---|---|---|---|---|
| TRADES | |||||
| RL-FAT w/o fairness loss | |||||
| RL-FAT worst-case loss | |||||
| RL-FAT | 38.77 |
| Method | Avg. Clean | Worst Clean | Avg. Robust | Worst Robust | |
|---|---|---|---|---|---|
| PGD | |||||
| FRL | |||||
| CFA | |||||
| DAFA | |||||
| RL-FAT | 67.49 |
| Method | Avg. Clean | Worst Clean | Avg. Robust | Worst Robust | |
|---|---|---|---|---|---|
| PGD | |||||
| FRL | |||||
| RL-FAT |
| Method | Overall AUROC | Overall AUPR-IN | Overall AUPR-OUT | Worst AUROC | Worst AUPR-IN | Worst AUPR-OUT |
|---|---|---|---|---|---|---|
| TRADES Zhang et al. (2019) | 79.05 | 69.27 | 86.56 | 65.84 | 7.59 | 97.25 |
| FRL Xu et al. (2021a) | 85.90 | 79.01 | 91.16 | 76.58 | 12.83 | 98.36 |
| WAT Li and Liu (2023) | 64.68 | 50.14 | 76.25 | 46.98 | 4.46 | 94.44 |
| DAFA Lee et al. (2024) | 78.82 | 71.51 | 85.04 | 67.35 | 8.78 | 97.30 |
| RL-FAT | 83.78 | 78.57 | 88.65 | 77.79 | 24.86 | 98.40 |
| Corruption | S1 | S2 | S3 | S4 | S5 |
|---|---|---|---|---|---|
| Gaussian noise | +0.5 | +0.5 | +0.3 | +0.5 | +0.4 |
| Shot noise | +0.6 | +0.4 | +0.5 | +0.4 | +0.1 |
| Impulse noise | +0.9 | +1.0 | +0.4 | +0.5 | -0.9 |
| Snow | +0.4 | +0.7 | +0.5 | +1.6 | +2.3 |
| Method | Time/epoch | Mem. |
|---|---|---|
| TRADES | 28.25s | 1.84G |
| WAT | 69.18s | 1.80G |
| FRL | 34.60s | 1.89G |
| DAFA | 28.27s | 1.85G |
| CFA | 39.40s | 1.98G |
| RL-FAT | 40.00s | 1.85G |
Adversarial Training
Adversarial training improves model reliability by training on examples or conditions designed to expose weaknesses.
See all 177 papers