Giter Club home page Giter Club logo

cvpr22_nicgslowdown's Introduction

NICGSlowDown: Evaluating the Efficiency Robustness of Neural Image Caption Generation Models

Description

NICGSlowDown is designed to generate efficiency adversarial examples to evaluate the efficiency robustness of NICG models. The generated adversarial examples are realistic and human-unnoticable images while consume more computational resources than benign images.

Approach Ovewview

Our approach overview is shown in the above figure, for the detail design, please refer to our papers.

File Structure

  • src -main source codes.
    • ./src/model -the model architecture of the NICG models.
    • ./src/attack -the implementation of proposd attack algorithm.
  • train.py -the script to train the NICG models.
  • generate_adv.py -this script generate the adversarial examples.
  • test_latency.py -this script measure the latency of the generated adversarial examples.
  • gpu4.sh -bash script to generate adversarial examples and measure the efficiency.

How to run

We provide the bash script that generate adversarial examples and measure the efficiency in gpu4.sh. gpu5.sh, gpu6.sh,gpu7.sh are implementing the similar functionality but for different gpus.

So just run bash gpu4.sh

Efficiency Degradation Results

The above figure shows the efficiency distribution of the benign images and the adversarial images. The ares under the cumulative distribution function (CDF) represent the victim NICG models' efficiency. A large area implies the model is less efficiency.

Generated Adversarial Examples

The first row shows the benign images and the second row shows the generated efficiency adversarial images.

Citation

If you find this repository is helpful to you, please consider cite

@inproceedings{chen2022nicgslowdown,
  title={NICGSlowDown: Evaluating the Efficiency Robustness of Neural Image Caption Generation Models},
  author={Chen, Simin and Song, Zihe and Haque, Mirazul and Liu, Cong and Yang, Wei},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={15365--15374},
  year={2022}
}

cvpr22_nicgslowdown's People

Contributors

seekingdream avatar

Stargazers

BRACHEMI MEFTAH Hanene avatar Zexin Li avatar  avatar Yaya Shi avatar

Watchers

 avatar

cvpr22_nicgslowdown's Issues

About the package 'datasets'

When I bash 'gpu4.sh' and there was no module named 'datasets'. Then I installed 'datasets' but the following error was encountered.

Traceback (most recent call last):
File "loss_impact.py", line 10, in
from utils import *
File "/data/xxx/NICGSlowDown/utils.py", line 12, in
from datasets import CaptionDataset
ImportError: cannot import name 'CaptionDataset' from 'datasets'

So, do you define the package yourself or call an off-the-shelf one, and can you provide a list of the packages used?

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.