GithubHelp home page GithubHelp logo

chuhuaw / advlight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rjduan/advlight

0.0 0.0 0.0 3.87 MB

Code for "Adversarial Laser Beam: Effective Physical-World Attack to DNNs in a Blink" (CVPR 2021)

License: MIT License

Python 100.00%

advlight's Introduction

AdvLB

Code and model for "Adversarial Laser Beam: Effective Physical-World Attack to DNNs in a Blink" (CVPR 2021)

Introduction

Natural phenomena may play the role of adversarial attackers, e.g., a blinding glare results in a fatal crash of a Tesla self-driving car. What if a beam of light can adversarially attack a DNN? Further, how about using a beam of light, specifically the laser beam, as the weapon to perform attacks. In this work, we show a simple and cool attack by simply using a laser beam.
To this end, we propose a novel attack method called Adversarial Laser Beam (AdvLB), which enables manipulation of laser beam's physical parameters to perform adversarial attack.

Install& Requirements

Dependencies

  • CUDA VERSION 10.2

Create environment

conda env create -f environment.yaml
conda activate advlb_env

Code

git clone https://github.com/RjDuan/AdvLB/
cd AdvLB-main

Basic Usage

Attack

python test.py --model resnet50 --dataset your_dataset

Defense

Besides revealing the potential threats of AdvLB, in this work, we also analyze the reason of error caused by AdvLB and try to suggest an effective defense for laser beam attack.

Similar to adversarial training, we progressively improve the robustness by injecting the laser beam as perturbations into the data for training. The details about training can be referred to the paper.
Models Std. Acc. rate(%) Attack Succ. rate(%)
ResNet50(org) 78.19 95.10
ResNet50(adv trained) 78.40 77.20

The weights of "adv trained" ResNet50 model can be downloaded here.

python test.py --model df_resnet50 --dataset your_dataset

Dataset

The dataset we used in the paper can be downloaded here

Physical setting

Q&A

Questions are welcome via [email protected]

Acknowlegement

  • The defense part is completed by Xiaofeng Mao.

Cite

@inproceedings{duan2021adversarial,
  title={Adversarial Laser Beam: Effective Physical-World Attack to DNNs in a Blink},
  author={Duan, Ranjie and Mao, Xiaofeng and Qin, A Kai and Chen, Yuefeng and Ye, Shaokai and He, Yuan and Yang, Yun},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={16062--16071},
  year={2021}
}

advlight's People

Contributors

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