Pre-trained Multiple Latent Variable Generative Models are good defenders against Adversarial Attacks

Dario Serez, Marco Cristani, Alessio Del Bue, Vittorio Murino, Pietro Morerio
12/4/2024
cs.CV

Official code: SerezD/gen_adversarial (2 stars, MIT, PyTorch, last commit 2025-04-24).

Abstract

Attackers can deliberately perturb classifiers' input with subtle noise, altering final predictions. Among proposed countermeasures, adversarial purification employs generative networks to preprocess input images, filtering out adversarial noise. In this study, we propose specific generators, defined Multiple Latent Variable Generative Models (MLVGMs), for adversarial purification. These models possess multiple latent variables that naturally disentangle coarse from fine features. Taking advantage of these properties, we autoencode images to maintain class-relevant information, while discarding and re-sampling any detail, including adversarial noise. The procedure is completely training-free, exploring the generalization abilities of pre-trained MLVGMs on the adversarial purification downstream task. Despite the lack of large models, trained on billions of samples, we show that smaller MLVGMs are already competitive with traditional methods, and can be used as foundation models. Official code released at https://github.com/SerezD/gen_adversarial.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Code for Paper: "Pre-trained Multiple Latent Variable Generative Models are good defenders against Adversarial Attacks"

21C++, CudaOct 20, 20231 years agoMIT
adversarial-attacksadversarial-purificationganmlvgmpytorch+1 more

Similar Papers

Cite this paper

@article{serez2024pretrained,
  title  = {Pre-trained Multiple Latent Variable Generative Models are good defenders against Adversarial Attacks},
  author = {Dario Serez and Marco Cristani and Alessio Del Bue and Vittorio Murino and Pietro Morerio},
  year   = {2024},
  eprint = {2412.03453},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.03453v1}
}

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/2412.03453.svg)](https://codeofpaper.com/paper/2412.03453)

Discussion