A3T: accuracy aware adversarial training

Enes Altinisik, Safa Messaoud, Husrev Taha Sencar, Sanjay Chawla · DOI

Abstract

Adversarial training (AT) is the primary defense against adversarial attacks on deep neural networks, yet it frequently results in severe overfitting and a significant drop in accuracy on clean data. This paper introduces Accuracy Aware Adversarial Training (A3T), a novel approach that identifies a critical flaw in standard AT: the over-perturbation of already misclassified samples. By strategically pushing these "hard" samples toward the decision boundary rather than deeper into incorrect territory, A3T achieves superior generalization and smoother loss landscapes across computer vision, natural language processing, and tabular data tasks.

Introduction: The Overfitting Challenge in Adversarial Training

Deep neural networks are highly susceptible to adversarial attacks—small, human-imperceptible perturbations designed to flip a model's prediction. While training on these adversarial examples (Adversarial Training) improves robustness, it often comes at the cost of "robust overfitting." Models trained this way frequently perform significantly worse on clean, unperturbed data compared to standard models.

The authors posit that this performance gap stems from how misclassified samples are handled during training. In standard AT, the algorithm attempts to maximize loss for every sample. For a sample the model already gets wrong, this maximization pushes the adversarial example further away from the decision boundary and deeper into the wrong class's territory. This forces the model to learn a jagged, overly complex decision boundary to compensate, leading to poor generalization.

Conceptual comparison of decision boundary warping: Standard Adversarial Training (a) leads to overfitting by over-perturbing misclassified samples, whereas A3T (b) maintains a smoother boundary.

Methodology: Accuracy Aware Adversarial Training (A3T)

The core innovation of A3T is a conditional logic applied to the inner maximization step of the adversarial training process. Instead of a uniform maximization strategy, A3T adapts based on the model's current prediction accuracy for a given input.

  • Standard AT: For every input $x$ with label $y$, find a perturbation $\delta$ that maximizes the loss $\ell(f(x+\delta), y)$.
  • A3T Logic:
    • If the sample is correctly classified ($\hat{y} = y$), it proceeds with standard AT, maximizing loss relative to the true label $y$.
  • If the sample is misclassified ($\hat{y} \neq y$), it maximizes the loss relative to the predicted label $\hat{y}$.

By maximizing loss against the incorrect prediction, the algorithm effectively pushes the adversarial example back toward the decision boundary and closer to the correct class. This prevents the creation of "too hard" samples that warp the decision boundary and degrade clean accuracy.

The A3T algorithmic pipeline, illustrating the conditional perturbation logic based on the model's initial prediction accuracy.

Additionally, the authors propose A3T+, a hybrid version that integrates A3T with existing techniques such as Label Smoothing Regularization (LSR) and Margin Maximization (MM) to further enhance performance.

Experimental Evaluation

The authors evaluated A3T across a diverse set of benchmarks, including synthetic 2D data, CIFAR-10 (Computer Vision), the GLUE benchmark (NLP), and various financial and income datasets (Tabular Data).

Key Results

  • Generalization Boost: On CIFAR-10, A3T achieved 88.98% natural accuracy, significantly outperforming standard AT (87.30%) and MART (84.24%).
  • Robustness Maintained: Under the rigorous AutoAttack (AA) benchmark, A3T+ achieved 55.59% accuracy, outperforming TRADES and standard AT.
  • NLP Improvements: On the GLUE benchmark, A3T improved average accuracy by 3.6% over conventional AT in attack-free settings and 1.5% under adversarial scenarios.
  • Tabular Success: In credit default prediction, A3T yielded the lowest Mean Squared Error (4.9), even outperforming the non-robust standard model (5.6).

Discussion and Insights

The "Hard" Sample Paradox

A3T highlights that not all difficult training examples are beneficial. Pushing a misclassified sample maximally away from the boundary creates a "hard" example that incentivizes the model to memorize noise rather than learn the underlying distribution. By targeting the geometric behavior of these points, A3T treats the root cause of boundary warping.

Landscape Smoothing

Analysis of the loss landscapes indicates that A3T results in a much smoother surface compared to standard AT or MART. A smoother landscape is a classic indicator of better robustness and generalization. Because A3T addresses a geometric root cause, it remains highly complementary to label-based methods like LSR.

Limitations and Future Work

Despite its success, A3T still experiences some degree of "robust overfitting," where test accuracy may drop late in training. This suggests that while A3T addresses boundary warping, other factors like optimizer dynamics or data distribution still play a role. Furthermore, A3T was found to be incompatible with Local Distributional Smoothness (LDS), likely due to conflicting geometric goals. Future work will focus on reducing the computational overhead inherent in PGD-based methods and exploring these incompatibilities.

Summary updated

BibTeX
@article{altinisik2023t,
  author = {Enes Altinisik and Safa Messaoud and Husrev Taha Sencar and Sanjay Chawla},
  title = {{A3T: accuracy aware adversarial training}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-023-06341-w},
}
Figure