Giter VIP home page Giter VIP logo

spatiotemporalattack's Introduction

Spatiotemporal Attacks for Embodied Agents

Code for the paper

Spatiotemporal Attacks for Embodied Agents
Aishan Liu, Tairan Huang, Xianglong Liu, Yitao Xu, Yuqing Ma, Xinyun Chen, Stephen Maybank, Dacheng Tao
European Conference on Computer Vision (ECCV), 2020

In this work, we take the first step to study adversarial attacks for embodied agents. In particular, we generate spatiotemporal perturbations to form 3D adversarial examples, which exploit the interaction history in both the temporal and spatial dimensions. Regarding the temporal dimension, since agents make predictions based on historical observations, we develop a trajectory attention module to explore scene view contributions, which further help localize 3D objects appeared with highest stimuli. By conciliating with clues from the temporal dimension, along the spatial dimension, we adversarially perturb the physical properties (e.g., texture and 3D shape) of the contextual objects that appeared in the most important scene views.

For questions regarding implementation contact Yitao Xu

To Perform Attacks

Single View Attack

With EQA-v1 dataset, you can simply perform the spatiotemporal attack by running the following code to generate texture changed object (with single view). The noise level is controlled by parameter epsilon.

python attack.py

Multi Views Attack

To further perfomr multi-view attacks, you can simple run:

python attack_multi_angle.py

Different from attack.py, this file can automaticlly make embodied agent observe target object from various views, thanks to data_multi_angle.py.

Postprocess

Once the attack process finishes, you will get many .obj file, each representing a changed object (with strong attack ability). To put these objects into one same house, run

python code_all.py

to generate a new .obj file for the same house with changed object in it but all other objects remain the same. Now you can use API function in House3D environment to see the effect of our attack algorithm.

Prerequisite

Run the following code to install all required packages.

pip install -r requirements.txt

Citing this work

If you find this work is useful in your research, please consider citing:

@inproceedings{Liu2020Spatiotemporal,
    title={Spatiotemporal Attacks for Embodied Agents},
    author={Liu, Aishan and Huang, Tairan and Liu, Xianglong and Xu, Yitao and Ma, Yuqing and Chen, Xinyun and Maybank, Stephen and Tao, Dacheng},
    Booktitle = {European Conference on Computer Vision},
    year={2020}
}

spatiotemporalattack's People

Contributors

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