Abstract
Deep neural networks (DNNs) are vulnerable to adversarial examples—inputs specifically crafted to trigger misclassification through subtle, often human-imperceptible perturbations. While many defenses focus on increasing model robustness, an alternative approach is "rejection," where the model refuses to classify suspicious inputs. This paper proposes Deep Neural Rejection (DNR), a multi-layer defense strategy that monitors internal representations to detect anomalies. By employing Support Vector Machines (SVMs) with Radial Basis Function (RBF) kernels across various network depths, DNR effectively identifies adversarial signatures that typically bypass final-layer defenses. Evaluations on MNIST and CIFAR-10 show that DNR significantly increases the cost for attackers, requiring perturbations so large they become visually obvious.
Introduction
The fragility of state-of-the-art DNNs is well-documented; a "stop sign" can be easily mistaken for a "speed limit sign" with the addition of targeted noise. Traditional defense mechanisms often involve adversarial training—incorporating adversarial examples into the training set—which is computationally expensive and often fails against unseen attack types. Rejection-based methods offer a promising alternative by identifying and discarding out-of-distribution samples. However, standard rejection techniques typically only analyze the final output layer, where adversarial examples have already been successfully mapped into the target class's feature space.
The Deep Neural Rejection (DNR) Framework
DNR addresses the limitations of shallow rejection by implementing a multi-level "security camera" system within the network. The core methodology involves estimating the distribution of legitimate training data at multiple intermediate layers.
As shown in the architecture above, DNR selects several intermediate layers of a pre-trained DNN. For each layer, a Support Vector Machine (SVM) with a Radial Basis Function (RBF) kernel is trained. The RBF kernel is chosen for its "compact abating probability" property: the classifier's confidence score drops sharply as a sample moves away from the clusters of legitimate training data in that specific feature space. The outputs from these layer-wise SVMs are then aggregated by a final "combiner" SVM. If the maximum confidence score falls below a predefined threshold ($\theta$), the input is rejected as an anomaly.
Robustness Against Adaptive Attacks
A critical component of this research is the evaluation against "defense-aware" adaptive attacks. Unlike standard attacks that target the base DNN, these attacks use a Projected Gradient Descent (PGD) optimizer to find "blind spots" in the DNR rejection boundary.
The figure above illustrates the classification regions and the corresponding attack objective function $\Omega(x)$. The compact nature of the RBF-based regions forces the attacker to navigate a complex landscape. To successfully bypass DNR and reach a target class region, the attacker must often introduce significant perturbations. This "forces the attacker's hand," making the adversarial nature of the input obvious to human observers.
Experimental Results
The researchers benchmarked DNR using the MNIST and CIFAR-10 datasets. Key findings include:
- Superior Robustness: DNR consistently outperformed "Neural Rejection" (NR), which only monitors the final layer. On MNIST, DNR maintained high accuracy even as the perturbation strength ($\epsilon$) increased significantly.
- Efficiency: Unlike adversarial training, DNR does not require the generation of adversarial examples during the training phase. It works with standard pre-trained models, making it more computationally efficient than many robust training alternatives.
- Security Evaluation: The paper utilizes security evaluation curves to demonstrate that DNR's performance degrades gracefully under attack, providing a predictable security profile for real-world deployment.
Conclusion
Deep Neural Rejection provides a robust, efficient, and interpretable defense against adversarial evasion attacks. By inspecting data at multiple depths, it catches anomalies that shallow methods miss. While challenges remain regarding scalability to massive datasets like ImageNet and potential vulnerability to training-time "poisoning" attacks, DNR represents a significant step toward more resilient deep learning systems.
Summary updated