NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving adversarial robustness of deep neural networks by using semantic information

Lina Wang, Xingshu Chen, Rui Tang, Yawei Yue, Yi Zhu, Xuemei Zeng, Wei Wang

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success in computer vision, yet they remain notoriously fragile. A minor, imperceptible tweak to an image—known as an adversarial perturbation—can cause a state-of-the-art model to misclassify a "stop sign" as a "speed limit" sign with high confidence.

The traditional defense, Adversarial Training (AT), is a brute-force approach that involves generating adversarial examples for every image in a dataset and retraining the model. This process is computationally expensive, slow, and often fails to generalize against novel attack types. This research introduces Region Adversarial Training (RAT), a method that identifies and patches a model's "semantic blind spots" using Targeted Universal Perturbations (TUPs). By focusing on the semantic nature of vulnerabilities, RAT significantly boosts robustness using only a fraction of the data required by standard methods.

Targeted Universal Perturbations (TUPs)

Unlike standard adversarial noise, which is unique to a specific image, a TUP is image-agnostic. It is a single noise pattern that, when added to any image from a dataset, pushes the model toward a specific target class.

Visualizing Targeted Universal Perturbations (TUPs). Each row represents a source class and each column a target class, revealing structural patterns that exploit model blind spots.

As shown in Figure 1, these TUPs are not merely random noise; they contain "semantic information." When visualized, they often appear as ghostly, structural outlines of the target class. This suggests that adversarial attacks are not just exploiting mathematical chaos, but are finding specific features—or "ghost" concepts—that the model is over-sensitive to. The existence of TUPs implies that DNNs possess consistent, systematic blind spots across their entire input space.

Region Adversarial Training (RAT)

Instead of training on millions of individual adversarial examples, the RAT framework focuses on the "regions" near decision boundaries. It uses TUPs to identify the most fragile parts of a class's boundary and reinforces the model in those specific directions.

The Region Adversarial Training (RAT) workflow. The process involves identifying semantic vulnerabilities (TUPs) and using them to reinforce the model's decision boundaries.

The RAT pipeline (Figure 3) operates in three main stages:

  1. Inference of a Common Network: Identifying how a standard model (Network A) misclassifies clean inputs under TUP influence.
  2. Region Adversarial Training: Generating adversarial inputs by combining clean data with TUPs to retrain the model.
  3. Inference of a Robust Network: Producing a final model (Network B) that correctly classifies adversarial inputs.

Crucially, RAT is highly data-efficient. While standard AT requires the full dataset, RAT can achieve high robustness using a very small subset—as few as 100 to 1,000 samples—because it targets universal weaknesses rather than image-specific ones.

Experimental Results

The authors evaluated RAT on two gold-standard benchmarks: MNIST (handwritten digits) and CIFAR-10 (object categories). The results demonstrated massive gains in robustness:

  • CIFAR-10: Accuracy under attack rose from less than 31% to over 72%.
  • MNIST: Accuracy under attack jumped from under 14% to over 98%.
  • Broad Defense: Models trained via RAT became resistant to a wide variety of attacks beyond TUPs, including the Fast Gradient Sign Method (FGSM), Projected Gradient Descent (PGD), and the Carlini & Wagner (C&W) attack.
  • Transferability: TUPs generated for one model often worked on entirely different architectures, indicating that different neural networks tend to learn similar (and similarly flawed) decision boundaries.

Conclusion and Future Work

This research highlights that DNN vulnerabilities are systematic and semantic. By identifying these universal blind spots, RAT provides a computationally efficient path toward robust AI. However, challenges remain. The current TUP optimization is "greedy" and may not find the most damaging perturbations possible. Furthermore, scaling these methods to high-resolution datasets like ImageNet remains a necessary next step, as the search space for perturbations grows exponentially with image size. Future work will also explore multi-target training to create a more comprehensive defense against diverse adversarial threats.

Summary updated

BibTeX
@article{wang2021improving,
  author = {Lina Wang and Xingshu Chen and Rui Tang and Yawei Yue and Yi Zhu and Xuemei Zeng and Wei Wang},
  title = {{Improving adversarial robustness of deep neural networks by using semantic information}},
  journal = {Knowledge-Based Systems},
  year = {2021},
  doi = {10.1016/j.knosys.2021.107141},
}
Figure