Coder Social home page Coder Social logo

carlini-wagner_l2's Introduction

Carlini-Wagner attack (http://arxiv.org/abs/1608.04644)

L2 attack

To ensure the modifitacions yields to a valid image, we use the third method of box contraints at the paper and we define $\delta$ as:

$$\delta_{i} = \frac{1}{2}(tanh(w_{i}) + 1) - x_{i} $$

and we optimize over the variable $w$

Attack

Given x, and choosing a target class $t$ ( $t \neq C^{*}(x)$, beeing $C^{*}(x)$ the correct label of x we search for a $w$ that solves)

$$minimize \ ||\delta||^{2}_{2} + c \cdot f(x + \delta)$$

with $f$ defined as

$$f(x') = max(max{Z(x')_i : i \neq t} - Z(x')_t, -\kappa)$$

To control the confidence with which missclasifation ocurrs we adjust Îș but we wil set it to 0 for out attack

L2 formula

$$||x||{2} = \sqrt{\sum{i=1}^{n} x^{2}_{i}} $$

Referential implementation:

carlini-wagner_l2's People

Contributors

juanba98 avatar

Watchers

James Cloos 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.