Abstract
Standard adversarial training (AT) techniques often impose a significant "accuracy tax," particularly on fine-grained classification tasks, by treating all misclassifications as equally detrimental. This paper introduces Wasserstein Projected Gradient Descent (WPGD), a novel framework that incorporates cost-sensitivity into adversarial robustness. By leveraging Optimal Transport theory and a predefined label metric, WPGD enables "directional" hardening of decision boundaries. This approach allows models to maintain high accuracy among semantically similar classes while remaining robust against dangerous misclassifications between distant classes. Experimental results across MNIST, CIFAR, and Tiny-ImageNet demonstrate that WPGD provides a more flexible and pragmatic trade-off between robustness and accuracy for real-world applications.
Introduction
In safety-critical domains such as autonomous driving or medical diagnosis, the cost of misclassification is asymmetric. Misidentifying a pedestrian as a lamppost is far more severe than misidentifying a cat as a dog. However, traditional Adversarial Training (AT)—the primary defense against adversarial attacks—is typically "isotropic," meaning it attempts to harden the model against all perturbations equally. This often leads to a degradation in clean accuracy, as the model loses the ability to make fine-grained distinctions in its pursuit of global robustness.
Problem Statement
Deep Neural Networks (DNNs) are vulnerable to small, imperceptible perturbations that can flip predictions. While AT defends against these, it frequently destroys a model's performance on un-attacked data. The authors observe that this loss in accuracy is structured: robust models tend to lose their fine-grained vision, failing to distinguish between visually similar classes. In industrial settings, there is a critical need to harden boundaries between "dangerous" class pairs without sacrificing nuanced classification performance.
Methodology: Wasserstein Projected Gradient Descent (WPGD)
The proposed WPGD framework moves away from isotropic defense toward a cost-sensitive approach. The method relies on three core components:
- The Label Metric ($C$): A cost matrix where $C_{k,k'}$ represents the penalty for mistaking class $k$ for class $k'$. This metric can be derived from human visual similarity or semantic distances (e.g., WordNet).
- Wasserstein Loss: Instead of standard Cross-Entropy, WPGD utilizes a loss function based on the Wasserstein distance (Earth Mover's Distance). This measures the "work" required to transform the predicted probability distribution into the ground truth, weighted by the cost matrix $C$.
- Directional Hardening: During training, WPGD searches for adversarial perturbations that maximize this Wasserstein cost. This focuses the model's defensive capacity on boundaries between classes that are semantically or visually distant.
Crucially, the authors prove that for single-label classification, the Wasserstein loss has a closed-form solution, ensuring that WPGD maintains the same computational efficiency as standard PGD training.
Key Insights and Results
Visual Metric Correlation
A central finding is that the errors made by robust models are not random; they align closely with human notions of visual similarity. Robustness tends to "flatten" the complex decision boundaries required for fine-grained tasks. WPGD allows developers to tune this behavior using a $p$-parameter, which acts as a knob to balance fine-grained accuracy against robustness leakage between similar classes.
Experimental Performance
The researchers validated WPGD on MNIST, CIFAR-10/100, and Tiny-ImageNet. Key results include:
- Optimized Trade-offs: WPGD consistently provided better control over the robustness-accuracy trade-off than standard PGD.
- Directional Robustness: On CIFAR-10, WPGD-trained networks were significantly more robust against perturbations between visually distant classes (e.g., "airplane" vs. "frog") while maintaining higher accuracy on similar pairs (e.g., "dog" vs. "cat").
- Scalability: On Tiny-ImageNet, WPGD successfully pushed the model toward making more "meaningful" errors rather than arbitrary ones, as indicated by lower weighted robustness scores.
Conclusion
WPGD offers a pragmatic path for deploying deep learning in real-world environments where mistake costs are non-uniform. By treating robustness as a directional, cost-sensitive problem, the framework allows for the creation of models that are both performant and safe. Future work may explore automated hyperparameter tuning and the application of this framework to non-image domains such as time-series analysis or fraud detection.
Summary updated