Abstract: Adversarial training is the most effective method to obtain adversarial robustness for deep neural networks by directly involving adversarial samples in the training procedure. To obtain an accurate and robust model, the weighted-average method is applied to optimize standard loss and adversarial loss simultaneously. In this paper, we argue that the weighted-average method does not provide the best tradeoff for the standard performance and adversarial robustness. We argue that the failure of the weighted-average method is due to the conflict between the gradients derived from standard and adversarial loss, and further demonstrate such a conflict increases with attack budget theoretically and practically. To alleviate this problem, we propose a new trade-off paradigm for adversarial training with a conflict-aware factor for the convex combination of standard and adversarial loss, named Conflict-Aware Adversarial Training (CA-AT). Comprehensive experimental results show that CA-AT consistently offers a superior trade-off between standard performance and adversarial robustness under the settings of adversarial training from scratch and parameter-efficient finetuning.
The Problem: The Robustness Tax and Gradient Conflict
Deep learning models are notoriously fragile; a tiny, imperceptible bit of noise (an adversarial attack) can flip a correct prediction to a wrong one. Adversarial Training (AT) is the gold-standard defense, where models are trained on these "broken" examples to build resilience.
However, AT usually comes with a "robustness tax": as you make the model more robust, its accuracy on normal, clean data typically drops. The standard approach (Vanilla AT) tries to balance this by minimizing a weighted average of clean loss and adversarial loss. The authors identify a fundamental flaw here: the gradients (the "directions" the model needs to learn in) for these two losses often conflict. When the adversarial attack is strong, these gradients can point in opposite directions, causing the model to get stuck in sub-optimal states that sacrifice too much clean-data performance.
As shown in the figure above, as the "attack budget" $\delta$ (the amount of noise an attacker is allowed to add) increases, the gradient conflict becomes significantly more severe. The t-SNE visualizations clearly demonstrate that standard gradients ($g_c$) and adversarial gradients ($g_a$) cluster into increasingly distinct regions as the budget grows.
Methods: Conflict-Aware Adversarial Training (CA-AT)
The authors propose Conflict-Aware Adversarial Training (CA-AT). Instead of simply averaging the gradients, CA-AT treats the problem like a multi-task learning challenge where the "tasks" (clean accuracy vs. robustness) might disagree. The method relies on three core components:
- Conflict Metric ($\mu$): A metric to quantify the conflict based on the magnitudes of the clean gradient ($g_c$) and adversarial gradient ($g_a$), as well as the cosine similarity between them.
- Gradient Projection: Inspired by "gradient surgery" techniques, CA-AT monitors the angle between $g_c$ and $g_a$. If the angle is too wide (indicating high conflict), the algorithm projects the adversarial gradient onto a "cone" around the clean gradient. This ensures the adversarial update doesn't actively sabotage the clean-data performance.
- Dynamic Trade-off: This approach effectively creates a dynamic, conflict-aware trade-off factor that adjusts automatically during training based on how much the objectives are clashing.
Key Results and Insights
The researchers evaluated CA-AT on several widely used benchmarks, including CIFAR-10, CIFAR-100, and fine-grained datasets like CUB-Bird. Their findings highlight several advantages of the conflict-aware approach:
- Superior Pareto Fronts: In almost every test case—across different loss functions (Cross-Entropy, TRADES, CLP) and architectures (ResNet, WideResNet, ViT)—the CA-AT models occupied the "upper-right" portion of accuracy-vs-robustness plots, meaning they were better at both tasks simultaneously compared to Vanilla AT.
- Robustness to Large Budgets: While Vanilla AT often "collapses" or performs poorly when trained against very strong attacks (large $\delta$), CA-AT remains stable and continues to improve robustness without tanking standard accuracy.
- Efficiency: CA-AT works effectively in both "from-scratch" training and Parameter-Efficient Fine-Tuning (PEFT), making it a practical choice for adapting large, pre-trained models to robust applications.
Conclusion
CA-AT demonstrates that the trade-off between accuracy and robustness is not just a matter of weighting, but a matter of resolving directional conflicts in the optimization landscape. By prioritizing standard accuracy when conflict is high and using gradient surgery to align objectives, CA-AT pushes models closer to the optimal Pareto front. Future work may explore data-centric strategies to identify if specific training samples are the primary drivers of these gradient conflicts.
Summary updated