Abstract
We introduce a new class of optimal-transport-regularized divergences, $D^c$, constructed via an infimal convolution between an information divergence, $D$, and an optimal-transport (OT) cost, $C$, and study their use in distributionally robust optimization (DRO). In particular, we propose the $ARMOR_D$ methods as novel approaches to enhancing the adversarial robustness of deep learning models. These DRO-based methods are defined by minimizing the maximum expected loss over a $D^c$-neighborhood of the empirical distribution of the training data. Viewed as a tool for constructing adversarial samples, our method allows samples to be both transported, according to the OT cost, and re-weighted, according to the information divergence; the addition of a principled and dynamical adversarial re-weighting on top of adversarial sample transport is a key innovation of $ARMOR_D$. $ARMOR_D$ can be viewed as a generalization of the best-performing loss functions and OT costs in the adversarial training literature; we demonstrate this flexibility by using $ARMOR_D$ to augment the UDR, TRADES, and MART methods and obtain improved performance on CIFAR-10 and CIFAR-100 image recognition. Specifically, augmenting with $ARMOR_D$ leads to 1.9% and 2.1% improvement against AutoAttack, a powerful ensemble of adversarial attacks, on CIFAR-10 and CIFAR-100 respectively.
Introduction
Adversarial attacks—tiny, calculated perturbations that flip a model's prediction—remain a persistent challenge in deep learning. While many defenses exist, most fall into one of two camps: they either nudge training samples to new locations (Optimal Transport) or change how much the model cares about specific samples (Information Divergence).
Existing methods usually pick one approach. However, a truly robust model should handle both: it needs to be resilient to samples being moved and to certain "troublesome" samples being more influential than others. In this work, we introduce ARMOR, a framework that utilizes "Optimal Transport Regularized Divergences" ($D^c$) to simultaneously transport adversarial samples and dynamically re-weight them during training.
The ARMOR Framework
The core of our approach is a new class of divergences, $D^c$, created via an infimal convolution. This can be conceptualized as a two-step transformation process to turn an original data distribution ($P$) into an adversarial one ($Q$):
- Redistribute: First, sample weights are adjusted to create an intermediate distribution ($\eta$), incurring a cost based on an information divergence (e.g., KL-divergence).
- Transport: Then, those weighted samples are moved to new locations to reach $Q$, incurring a cost based on an Optimal Transport (OT) cost.
Unlike previous methods that used fixed or manually tuned weights, ARMOR calculates principled and dynamical adversarial re-weighting. During training, the model automatically identifies which samples are most vulnerable and increases their weight, forcing the optimizer to focus on the most difficult cases.
Experimental Evaluation
We evaluated the ARMOR family of methods on standard computer vision benchmarks, including MNIST, CIFAR-10, and CIFAR-100. A key feature of ARMOR is its ability to act as a dynamic filter; for certain divergences, the optimal strategy is to give "easy" samples a weight of zero, allowing the model to focus entirely on the adversarial frontier.
As shown in the results above, ARMOR variants (such as $ARMOR_{KL}$ and $ARMOR_{\alpha}$) achieve significantly higher accuracy and lower error rates (FNR/FPR) compared to standard non-robust or single-attack-trained models. Specifically, on MNIST, ARMOR variants achieved over 98% accuracy under PGD attacks, whereas a non-robust model dropped to 25.36%.
Key Insights and Results
- Computational Efficiency: The derived tractable reformulation of $D^c$ only adds two extra real-valued parameters to the optimization, making it a "drop-in" enhancement for existing methods like TRADES or MART.
- Robustness Gains: Against AutoAttack, a rigorous ensemble of diverse attacks, augmenting existing methods with ARMOR led to a 1.9% improvement in robust accuracy on CIFAR-10 and a 2.1% improvement on CIFAR-100.
- Qualitative Success: On a subset of "difficult" MNIST digits where standard PGD training failed, ARMOR correctly classified 88% of the samples, compared to only 44% for standard PGD.
Conclusion
ARMOR provides a theoretically grounded and computationally efficient framework for enhancing adversarial robustness by combining the strengths of Optimal Transport and Information Divergence. While hyperparameter tuning remains important for balancing robustness and standard accuracy, the framework's ability to perform dynamical re-weighting represents a significant step forward in Distributionally Robust Optimization for deep learning.
Summary updated