[Paper Review] Towards Robust Neural Networks via Random Self-ensemble
This paper proposes Random Self-Ensemble (RSE), a defense method that enhances deep neural network robustness by inserting random noise layers before each convolutional layer during both training and inference. By training with noisy stochastic gradient descent and ensembling predictions across multiple noisy forward passes, RSE achieves 86.1% accuracy on CIFAR-10 with VGG16 under strong C&W attacks—significantly outperforming prior defenses and existing methods—while being simple to implement and requiring no additional memory.
Recent studies have revealed the vulnerability of deep neural networks: A small adversarial perturbation that is imperceptible to human can easily make a well-trained deep neural network misclassify. This makes it unsafe to apply neural networks in security-critical applications. In this paper, we propose a new defense algorithm called Random Self-Ensemble (RSE) by combining two important concepts: {\bf randomness} and {\bf ensemble}. To protect a targeted model, RSE adds random noise layers to the neural network to prevent the strong gradient-based attacks, and ensembles the prediction over random noises to stabilize the performance. We show that our algorithm is equivalent to ensemble an infinite number of noisy models $f_ε$ without any additional memory overhead, and the proposed training procedure based on noisy stochastic gradient descent can ensure the ensemble model has a good predictive capability. Our algorithm significantly outperforms previous defense techniques on real data sets. For instance, on CIFAR-10 with VGG network (which has 92\% accuracy without any attack), under the strong C\&W attack within a certain distortion tolerance, the accuracy of unprotected model drops to less than 10\%, the best previous defense technique has $48\%$ accuracy, while our method still has $86\%$ prediction accuracy under the same level of attack. Finally, our method is simple and easy to integrate into any neural network.
Motivation & Objective
- Address the vulnerability of deep neural networks to imperceptible adversarial perturbations that cause misclassification.
- Develop a defense mechanism that improves robustness without increasing model size or requiring architectural changes.
- Enable effective robustness against strong white-box attacks like C&W while maintaining high accuracy on natural images.
- Provide a simple, plug-and-play defense that can be applied to any pre-trained neural network.
Proposed method
- Introduce a 'noise layer' that injects random noise into the input before each convolutional layer during both training and inference.
- Train the network using noisy stochastic gradient descent, where gradients are perturbed by noise during back-propagation to regularize the model.
- During inference, perform multiple forward passes with different random noise realizations and ensemble the predictions to improve robustness.
- Theoretical analysis shows that RSE is equivalent to ensembling an infinite number of noisy models $ f_\epsilon $ with no memory overhead.
- The method implicitly adds a Lipschitz regularization to the model, enhancing robustness to input perturbations.
- The training process minimizes an upper bound on the loss of the ensemble model, ensuring good generalization and predictive performance.
Experimental results
Research questions
- RQ1Can random noise injection during training and inference improve adversarial robustness without increasing model size?
- RQ2How does self-ensemble over randomly perturbed models compare to traditional ensemble methods in terms of robustness and efficiency?
- RQ3To what extent does RSE improve robustness against strong white-box attacks like C&W compared to existing defense techniques?
- RQ4Does the proposed method maintain high accuracy on natural (non-adversarial) images while significantly improving robustness?
- RQ5Can RSE be effectively applied to various architectures and datasets without architectural modifications?
Key findings
- On CIFAR-10 with VGG16, RSE achieves 86.1% accuracy under the C&W untargeted attack with a distortion tolerance of 0.21, outperforming the best prior defense (48%) and the unprotected model (under 10%).
- RSE significantly increases the required distortion for successful attacks—adversarial examples under RSE are much more distorted than those under other defenses, as shown in Fig. 2 and Fig. 5.
- The method maintains high test accuracy on natural images, with only a slight degradation compared to the standard model, indicating minimal impact on clean data performance.
- Ensembling over 10 noisy forward passes provides near-saturation of accuracy gains, suggesting that 10–50 ensembles are sufficient for optimal performance.
- RSE outperforms both standard adversarial training and a stronger variant (Adversarial Training II) in both robustness and training efficiency, with the latter requiring ~10× longer training time.
- RSE is effective not only against untargeted attacks but also against targeted attacks, as demonstrated by more distorted adversarial examples in visualizations (Fig. 6).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.