Simple Post-Training Robustness Using Test Time Augmentations and Random Forest

Gilad Cohen, Raja Giryes
9/16/2021
12 citations
cs.CVcs.LG

Official code: giladcohen/ARF (0 stars, Python, last commit 2022-05-27). Most starred: giladcohen/KATANA, a community implementation (5 stars, Python, last commit 2021-10-29). 1 more implementation below.

Abstract

Although Deep Neural Networks (DNNs) achieve excellent performance on many real-world tasks, they are highly vulnerable to adversarial attacks. A leading defense against such attacks is adversarial training, a technique in which a DNN is trained to be robust to adversarial attacks by introducing adversarial noise to its input.

Show full abstract

This procedure is effective but must be done during the training phase. In this work, we propose Augmented Random Forest (ARF), a simple and easy-to-use strategy for robustifying an existing pretrained DNN without modifying its weights. For every image, we generate randomized test time augmentations by applying diverse color, blur, noise, and geometric transforms. Then we use the DNN's logits output to train a simple random forest to predict the real class label. Our method achieves state-of-the-art adversarial robustness on a diversity of white and black box attacks with minimal compromise on the natural images' classification. We test ARF also against numerous adaptive white-box attacks and it shows excellent results when combined with adversarial training. Code is available at https://github.com/giladcohen/ARF.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
giladcohen/ARFOfficial0Python–2022-05-27
giladcohen/KATANACommunity5Python–2021-10-29
giladcohen/ARFOfficial100%

Simple Post-Training Robustness Using Test Time Augmentations and Random Forest

00Python, ShellNov 25, 20214 years ago
giladcohen/KATANACommunity100%
51Python, ShellSep 16, 20215 years ago

Similar Papers

Cite this paper

@article{cohen2021simple,
  title  = {Simple Post-Training Robustness Using Test Time Augmentations and Random Forest},
  author = {Gilad Cohen and Raja Giryes},
  year   = {2021},
  eprint = {2109.08191},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.08191}
}

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

Discussion