Blending adversarial training and representation-conditional purification via aggregation improves adversarial robustness

Emanuele Ballarin, Alessio Ansuini, Luca Bortolussi
5/25/2023
cs.CVcs.AIcs.CR

Official code: emaballarin/CARSO (8 stars, Python, MIT, last commit 2025-09-22).

Abstract

In this work, we propose a novel adversarial defence mechanism for image classification - CARSO - blending the paradigms of adversarial training and adversarial purification in a synergistic robustness-enhancing way. The method builds upon an adversarially-trained classifier, and learns to map its internal representation associated with a potentially perturbed input onto a distribution of tentative clean reconstructions.

Show full abstract

Multiple samples from such distribution are classified by the same adversarially-trained model, and a carefully chosen aggregation of its outputs finally constitutes the robust prediction of interest. Experimental evaluation by a well-established benchmark of strong adaptive attacks, across different image datasets, shows that CARSO is able to defend itself against adaptive end-to-end white-box attacks devised for stochastic defences. Paying a modest clean accuracy toll, our method improves by a significant margin the state-of-the-art for Cifar-10, Cifar-100, and TinyImageNet-200 $\ell_\infty$ robust classification accuracy against AutoAttack. Code, and instructions to obtain pre-trained models are available at: https://github.com/emaballarin/CARSO .

View on arXivView PDF

Code Implementations(1)

emaballarin/CARSOOfficial100%
MIT

👀🛡️ Code for the paper “Blending adversarial training and representation-conditional purification via aggregation improves adversarial robustness” by Emanuele Ballarin, Alessio Ansuini and Luca Bortolussi (2025)

82Python, ShellSep 3, 20221 years agoMIT
adversarial-defenseadversarial-machine-learningadversarial-robustnessartificial-intelligenceartificial-neural-networks+13 more

Similar Papers

Cite this paper

@article{ballarin2023blending,
  title  = {Blending adversarial training and representation-conditional purification via aggregation improves adversarial robustness},
  author = {Emanuele Ballarin and Alessio Ansuini and Luca Bortolussi},
  year   = {2023},
  eprint = {2306.06081},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.06081v6}
}

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

Discussion