Abstract
While having achieved great success in rich real-life applications, deep neural network (DNN) models have long been criticized for their vulnerability to adversarial attacks. Tremendous research efforts have been dedicated to mitigating the threats of adversarial attacks, but the essential trait of adversarial examples is not yet clear, and most existing methods are yet vulnerable to hybrid attacks and suffer from counterattacks. In light of this, in this paper, we first reveal a gradient-based correlation between sensitivity analysis-based DNN interpreters and the generation process of adversarial examples, which indicates the Achilles's heel of adversarial attacks and sheds light on linking together the two long-standing challenges of DNN: fragility and unexplainability. We then propose an interpreter-based ensemble framework called X-Ensemble for robust adversary defense. X-Ensemble adopts a novel detection-rectification process and features in building multiple sub-detectors and a rectifier upon various types of interpretation information toward target classifiers. Moreover, X-Ensemble employs the Random Forests (RF) model to combine sub-detectors into an ensemble detector for adversarial hybrid attacks defense. The non-differentiable property of RF further makes it a precious choice against the counterattack of adversaries. Extensive experiments under various types of state-of-the-art attacks and diverse attack scenarios demonstrate the advantages of X-Ensemble to competitive baseline methods.
Introduction
Deep Learning (DL) models face a dual crisis: fragility to adversarial perturbations and unexplainability due to their "black box" nature. Existing defenses often fail against hybrid attacks or are bypassed by "white-box" counterattacks that incorporate the defense's own gradients. This paper introduces X-Ensemble, a framework that bridges these gaps by treating model interpretability as a core security feature. By analyzing the "explanation maps" of inputs, the system can identify the subtle fingerprints of an attack that remain invisible to the human eye.
The X-Ensemble Framework
X-Ensemble implements a detection-rectification pipeline that leverages the observation that adversarial images, while visually benign, produce chaotic or irrelevant interpretation maps compared to benign images.
1. Interpreter-based Detection
The system utilizes four gradient-based interpreters: Vanilla Gradient (VG), Integrated Gradient (IG), Guided Backpropagation (GBP), and Layer-wise Relevance Propagation (LRP). These generate feature maps which are processed by individual CNN sub-detectors. To prevent attackers from using gradient-based methods to bypass the defense, X-Ensemble combines these sub-detectors using a Random Forest (RF). The non-differentiable nature of RF creates a "gradient break," significantly hardening the model against white-box attacks.
2. Rectification
When an image is flagged as adversarial, X-Ensemble identifies "suspect pixels"—those with unnatural influence according to the interpretation maps. These pixels are randomly erased or perturbed to weaken the adversarial effect before the image is re-classified, allowing for trustworthy predictions even under attack.
Experimental Evaluation
The framework was tested on Fashion-MNIST, CIFAR-10, and ImageNet against a variety of attackers, including PGD, CW, and Deepfool.
Key Results
- Near-Perfect Detection: In Grey-box and Black-box scenarios, X-Ensemble (X-Det) consistently achieved AUC scores of 0.99 to 1.00, significantly outperforming baselines like PixelDefend (PD).
- Hybrid Robustness: The ensemble approach proved highly effective against "unvaccinated" settings where the specific attack type was unknown, maintaining high performance across different norm constraints ($L_\infty$, $L_2$).
- Recovery Accuracy: On CIFAR-10, X-Ensemble recovered model accuracy from 0% under heavy attack to 71-79%, demonstrating the efficacy of the rectification stage.
- White-box Resistance: Even when attackers targeted the detector directly, the non-differentiable RF ensemble maintained 67-90% accuracy, proving the effectiveness of the strategic "gradient break."
Conclusion
X-Ensemble demonstrates that interpretability is not just for human understanding but is a vital tool for security. By ensembling diverse interpretation methods and utilizing non-differentiable components, the framework provides a robust defense against sophisticated adversarial threats. Future work will focus on reducing the computational overhead of generating multiple interpretation maps and extending the framework to even deeper architectures.
Summary updated