GithubHelp home page GithubHelp logo

customized-adversarial-training's Introduction

Customized-Adversarial-Training

Pytorch implementation of "CAT: Customized Adversarial Training for Improved Robustness".
Authors: Minhao Cheng, Qi Lei, Pin-Yu Chen, Inderjit Dhillon, and Cho-Jui Hsieh
Paper: https://arxiv.org/abs/2002.06789

Training details

Model: WideResNet34-10
Epochs: 200
Batch size: 128
Optimizer: SGD
(momentum: 0.9)
(initial learning rate: 0.1)
(80th: 0.01)
(140th: 0.001)
(180th: 0.0001)

  • CIFAR10
python train.py --dataset cifar10 --num_classes 10 --loss_type xent --gpus 0
python train.py --dataset cifar10 --num_classes 10 --loss_type mix --gpus 0
  • CIFAR100
python train.py --dataset cifar100 --num_classes 100 --loss_type xent --gpus 0
python train.py --dataset cifar100 --num_classes 100 --loss_type mix --gpus 0
Natural FGSM PGD-10 PGD-20 PGD-100 PGD-100(CW loss) CW-20 (l2) APGD-CE APGD-DLR
CIFAR-10, Xent 93.73 78.86 71.53 68.12 64.36 64.83 68.71 56.12 23.91
CIFAR-10, Mix 93.66 80.57 73.80 68.61 62.38 62.50 73.30 53.85 26.16
CIFAR-100, Xent 72.14 46.64 40.79 39.42 37.80 20.17 26.04 34.80 13.17
CIFAR-100, Mix 72.32 48.29 42.46 40.72 39.09 19.92 27.21 36.44 13.15

customized-adversarial-training's People

Contributors

hirokiadachi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jhyuuu leeeeely

customized-adversarial-training's Issues

Slow Training Progress

Dear hirokiadachi-san,

Thank you for your work and for sharing this implementation. I am now trying to reproduce the results, but 41 epochs into the training, I am still only getting a ~20% robust accuracy (natural accuracy is ~87%). I am hoping to ask if this is expected. Do you remember seeing the robust accuracy increase after more epochs (i.e., after reducing the learning rate at epoch 80), or is there likely a bug in my code (I made some minor modifications for compatibility with the newest PyTorch)? Really appreciate your help!

Sincerely,
Yatong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.