Abstract
Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks. While adversarial training (AT) is a common defense, standard methods often generate examples that cross semantic boundaries, forcing models to learn incorrect labels for transformed images. This paper proposes Semantics-Preserving Adversarial Training (SPAT), which utilizes label smoothing during the attack phase to ensure perturbations remain semantically consistent. SPAT achieves state-of-the-art robustness on CIFAR-10 and CIFAR-100 by balancing invariance and semantic integrity.
Introduction
DNNs frequently fail when subjected to small, human-imperceptible perturbations known as adversarial attacks. To mitigate this, adversarial training (AT) incorporates these perturbations into the training loop, instructing the model to maintain its classification despite the noise. However, a fundamental assumption in standard AT is that any image within a small $\epsilon$-ball of the original remains semantically identical. This paper challenges that assumption, demonstrating that strong attacks often push images across semantic boundaries, leading to "non-semantics-preserving" data that harms model robustness.
The Problem of Semantic Shifting
Standard AT methods typically use Projected Gradient Descent (PGD) with a Cross-Entropy (CE) loss to find the most challenging version of an image. This process often strips away features of the true class and introduces features of target classes. For instance, a "ship" might be perturbed until it visually resembles an "airplane." If the model is forced to label this "airplane-looking" image as a "ship," it learns a harmful type of invariance that introduces noise into the training process.
Semantics-Preserving Adversarial Training (SPAT)
The core innovation of SPAT is the introduction of PGD-LS, which replaces the standard Cross-Entropy loss in the attack phase with Label Smoothed Cross Entropy (LSCE). By assigning a small probability to all classes rather than 100% to the true class, the attack is discouraged from completely erasing the original identity. Instead, it focuses on perturbing pixels shared among classes, preserving the fundamental semantics of the image.
SPAT is designed as a modular "plug-in" for the inner maximization step of existing adversarial training frameworks. The authors demonstrate its effectiveness when combined with leading methods such as TRADES and MART.
Results and Hyperparameter Sensitivity
The researchers evaluated SPAT on CIFAR-10 and CIFAR-100. On CIFAR-10, combining MART with SPAT achieved a PGD-20 robust accuracy of 59.59%, a significant improvement over the baseline MART (58.46%). Similar gains were observed on CIFAR-100, where MART + SPAT reached 34.66% robust accuracy.
A critical component of SPAT is the hyperparameter $\alpha$, which controls the degree of label smoothing. This parameter allows for a fine-tuned balance between robustness and semantic preservation. As shown in the performance analysis, increasing $\alpha$ leads to higher accuracy under attack, suggesting that preserving semantics during training results in a more robust final model.
The method also shows increased stability when dealing with larger perturbation limits ($\epsilon$), where semantic shifting is most prevalent.
Conclusion
Semantics-Preserving Adversarial Training (SPAT) addresses a fundamental flaw in standard adversarial training by ensuring that training examples remain semantically consistent with their labels. By using label smoothing during the attack generation phase, SPAT prevents the introduction of harmful bias and achieves superior robustness on standard benchmarks. Future work will focus on automatically optimizing the $\alpha$ parameter to further streamline the training process.
Summary updated