Improving DNN Robustness to Adversarial Attacks Using Jacobian Regularization

Daniel Jakubovitz, Raja Giryes

Abstract

Deep Neural Networks (DNNs) are highly susceptible to adversarial attacks—small, intentional perturbations that cause misclassification. We propose Jacobian Regularization, a method that penalizes the Frobenius norm of the network's Jacobian matrix during a post-processing training phase. This approach reduces the model's sensitivity to input changes, effectively increasing the distance to decision boundaries. Evaluation on MNIST and CIFAR datasets shows that Jacobian Regularization significantly enhances robustness against $\ell_2$ and $\ell_\infty$ attacks while maintaining high standard accuracy.

Introduction

Deep neural networks are notoriously fragile to "adversarial attacks"—tiny, invisible perturbations that flip a model's prediction. This paper introduces Jacobian Regularization as a lightweight post-processing training phase that penalizes the network's sensitivity to input changes, significantly boosting robustness against major attacks like DeepFool and FGSM with minimal impact on standard accuracy.

Problem Statement

Despite their state-of-the-art performance, Deep Neural Networks (DNNs) suffer from an inherent vulnerability: adversarial examples. By making mathematically calculated, human-imperceptible changes to an image (like a stop sign), an attacker can cause a DNN to misclassify it with high confidence.

This vulnerability is a major roadblock for deploying AI in safety-critical fields like autonomous driving or medical diagnosis. While existing defenses like "Adversarial Training" (training on the attacks themselves) exist, they are often computationally expensive and can degrade the model's accuracy on clean data. The authors seek a theoretically grounded, efficient way to "smooth out" the network's decision-making process to make it harder to fool.

Methodology

The core proposal is Jacobian Regularization. The Jacobian matrix represents the partial derivatives of the network's outputs with respect to its inputs—essentially, it measures how much the output changes when the input moves slightly.

Key Aspects of the Method

  • Frobenius Norm Penalty: The authors add a regularization term to the loss function based on the Frobenius norm of the Jacobian. By minimizing this norm, they force the network to be less sensitive to small input perturbations.
  • Post-Processing Strategy: Instead of training with this penalty from scratch, they apply it as a "second phase" of training after the model has already stabilized with high accuracy. This allows the model to learn the primary task first and then "harden" its defenses.
  • Efficiency: Unlike some complex defenses, this requires only one additional backpropagation step per training iteration, making it much more scalable than methods like Defensive Distillation or Cross-Lipschitz regularization.

Experimental Setup

The authors evaluated their approach on three standard computer vision benchmarks:

  • MNIST: Handwritten digits (10 classes).
  • CIFAR-10: Small color images of common objects (10 classes).
  • CIFAR-100: A more complex version of CIFAR with 100 classes.

Theoretical Insights

  • Sensitivity as the Root Cause: Adversarial attacks exploit the fact that DNNs are often "too sensitive" in certain directions of the input space. The Jacobian norm is a direct mathematical proxy for this sensitivity.
  • Geometric Justification: The authors prove that minimizing the Jacobian norm is mathematically linked to increasing the distance between a data point and the nearest decision boundary. It also promotes a "less positive" curvature of these boundaries, making it harder for "universal" perturbations to succeed.
  • Post-Processing Benefits: The authors found that applying regularization from the start often hurts final accuracy. By treating it as a fine-tuning step, they preserve the model's knowledge while smoothing its response.

Results and Discussion

The researchers compared their method against several baseline defenses, including Adversarial Training, Input Gradient Regularization, and Cross-Lipschitz Regularization.

  • Superior Robustness: On MNIST and CIFAR-10, Jacobian regularization consistently required larger perturbations to fool the network compared to other standalone defenses.
  • Synergy: The best results were often achieved by combining Jacobian regularization with traditional Adversarial Training.
  • Jacobian Reduction: The method drastically reduces the average sensitivity (Jacobian norm) of the network on both clean and perturbed data, as shown in the table below.
Average Frobenius norm of the Jacobian matrix at the original data and data perturbed by DeepFool.
  • Accuracy Preservation: On MNIST, the model maintained 98.44% accuracy (vs. 99.08% baseline) while nearly doubling the robustness metric ($\hat{\rho}_{adv}$) compared to no defense.

Conclusion and Future Work

While effective, the method has limitations. It was less effective against the JSMA (Jacobian-based Saliency Map Attack) on MNIST because JSMA targets the $\ell_0$ norm, whereas Jacobian regularization targets the $\ell_2$ norm.

Future work may involve evaluating the Jacobian at points in the input space beyond the training samples to further improve results. Additionally, exploring alternative matrix norms, such as the spectral norm, or applying different weights to Jacobian rows could prioritize defense for specific classes.

Summary updated

BibTeX
@inproceedings{jakubovitz2018improving,
  author = {Daniel Jakubovitz and Raja Giryes},
  title = {{Improving DNN Robustness to Adversarial Attacks Using Jacobian Regularization}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01258-8\_32},
}
Figure