Abstract
Convolutional Neural Networks (CNNs) are widely used in computer vision but remain vulnerable to adversarial examples—inputs with subtle perturbations that cause misclassification. This paper proposes a multi-layered detection framework comprising three novel methods: feature vector regularization, activation histogram analysis with SVM classification, and residual image analysis. By combining these approaches, we achieve high-accuracy detection on the MNIST dataset, outperforming standalone state-of-the-art methods without requiring full model retraining.
Introduction
The success of CNNs in image recognition is tempered by their susceptibility to adversarial attacks. These attacks introduce noise that is imperceptible to humans but catastrophic for neural networks. Existing defenses often rely on computationally expensive adversarial training or single-metric detectors that are easily bypassed. This research addresses the need for a robust, multi-angled detection framework capable of identifying various attack types, such as the Basic Iterative Method (BIM) and DeepFool, even in noisy environments.
Proposed Detection Methods
The authors introduce three distinct strategies to identify malicious inputs:
- Feature Vector Regularization: This approach treats image sets as a graph and applies nonlocal discrete regularization to smooth feature vectors from the penultimate layer. A secondary classifier (the last layer) is retrained on these smoothed features. Discrepancies between the original and regularized outputs flag potential adversarial inputs.
- Histogram-Based Activation Analysis: Adversarial attacks often induce unnatural "spikes" in internal CNN activations. By generating histograms of hidden layer outputs and training an SVM classifier on these "fingerprints," the system can distinguish real from adversarial data. A "reinforcement step" is added to improve robustness against random Gaussian noise.
- Residual Image Analysis: This method identifies the "residual image"—the portion of the input pattern typically ignored by the CNN. Adversarial images tend to have higher energy in these ignored regions. By perturbing the image to reinforce these components, the system observes if classification confidence increases, thereby exposing the adversarial nature of the input.
Experimental Results
The framework was evaluated on the MNIST dataset using 2,000 real images and 2,000 adversarial counterparts generated via BIM and DeepFool.
The ensemble approach—specifically a logical combination of the Histogram method with either Regularization or Residual analysis—yielded superior results. Against BIM attacks, the system achieved a precision of 98.8% and a recall of 89.6%. The Area Under the Curve (AUC) reached 98.7% for BIM and 99.3% for DeepFool, demonstrating high discriminative power. Furthermore, the reinforcement step in the histogram method significantly improved precision under heavy Gaussian noise (85.5% vs. 79.7%).
Conclusion and Future Work
This multi-layered approach provides a robust defense against adversarial examples by exploiting the "blind spots" of CNNs and using ensemble logic to minimize false positives. While highly effective on the MNIST benchmark, future research should investigate the scalability of these methods to high-resolution datasets like ImageNet and optimize the computational overhead associated with running multiple detection paths in real-time applications.
Summary updated