Giter Site home page Giter Site logo

energy_backdoor's Introduction

ENERGY BACKDOOR ATTACK TO DEEP NEURAL NETWORKS

This code provides a PyTorch implementation of the paper titled ENERGY BACKDOOR ATTACK TO DEEP NEURAL NETWORKS. backdoored model

The figure above provides an overview of the backdoored model. Neurons circled in orange refer to unnecessary neurons that fire when the trigger is present in the input.

Dependencies and Reproducibility

All dependencies can be found in dependencies.txt file

We run our code in a singularity container that can be obtained using the following command

singularity build --fakeroot ./test_image.sif ./test_image.def

The content of the test_image.sif should be:

Bootstrap: docker
From: pytorch/pytorch:latest

%files
    dependencies.txt dependencies.txt

%post
    apt-get -y update && apt-get install -y python    
    pip install efficientnet-pytorch==0.7.1
    pip install dill timm tensorboard
    apt-get install -y < dependencies.txt

%runscript
    python -c 'print("Image successfully loaded!")'

But the provided files can also be run in any other environment with the required packages installed.

Acknowledgements

We use in our project:

  • ASIC simulator developed in sponge_examples github.
  • L0 estimation's implementation and energy estimation functions provided in Energy-Latency Attacks via Sponge Poisoning github for our model's optimization.
  • This project is funded by Région Bretagne (Brittany region), France, CREACH Labs and Direction Générale de l’Armement (DGA).

energy_backdoor's People

Contributors

hbrachemi avatar safezza avatar

Watchers

 avatar  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.