Git Product home page Git Product logo

activation-attack-pytorch's Introduction

Activation-Attack-Pytorch

Apply targeted attacks on black box ViT with the activation attack method. The white box model is ResNet-18.

Based on CVPR 2019 Paper Feature Space Perturbations Yield More Transferable Adversarial Examples.

My additional expreriment proves that the transferablitiy is low between heterogeneous deep models.

All the models are finetuned on CIFAR-10 with the Adam optimizer with lr = 1e-5.

Pretrained models

Model Name CIFAR-10 Test Accuracy ImageNet-1K Pretrain
ResNet-18 0.9435 Yes
DenseNet-121 0.9571 Yes
ViT-B/16 0.9838 Yes

Results

Model Error uTr tSuc tTr
ResNet-18 96.39 / 75.48 /
DenseNet-121 80.16 82.27 9.39 10.65
ViT 22.33 22.78 2.5 4.2

activation-attack-pytorch's People

Contributors

qwq2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jzikang

activation-attack-pytorch's Issues

What about tsuc and ttr on ImageNet (ILSVRC2012)?

I run the code and change the dataset from CIFAR-10 to ILSVRC2012 validation set. The success rate on white box is always 0. It is a bit strange.
Moreover, I think the calculation about 'utr' and 'ttr' is not correct. Assuming that we have two minibatch with size 32. In one minibatch, wb_error is 3 and 2 of them are successfully transferred. Then utrs in this minibatch is 66%. While in the other minibatch, wb_error is 32 but none of them is successfully transferred. Then utrs is 0%. According the code, utr will be 33% = (66%+0)/2. But actually I think it should be 2/(3+32), not 33%.

可能的问题

你好,我运行了你的代码,虽然有效果但是与论文中的结果差距很大,可能的问题在哪?

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.