GithubHelp home page GithubHelp logo

deep-backdoor-attack's Introduction

Deep-Backdoor-Attack

Pipeline

Pipeline Deep Backdoor Attack (DBA) aims to generate deep-synchronized triggers that can alleviate the early-fitting phenomenon

Playing with DBA

We provide a self-trained clean model ResNet34-clean-91.tar in the repository, which can be used to generate deep-synchronized trigger patterns

To play with the codes, simple run the following command to launch the attack

Step 1: Trigger Generation

python trigger_generation.py --cuda 1 --batch_size 1 train_or_test train
python trigger_generation.py --cuda 1 --batch_size 1 train_or_test test

This command will generate a series of trigger patterns by activating a specified neuron in the clean model. Then the trigger patterns will be superimposed on the clean images to construct poisoned samples.

Step 2: Backdoor Injection

python backdoor_train.py --cuda 1 --trigger_type "dba" --load_fixed_data 1

This command will start the standard backdoor training process, where the neural network model is trained on a mixture of poisoned samples and clean samples.

Results

The following table presents the performance reported in our paper

deep-backdoor-attack's People

Contributors

guanzihan avatar

Stargazers

chenyiming avatar Ninghao avatar

Watchers

 avatar

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.