[Paper Review] VectorDefense: Vectorization as a Defense to Adversarial Examples
VectorDefense proposes a defense against adversarial examples by transforming input images into vector graphics (via Potrace) and back to bitmap before classification, effectively smoothing out adversarial perturbations. It achieves competitive robustness against state-of-the-art attacks, particularly under low-budget perturbations, and demonstrates that hand-designed input transformations can be effective, though less so than learned-prior methods like Defense-GAN.
Training deep neural networks on images represented as grids of pixels has brought to light an interesting phenomenon known as adversarial examples. Inspired by how humans reconstruct abstract concepts, we attempt to codify the input bitmap image into a set of compact, interpretable elements to avoid being fooled by the adversarial structures. We take the first step in this direction by experimenting with image vectorization as an input transformation step to map the adversarial examples back into the natural manifold of MNIST handwritten digits. We compare our method vs. state-of-the-art input transformations and further discuss the trade-offs between a hand-designed and a learned transformation defense.
Motivation & Objective
- To investigate whether image vectorization can serve as a viable input transformation defense against adversarial examples.
- To evaluate VectorDefense’s robustness across multiple state-of-the-art adversarial attack methods under both white-box and gray-box threat models.
- To compare hand-designed input transformations (like vectorization) with learned-prior defenses (e.g., Defense-GAN) in terms of effectiveness and robustness.
- To analyze the impact of perturbation budget on defense performance, introducing budget-aware variants of JSMA and C&W $L_0$ attacks.
- To explore the interpretability and compactness of vectorized representations as a foundation for future robust learning.
Proposed method
- Input images are first converted from bitmap to vector format (SVG) using the Potrace algorithm, which traces edges into geometric primitives like strokes and ovals.
- The vectorized image is then rasterized back into a bitmap at the original resolution before being fed into a pre-trained classifier.
- The defense operates as a preprocessing step, making it model-agnostic and attack-agnostic, without requiring retraining of the classifier.
- The method leverages the resolution-independence and smoothing properties of vector graphics to suppress localized, pixel-level adversarial perturbations.
- The approach is evaluated on MNIST using six state-of-the-art attack methods, including I-FGSM, DeepFool, JSMA, and C&W $L_0$.
- A budget-aware variant of the attacks is introduced to control the number of pixels perturbed, enabling analysis of defense performance under varying perturbation budgets.
Experimental results
Research questions
- RQ1Can image vectorization effectively reduce the success rate of state-of-the-art adversarial attacks on MNIST?
- RQ2How does VectorDefense compare in robustness to other hand-designed input transformation defenses like bit-depth reduction and image quilting?
- RQ3Does the performance of VectorDefense degrade under increasing perturbation budgets, and how does it compare to learned-prior defenses like Defense-GAN?
- RQ4Can VectorDefense be bypassed under a white-box threat model, and what level of distortion is required to fool it?
- RQ5In cases where Defense-GAN succeeds but VectorDefense fails, what structural differences in the perturbed images explain the divergent behavior?
Key findings
- VectorDefense significantly reduces adversarial success rates across six state-of-the-art attacks, with higher robustness under low-budget perturbations.
- Under a 40-pixel perturbation budget, VectorDefense achieved a success rate of 62.5% on the I-FGSM attack, outperforming bit-depth reduction and image quilting.
- Defense-GAN outperformed VectorDefense under strong $L_0$ attacks with 40-pixel perturbations, achieving a success rate of 87.5% compared to VectorDefense’s 62.5%.
- In the white-box BPDA attack, VectorDefense required substantially higher $L_2$ distortion (5.30) to fool the classifier compared to no defense (2.97), indicating increased robustness.
- Qualitative analysis showed that VectorDefense often transforms adversarial images into visually plausible but incorrect labels (e.g., turning a '6' into a '0'), while Defense-GAN better preserves the original class.
- The results suggest that learned priors (e.g., in Defense-GAN) are more effective than hand-designed transformations like vectorization for handling extreme perturbations.
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.