[Paper Review] MagNet: a Two-Pronged Defense against Adversarial Examples
MagNet defends neural networks without altering the target classifier by using a detector to reject adversarial inputs and a reformer to map adversarial examples toward the data manifold, with diversity to withstand graybox attacks.
Deep learning has shown promising results on hard perceptual problems in recent years. However, deep learning systems are found to be vulnerable to small adversarial perturbations that are nearly imperceptible to human. Such specially crafted perturbations cause deep learning systems to output incorrect decisions, with potentially disastrous consequences. These vulnerabilities hinder the deployment of deep learning systems where safety or security is important. Attempts to secure deep learning systems either target specific attacks or have been shown to be ineffective. In this paper, we propose MagNet, a framework for defending neural network classifiers against adversarial examples. MagNet does not modify the protected classifier or know the process for generating adversarial examples. MagNet includes one or more separate detector networks and a reformer network. Different from previous work, MagNet learns to differentiate between normal and adversarial examples by approximating the manifold of normal examples. Since it does not rely on any process for generating adversarial examples, it has substantial generalization power. Moreover, MagNet reconstructs adversarial examples by moving them towards the manifold, which is effective for helping classify adversarial examples with small perturbation correctly. We discuss the intrinsic difficulty in defending against whitebox attack and propose a mechanism to defend against graybox attack. Inspired by the use of randomness in cryptography, we propose to use diversity to strengthen MagNet. We show empirically that MagNet is effective against most advanced state-of-the-art attacks in blackbox and graybox scenarios while keeping false positive rate on normal examples very low.
Motivation & Objective
- Define adversarial examples and evaluation metrics for defenses.
- Propose a defense framework that does not modify the target classifier and is independent of the attack process.
- Introduce detectors based on manifold learning and autoencoders to reject or reform adversarial inputs.
- Use diversity to mitigate graybox attacks and improve robustness against adaptive attackers.
Proposed method
- Install one or more detectors that estimate distance to the data manifold using autoencoder reconstruction error.
- Use a second detector based on Jensen-Shannon divergence between classifier outputs on original and autoencoder-reformed inputs.
- Train a reformer (autoencoder) to map adversarial examples toward the manifold so they are correctly classified.
- Defend under graybox threat model by randomizing among multiple diverse autoencoders at run time.
- Do not rely on adversarial examples for training; defend against arbitrary generation processes.
Experimental results
Research questions
- RQ1Can a defense that does not modify the target classifier robustly detect and reform adversarial inputs across multiple attack methods?
- RQ2How effective is manifold-based detection (reconstruction error) and classifier-output divergence as complementary detectors?
- RQ3Does diversity in autoencoder-based defenses improve resilience to graybox attacks without increasing false positives on normal inputs?
Key findings
- Detector-reformer framework improves robustness against multiple known attacks without altering the protected classifier.
- Reformer (autoencoder) moves adversarial examples toward the normal-data manifold, aiding correct classification.
- Two detectors (reconstruction-error based and probability-divergence based) complement each other across attack types.
- Diversity in defense (randomly selecting among multiple autoencoders) strengthens resilience to graybox threats.
- Defense remains effective in graybox settings, making it harder for attackers to craft universally adversarial inputs.
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.