Alleviating Adversarial Attacks on Variational Autoencoders with MCMC

Anna Kuzina, Max Welling, Jakub M. Tomczak
3/18/2022
cs.LG

Official code: AKuzina/defend_vae_mcmc (10 stars, Python, last commit 2022-12-14).

Abstract

Variational autoencoders (VAEs) are latent variable models that can generate complex objects and provide meaningful latent representations. Moreover, they could be further used in downstream tasks such as classification.

Show full abstract

As previous work has shown, one can easily fool VAEs to produce unexpected latent representations and reconstructions for a visually slightly modified input. Here, we examine several objective functions for adversarial attack construction proposed previously and present a solution to alleviate the effect of these attacks. Our method utilizes the Markov Chain Monte Carlo (MCMC) technique in the inference step that we motivate with a theoretical analysis. Thus, we do not incorporate any extra costs during training, and the performance on non-attacked inputs is not decreased. We validate our approach on a variety of datasets (MNIST, Fashion MNIST, Color MNIST, CelebA) and VAE configurations ($β$-VAE, NVAE, $β$-TCVAE), and show that our approach consistently improves the model robustness to adversarial attacks.

View on arXivView PDF

Code Implementations(1)

Code repository of the paper "Alleviating Adversarial Attacks on Variational Autoencoders with MCMC" published at NeurIPS 2022. https://arxiv.org/abs/2203.09940

100Python, ShellOct 7, 20223 years ago
adversarial-attacksdeep-learninggenerative-modelmachine-learningmcmc+1 more

Similar Papers

Cite this paper

@article{kuzina2022alleviating,
  title  = {Alleviating Adversarial Attacks on Variational Autoencoders with MCMC},
  author = {Anna Kuzina and Max Welling and Jakub M. Tomczak},
  year   = {2022},
  eprint = {2203.09940},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09940}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.09940.svg)](https://codeofpaper.com/paper/2203.09940)

Discussion