Abstract
Deep neural networks (DNNs) are increasingly vulnerable to adversarial example attacks, where small, well-designed perturbations can drastically alter model outputs. This paper introduces Feature-Filter, a novel detection approach based on the distinction between "dominant" features (comprehensible to humans) and "recessive" features (statistical patterns exploited by DNNs). We posit that adversarial attacks primarily enrich these recessive features. By utilizing the Discrete Cosine Transform (DCT) to filter out high-frequency recessive components, Feature-Filter creates a "mutant" image. A discrepancy between the model's prediction on the original and the mutant image serves as a real-time indicator of an adversarial attack. Our method achieves high accuracy with minimal false positives without requiring access to model gradients.
Introduction
Deep Neural Networks (DNNs) have achieved remarkable success in image recognition, yet they remain fragile. Adversarial examples—inputs modified by imperceptible noise—can easily trick these models into incorrect classifications. Most existing defenses are proactive and often struggle to keep pace with evolving attack strategies.
The core of the problem lies in a "perception gap." Humans recognize objects through dominant features like shape and color. In contrast, DNNs often rely on recessive features—high-frequency patterns that are invisible to us but highly influential to the network's decision-making process. Adversarial attacks exploit this by injecting malicious noise into these recessive channels. Feature-Filter addresses this by identifying the intrinsic sensitivity of adversarial examples to the removal of these features.
The Feature-Filter Framework
Feature-Filter is a "label-only" detection framework that operates on the principle of metamorphic testing. It compares the model's reaction to an original input against a filtered version of that same input.
Methodology
- Feature Separation via DCT: The system applies a 2-D Discrete Cosine Transform (DCT) to the input image. In the frequency domain, dominant features typically occupy low-frequency coefficients, while recessive features and adversarial noise reside in high-frequency components.
- The Filtering Process: The filter retains a specific ratio ($\alpha$) of low-frequency coefficients and zeroes out the rest. An inverse DCT then reconstructs a "mutant" image that is visually similar to the original but stripped of its high-frequency recessive features.
- The Discriminator: The DNN classifies both the original and the filtered image. If the labels match, the image is deemed benign. If the labels differ, the input is flagged as adversarial.
Experimental Results
The researchers evaluated Feature-Filter using standard benchmarks including CIFAR-10 and ImageNet (using the Inception V3 model).
- High Detection Accuracy: Against the Carlini & Wagner (C&W) $L_2$ attack, Feature-Filter achieved a True Positive Rate (TPR) of 98.20% on CIFAR-10 and 100% on ImageNet at optimal settings.
- Superiority over Baselines: With an AUC of 96.23%, the method outperformed traditional transformation-based detections like Bit Depth Reduction (92.18%) and Median Smoothing (85.70%).
- Real-Time Performance: The average processing time for an ImageNet-sized image is approximately 0.0351 seconds, making it suitable for live deployment as a gatekeeper.
- Robustness to Natural Noise: The system maintains high accuracy even when images contain natural noise (e.g., Gaussian or Poisson), ensuring that it does not generate excessive false positives in real-world conditions.
Key Insights: Dominant vs. Recessive Features
The success of Feature-Filter stems from the "brittleness" of adversarial examples. Because these attacks rely on specific high-frequency noise to tip the model's decision, removing that noise causes the model to revert to a correct prediction or change its classification. Conversely, benign images are "immune" to this filtering because their classification is rooted in dominant features that the filter preserves.
A user study involving 50 participants confirmed that filtered images remain clearly recognizable to humans, validating the theory that only non-essential "recessive" features are being removed.
Conclusion
Feature-Filter provides an efficient, human-centric defense against adversarial attacks. By aligning the model's focus with human-comprehensible dominant features, it effectively isolates malicious perturbations. While DCT is an approximation of feature separation, its speed and accuracy make it a powerful tool for robust DNN services. Future work will explore more refined filtering techniques and defenses against adaptive attackers who may attempt to bypass frequency-based filters.
Summary updated