[Paper Review] FenceBox: A Platform for Defeating Adversarial Examples with Data Augmentation Techniques
FenceBox is a novel defense platform that leverages 15 data augmentation techniques—categorized as image distortion, compression, and noise injection—to mitigate adversarial examples in deep neural networks. By combining non-differentiable and differentiable preprocessing functions (e.g., FD+RDG), it effectively resists both standard and advanced attacks like PGD and BPDA+EOT, achieving up to 55% clean accuracy and 17% attack success rate after 50 adaptive attack rounds.
It is extensively studied that Deep Neural Networks (DNNs) are vulnerable to Adversarial Examples (AEs). With more and more advanced adversarial attack methods have been developed, a quantity of corresponding defense solutions were designed to enhance the robustness of DNN models. It has become a popularity to leverage data augmentation techniques to preprocess input samples before inference to remove adversarial perturbations. By obfuscating the gradients of DNN models, these approaches can defeat a considerable number of conventional attacks. Unfortunately, advanced gradient-based attack techniques (e.g., BPDA and EOT) were introduced to invalidate these preprocessing effects. In this paper, we present FenceBox, a comprehensive framework to defeat various kinds of adversarial attacks. FenceBox is equipped with 15 data augmentation methods from three different categories. We comprehensively evaluated that these methods can effectively mitigate various adversarial attacks. FenceBox also provides APIs for users to easily deploy the defense over their models in different modes: they can either select an arbitrary preprocessing method, or a combination of functions for a better robustness guarantee, even under advanced adversarial attacks. We open-source FenceBox, and expect it can be used as a standard toolkit to facilitate the research of adversarial attacks and defenses.
Motivation & Objective
- Address the growing threat of adversarial examples in deep learning models, especially in safety-critical applications like autonomous driving and home automation.
- Overcome limitations of existing defense methods that require model retraining or are specific to certain attack types.
- Develop a general-purpose, lightweight, and usability-preserving defense framework based on input preprocessing.
- Provide a unified, open-source platform to facilitate research on adversarial robustness and defense evaluation.
Proposed method
- Design a modular platform, FenceBox, integrating 15 data augmentation functions across three categories: image distortion (e.g., random cropping, color jitter), compression (e.g., JPEG, Gaussian blur), and noise injection (e.g., random noise, random downscaling).
- Apply preprocessing functions as a non-differentiable transformation $ g = g_1 \circ g_2 $, where $ g_1 $ is differentiable (e.g., random downscaling) and $ g_2 $ is non-differentiable (e.g., random cropping), to disrupt gradient-based attacks.
- Use iterative adaptive attacks (e.g., EOT-based on $ g_1 $) to evaluate robustness, simulating adversaries who reverse-engineer the defense by targeting only the differentiable component.
- Combine multiple functions (e.g., FD×3+RDG) to increase defense strength, leveraging the principle that composition of weaker functions can yield stronger robustness.
- Employ LIME for local interpretability to visualize and validate that preprocessing restores salient features in adversarial examples to match clean inputs.
- Evaluate defenses across multiple attack types: FGSM, IFGSM, C&W, LBFGS, PGD, and BPDA+EOT, measuring clean accuracy (ACC) and attack success rate (ASR).
Experimental results
Research questions
- RQ1Can a combination of general-purpose, lightweight data augmentation functions effectively defend against both standard and advanced gradient-based adversarial attacks?
- RQ2How does the composition of non-differentiable and differentiable preprocessing functions impact robustness against adaptive attacks like BPDA and EOT?
- RQ3To what extent does the robustness of a defense increase when stacking multiple instances of a single function (e.g., FD×3+RDG) compared to a single instance?
- RQ4Can visual explanation methods like LIME confirm that preprocessing restores the model’s attention to original, meaningful features in adversarial inputs?
- RQ5What is the computational cost and practical feasibility of adaptive attacks that target only the differentiable part of a preprocessing pipeline?
Key findings
- The combination of FD (random downscaling) and RDG (random Gaussian blur) reduced the attack success rate (ASR) to 0.06% under BPDA+EOT, demonstrating strong resistance to advanced attacks.
- After 50 rounds of adaptive EOT-based attacks, the FD+RDG defense maintained 40% clean accuracy and 40% ASR, indicating partial vulnerability but high attack cost.
- Stacking three FD operations (FD×3+RDG) increased clean accuracy to 55% and reduced ASR to 17% after 50 rounds, significantly improving robustness.
- The attack success rate for achieving 90% ASR required over 7,000 rounds for FD+RDG, over 10,000 rounds for FD×2+RDG, and over 10,000 rounds for FD×3+RDG, showing diminishing returns with increased complexity.
- LIME visualizations confirmed that preprocessing with FD+RDG restored attention maps to resemble those of clean images, validating the removal of adversarial perturbations.
- The platform’s open-source release enables researchers to systematically evaluate and combine preprocessing functions, promoting reproducible and extensible defense research.
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.