Skip to main content
QUICK REVIEW

[Paper Review] PuVAE: A Variational Autoencoder to Purify Adversarial Examples

Uiwon Hwang, Jaewoo Park|arXiv (Cornell University)|Mar 2, 2019
Adversarial Robustness in Machine LearningComputer Science15 references11 citations
TL;DR

PuVAE proposes a variational autoencoder-based defense that purifies adversarial examples by projecting them onto class-specific manifolds using variational inference, achieving state-of-the-art robustness with 130x faster inference than Defense-GAN. It outperforms adversarial training and MagNet across multiple attacks and datasets, especially under time constraints.

ABSTRACT

Deep neural networks are widely used and exhibit excellent performance in many areas. However, they are vulnerable to adversarial attacks that compromise the network at the inference time by applying elaborately designed perturbation to input data. Although several defense methods have been proposed to address specific attacks, other attack methods can circumvent these defense mechanisms. Therefore, we propose Purifying Variational Autoencoder (PuVAE), a method to purify adversarial examples. The proposed method eliminates an adversarial perturbation by projecting an adversarial example on the manifold of each class, and determines the closest projection as a purified sample. We experimentally illustrate the robustness of PuVAE against various attack methods without any prior knowledge. In our experiments, the proposed method exhibits performances competitive with state-of-the-art defense methods, and the inference time is approximately 130 times faster than that of Defense-GAN that is the state-of-the art purifier model.

Motivation & Objective

  • Address the vulnerability of deep neural networks to adversarial attacks that exploit small, imperceptible perturbations.
  • Overcome limitations of existing defense methods, such as poor generalization across attack types and high inference latency.
  • Develop a fast, scalable purification mechanism that works without prior knowledge of attack types.
  • Enable real-time deployment of robust models in safety-critical applications like autonomous driving.
  • Achieve defense performance competitive with state-of-the-art methods while drastically reducing inference time.

Proposed method

  • Train a class-conditional VAE to learn the data manifold for each class, enabling reconstruction of clean samples from latent vectors.
  • For each adversarial input, sample a latent vector from the posterior distribution conditioned on the input and its predicted class.
  • Project the adversarial example onto the class-specific manifold by optimizing the VAE’s reconstruction objective using the sampled latent code.
  • Generate purified samples via a single feed-forward pass through the VAE decoder, avoiding iterative optimization.
  • Use the VAE’s reparameterization trick to enable differentiable sampling and end-to-end training of the purification process.
  • Fix the source classifier’s parameters during training to ensure the purifier learns to correct adversarial inputs without overfitting to the classifier’s predictions.

Experimental results

Research questions

  • RQ1Can a VAE-based purifier achieve robust defense against diverse adversarial attacks without prior knowledge of the attack type?
  • RQ2How does the inference speed of a VAE-based purifier compare to iterative GAN-based methods like Defense-GAN in real-time scenarios?
  • RQ3Does the proposed method maintain high classification accuracy across multiple datasets (MNIST, Fashion-MNIST, CIFAR-10) and attack types?
  • RQ4Can the VAE-based purification method generalize effectively across different model architectures and attack strengths?
  • RQ5To what extent does the one-step inference of PuVAE outperform iterative methods like Defense-GAN under strict time constraints?

Key findings

  • PuVAE achieves state-of-the-art defense performance on MNIST, Fashion-MNIST, and CIFAR-10, surpassing MagNet and matching Defense-GAN across all attacks.
  • On the MNIST dataset, PuVAE achieves 92.33% accuracy against iFGSM and 90.80% against CW attacks, outperforming Defense-GAN (73.85% and 72.79%) under a one-second time limit.
  • PuVAE's inference time is 0.114 seconds per 128-image batch, which is 134.55 times faster than Defense-GAN’s 14.80 seconds for the same batch.
  • In a one-second time constraint, PuVAE achieves 81.33% accuracy on FGSM, 92.33% on iFGSM, and 90.80% on CW attacks—significantly outperforming Defense-GAN’s 69.25%, 73.85%, and 72.79% respectively.
  • PuVAE demonstrates robust generalization across different model architectures and attack types, with consistent high performance even when not achieving the top score in every setting.
  • The method maintains high performance without requiring iterative optimization, making it suitable for real-time applications such as autonomous driving and surveillance systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.