Home

Awesome

ResNet ImageNet Code

This repository provides code for both training and using the restricted robust resnet models from the paper:

Robustness May Be at Odds with Accuracy
Dimitris Tsipras*, Shibani Santurkar*, Logan Engstrom*, Alexander Turner, Aleksander Madry
https://arxiv.org/abs/1805.12152

We show that adversarial robustness often inevitablely results in accuracy loss. The silver lining: adversarial training induces more semantically meaningful gradients and gives adversarial examples with GAN-like trajectories:

<img src = 'https://pbs.twimg.com/media/DengXkCWAAADnUN.jpg:large' width='800px' />

General overview

Before trying to run anything:

The code is organized so that you can:

Pretrained models

This repository comes with (after following the instructions) three restricted ImageNet pretrained models:

You will need to set the model ckpt directory in the various scripts/ipynb files where appropriate if you want to complete any nontrivial tasks.