Robust Sparse Regularization: Simultaneously Optimizing Neural Network Robustness and Compactness

Adnan Siraj Rakin, Zhezhi He, Li Yang, Yanzhi Wang, Liqiang Wang, Deliang FanarXiv 2019

Introduction

Deep Neural Networks (DNNs) are highly susceptible to adversarial perturbations—small, often imperceptible changes to input data that cause incorrect classifications. A common strategy to mitigate this vulnerability is increasing model capacity, based on the assumption that larger models can better learn robust features. However, the resulting high-capacity models are often unsuitable for deployment on resource-constrained edge devices. This paper introduces Robust Sparse Regularization (RSR), a framework that challenges the necessity of large models by demonstrating that neural networks can be simultaneously pruned and hardened.

Methodology

The RSR framework integrates three distinct techniques into a unified training objective:

  1. Adversarial Training: The model is trained using a combination of clean and adversarial examples (generated via Projected Gradient Descent), establishing a baseline for robustness.
  2. Channel-wise Noise Injection (CNI): Trainable Gaussian noise is injected into the weights of each channel. This forces the network to prioritize features that remain stable under weight fluctuations, improving generalization.
  3. Lasso ($L_1$) Regularization: A penalty is applied to the weights to encourage sparsity, effectively pushing non-essential weights toward zero.
Comparison of weight distributions for clean, adversarial (ADV), and RSR-trained models. RSR shows a significantly higher concentration of weights near zero.

By combining these elements, RSR prepares the network for post-training weight pruning. Because the Lasso penalty and CNI have already concentrated the weight distribution around zero, removing low-magnitude weights does not significantly degrade performance.

Sparsity and Pruning Analysis

A critical finding of this work is the relationship between regularization and pruning potential. In standard adversarial training, weights are distributed more broadly. In contrast, RSR-trained models exhibit extreme sparsity even before explicit pruning.

Analysis of the percentage of weights falling below various thresholds (Gamma). RSR maintains a much higher proportion of near-zero weights compared to standard or adversarial baselines.

As shown in the analysis of weight thresholds, nearly 90% of RSR weights fall below a threshold of $10^{-3}$, compared to less than 20% for standard adversarial training. This allows for aggressive pruning—up to 85%—without the "robustness tax" typically associated with model compression.

Experimental Results

The authors evaluated RSR on the CIFAR-10 dataset using ResNet-18, ResNet-20, and VGG-16 architectures. The results indicate that RSR-trained models often outperform their full-sized counterparts:

  • ResNet-18: Pruning 85% of the weights resulted in a 0.68% increase in clean accuracy and an 8.72% improvement in adversarial accuracy against PGD attacks.
  • VGG-16: Achieved a 9.48% increase in robustness, demonstrating the method's effectiveness on larger, more redundant architectures.
  • Black-Box Robustness: RSR models showed improved resistance to Zeroth Order Optimization (ZOO) attacks, reducing attacker success rates by 12% over baselines, confirming that the robustness is genuine and not a result of gradient masking.

Conclusion

Robust Sparse Regularization demonstrates that model compactness and adversarial robustness are not mutually exclusive. By leveraging channel-wise noise and Lasso regularization, RSR produces sparse models that are more resilient than dense ones. While future work is needed to scale these findings to larger datasets like ImageNet and optimize for structured hardware acceleration, RSR provides a promising path for deploying secure AI on edge devices.

Summary updated

BibTeX
@misc{rakin2019robust,
  author = {Adnan Siraj Rakin and Zhezhi He and Li Yang and Yanzhi Wang and Liqiang Wang and Deliang Fan},
  title = {{Robust Sparse Regularization: Simultaneously Optimizing Neural Network Robustness and Compactness}},
  year = {2019},
  eprint = {1905.13074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.13074},
}
Figure