Adversarial Training: embedding adversarial perturbations into the parameter space of a neural network to build a robust system

Shixian Wen, Laurent IttiarXiv 2019

Abstract

Adversarial training is the primary defense against adversarial attacks on neural networks, yet it remains computationally expensive and often degrades performance on clean data. This paper introduces a novel approach that shifts adversarial perturbations from the input space to the network's parameter space. By utilizing a specialized "adversarial perturbation bias" ($\delta_{AP}$), models can develop robust defenses with negligible computational overhead while maintaining high accuracy on clean datasets.

Introduction

Deep learning models are notoriously vulnerable to adversarial perturbations—small, often imperceptible changes to input data that cause incorrect classifications. While adversarial training (including adversarial examples in the training set) is effective, it faces three major hurdles: high computational cost due to repeated gradient calculations, a significant trade-off in clean-data accuracy, and limited generalization to unseen attacks.

This research proposes moving the defense from the "front door" (input pixels) to the "engine room" (network weights and biases). By embedding the essence of adversarial noise directly into the fully connected layers, the system can counteract malicious inputs internally without the need for generating millions of synthetic attack images during training.

Methods: The Adversarial Perturbation Bias

The core innovation is the Adversarial Perturbation Bias ($\delta_{AP}$). Instead of the traditional approach of modifying input pixels ($x_{adv} = x_{cln} + \delta_I$), the authors modify the bias terms within the network's architecture.

Figure 1: Comparison of standard adversarial training (b) vs. the proposed method using adversarial perturbation bias (c) to achieve robustness at negligible cost.

Key Mechanisms

  • Dynamic Updating: During the standard backward pass on clean images, the network "recycles" gradient information. It uses the Fast Gradient Sign Method (FGSM) to update the $\delta_{AP}$ terms, effectively storing attack patterns within the layer parameters.
  • Counteraction: In the forward pass, these learned biases act as a buffer. When an adversarial image enters the network, the internal $\delta_{AP}$ is designed to mathematically counteract the input noise, restoring the internal representations to a "clean" state.
  • Architectural Variants: The authors explored a simple Naive $\delta_{AP}$ and a more complex Multimodal $\delta_{AP}$, which uses "bias memories" and "bias weights" to capture more diverse attack distributions.

Experimental Results

The methodology was evaluated on the MNIST and FashionMNIST datasets using a modified LeNet architecture. The results demonstrate that robustness can be achieved even without training on adversarial examples.

Figure 6: Performance comparison on FashionMNIST across different training budgets. Blue bars represent the proposed $\delta_{AP}$ method, showing superior performance in both clean and adversarial accuracy compared to classical baselines (yellow).

Performance Across Computation Budgets

  1. Negligible Cost (Clean Training Only): On MNIST, accuracy against attacks jumped from 18.08% to 98.88% using $\delta_{AP}$. On FashionMNIST, adversarial accuracy rose from 11.87% to 54.07% (see Figure 6, group A/B).
  2. Moderate Cost (Adversarial Training Only): The $\delta_{AP}$ model significantly mitigated the accuracy trade-off. On FashionMNIST, it achieved 71.54% clean accuracy compared to 65.64% for the classical model (Figure 6, group C/D).
  3. High Cost (Hybrid Training): Combining clean and adversarial training with $\delta_{AP}$ yielded the best overall results, slightly outperforming classical adversarial training in both clean and adversarial metrics (Figure 6, group E/F).

Discussion and Future Work

By recycling gradients already calculated during standard training, the $\delta_{AP}$ method provides a "free" layer of defense. This approach alleviates the traditional trade-off between robustness and clean-data accuracy because the network is not forced to fit corrupted input distributions.

Future research should focus on scaling this method to deeper architectures like ResNets and Transformers, and evaluating its effectiveness against more sophisticated, iterative attacks such as Projected Gradient Descent (PGD). Additionally, the multimodal version's hyperparameter tuning (number of bias memories) presents an opportunity for automated optimization.

Summary updated

BibTeX
@misc{wen2019adversarial,
  author = {Shixian Wen and Laurent Itti},
  title = {{Adversarial Training: embedding adversarial perturbations into the parameter space of a neural network to build a robust system}},
  year = {2019},
  eprint = {1910.04279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.04279},
}
Figure