Skip to main content
QUICK REVIEW

[Paper Review] Improving VAEs' Robustness to Adversarial Attack

Matthew Willetts, Alexander Camuto|arXiv (Cornell University)|Jun 1, 2019
Adversarial Robustness in Machine LearningComputer Science45 references6 citations
TL;DR

This paper proposes a novel defense against adversarial attacks on variational autoencoders (VAEs) by leveraging total correlation (TC) regularization to improve robustness. By applying TC regularization to hierarchical VAEs—termed Seatbelt-VAEs—the method achieves high-fidelity reconstructions while significantly increasing resistance to latent-space adversarial attacks, outperforming standard and single-layer regularized VAEs.

ABSTRACT

Variational autoencoders (VAEs) have recently been shown to be vulnerable to adversarial attacks, wherein they are fooled into reconstructing a chosen target image. However, how to defend against such attacks remains an open problem. We make significant advances in addressing this issue by introducing methods for producing adversarially robust VAEs. Namely, we first demonstrate that methods proposed to obtain disentangled latent representations produce VAEs that are more robust to these attacks. However, this robustness comes at the cost of reducing the quality of the reconstructions. We ameliorate this by applying disentangling methods to hierarchical VAEs. The resulting models produce high-fidelity autoencoders that are also adversarially robust. We confirm their capabilities on several different datasets and with current state-of-the-art VAE adversarial attacks, and also show that they increase the robustness of downstream tasks to attack.

Motivation & Objective

  • Address the vulnerability of standard VAEs to latent-space adversarial attacks, where small input perturbations cause reconstructions to mimic target images.
  • Investigate whether disentanglement-inducing regularizers, particularly total correlation (TC), can improve adversarial robustness in VAEs.
  • Overcome the trade-off between robustness and reconstruction quality seen in standard TC-regularized VAEs by employing hierarchical architectures.
  • Demonstrate that robustness to adversarial attacks extends to downstream tasks using VAE-encoders.
  • Develop and validate a new model architecture—Seatbelt-VAE—that combines hierarchical latent spaces with TC regularization for improved performance and robustness.

Proposed method

  • Apply total correlation (TC) regularization to the variational objective during VAE training to encourage disentangled, stochastic latent representations that are less sensitive to input perturbations.
  • Use a hierarchical VAE architecture with multiple latent layers, where each layer's posterior and prior are modeled via amortized inference networks with decreasing dimensionality.
  • Introduce a multi-level TC regularization scheme across hierarchical layers, enhancing robustness while preserving representational capacity.
  • Train models using ADAM with a cosine-decaying learning rate and batch size of 1024, applying free bits to stabilize optimization.
  • Use fixed decoder variance (σ = 0.1) and standard convolutional/transpose-convolutional encoder-decoder architectures adapted from Chen et al. (2018).
  • Evaluate robustness via adversarial attacks in latent space, measuring success by similarity of reconstructed images to target images and likelihood under noisy inputs.

Experimental results

Research questions

  • RQ1Can total correlation regularization in VAEs improve robustness against latent-space adversarial attacks?
  • RQ2Does the trade-off between reconstruction quality and adversarial robustness in standard TC-regularized VAEs limit practical deployment?
  • RQ3Can hierarchical VAEs with TC regularization achieve both high-fidelity reconstructions and strong adversarial robustness?
  • RQ4Does improved robustness in the VAE encoder transfer to increased robustness in downstream tasks?
  • RQ5How does the hierarchical structure influence the model’s ability to resist adversarial perturbations compared to single-layer VAEs?

Key findings

  • TC regularization in standard VAEs increases adversarial robustness but significantly degrades reconstruction quality due to excessive smoothing of latent representations.
  • The hierarchical VAE with TC regularization—named Seatbelt-VAE—achieves superior robustness compared to both standard VAEs and single-layer TC-regularized VAEs.
  • On the CelebA dataset, the Seatbelt-VAE with L=4 layers successfully resists adversarial attacks, maintaining reconstruction of the original input (e.g., Hugh Jackman) even under strong perturbations.
  • The likelihood of original inputs under noisy inputs (denoising performance) is significantly higher for Seatbelt-VAEs with β > 1, indicating better robustness across noise scales.
  • The Seatbelt-VAE maintains or improves reconstruction fidelity compared to standard VAEs, even while achieving higher robustness, resolving the typical quality-robustness trade-off.
  • Robustness to adversarial attacks in the VAE encoder transfers to downstream tasks, increasing their resilience to 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 Nubint

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