Code Monkey home page Code Monkey logo

adversarialblockdrop's Introduction

Adversarial Block Drop Attack(ABD)

Transferable Adversarial Examples against Vision Transformers via Adversarial Block Drop

Full paper:https://github.com/zhouhuipeng/AdversarialBlockDrop/blob/main/Transferable%20Adversarial%20Examples%20against%20Vision%20Transformers%20via%20Adversarial%20Block%20Drop.pdf

Our Code is coming soon.^-^

fig1

@W$D6YAFU{${3PW @ RF3P9

Abstract

Vision Transformers (ViTs) have shown impressive performance in various vision tasks, which has aroused scholarly interest in studying adversarial example generation and transferability on ViTs. ViT has architecture with self-attention at its core, which is entirely different from traditional convolutional neural networks (CNNs). However, existing adversarial attacks have limited effect on ViTs due to neglecting these architectural features. To address this issue, we propose a self-attention oriented Adversarial Block Drop (ABD) method to generate transferable adversarial examples by skipping attention mechanism from partial blocks. The ViT encoder consists of multiple blocks that are consistent architectures consisting of a self-attentive layer and a feed-forward layer. Specifically, we tailor our approach to this architecture, enhancing self-attention uncertainty by dropping some of the blocks during inference and thus fooling the model decisions. This exploits a unique but widely used architectural feature in the transformer model that can be used as a general attack pattern. Extensive experiments using multiple popular transformers on ImageNet datasets show that the proposed ABD significantly outperforms other baseline methods. Our approach can greatly improve the transferability between ViTs and from ViTs to both CNNs and MLPs, demonstrating the true generalization potential of ViTs in the adversarial space.

Experiments

We conducted extensive experiments using the unused Vision Transformer model as an alternative model to generate adversarial samples to attack other unknown black -box models.

Transferring to ViTs

T6PDQ7KW3 7ECPFEO@O9`5P

Transferring to non-ViTs

ADF%NB~Q9H`WP)PYH6NGR)D

Evading defenses

defense

Comparison with attacks that target ViTs

sota-comparison

Discussion of the effect of P

p-fr-acc-diversity

Visualisation of samples

gradcam (1)

adversarialblockdrop's People

Contributors

zhouhuipeng avatar

Stargazers

 avatar

Watchers

Kostas Georgiou 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.