Git Product home page Git Product logo

big-but-invisible-adversarial-attack's Introduction

Unrestricted Adversarial Perturbations via Semantic Manipulation.

This repo contains the code for our ICLR 2020 conference paper "Unrestricted Adversarial Perturbations via Semantic Manipulation". A version of this paper was also presented at CVPR 2019 Adversarial Machine Learning workshop in an oral talk "Big but Imperceptible Adversarial Perturbations via Semantic Manipulation".

tldr: We introduce unrestricted perturbations that manipulate semantically meaningful image-based visual descriptors - color and texture - in order to generate effective and photorealistic adversarial examples.

Abstract: Machine learning models, especially deep neural networks (DNNs), have been shown to be vulnerable against adversarial examples which are carefully crafted samples with a small magnitude of the perturbation. Such adversarial perturbations are usually restricted by bounding their $\mathcal{L}_p$ norm such that they are imperceptible, and thus many current defenses can exploit this property to reduce their adversarial impact. In this paper, we instead introduce "unrestricted" perturbations that manipulate semantically meaningful image-based visual descriptors - color and texture - in order to generate effective and photorealistic adversarial examples. We show that these semantically aware perturbations are effective against JPEG compression, feature squeezing and adversarially trained model. We also show that the proposed methods can effectively be applied to both image classification and image captioning tasks on complex datasets such as ImageNet and MSCOCO. In addition, we conduct comprehensive user studies to show that our generated semantic adversarial examples are photorealistic to humans despite large magnitude perturbations when compared to other attacks.

big-but-invisible-adversarial-attack's People

Contributors

aisecure avatar

Stargazers

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

Watchers

 avatar  avatar

big-but-invisible-adversarial-attack's Issues

[iclr_tadv.py] Question about the style loss and gram matrix.

Hi, thanks for your interesting work! I got a little confused about the calculation about the style loss, especially class CrossGramMatrix() (line 124) and layer_losses = [weights[a] * loss_fns[a](A,B, Crossstyle_targets[a])/CrossGramMatrix()(A,B).std() for a,(A,B) in enumerate(Cross_out)] (line 285) in the code. My questions are:

  1. In CorssGramMatrix, why is the G calculated by torch.bmm divided by h1*w1 then? I'm not very clear about the Gram Matrix before and just get some knowledge about it from Gatys et al. 2015 and Yeh et al. 2020 from the reference of your paper. And in the paper, i didn't find the division in Eq.(4). Maybe I didn't get a clear definition about Gram Matrix? If so, please tell me and I will check more about that.

  2. In line 285, the standard deviation of the Gram Matrix was divided, while $std(G_{ij}^{m,n}(I_v))$ was divided in Eq.(4). It seems that $G_{ij}^{m,n}(I_v))$ is not a matrix, so how to get its STD? Is it a typo? And, is this division the additional constraint on the variation in the gram matrices?

By the way, could you provide files or their links mentioned in iclr_tadv.py?
Apologize for my silly questions and thank your in advance!

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.