Giter VIP home page Giter VIP logo

birdnn's Introduction

BIRDNN: Behavior-Imitation Based Repair of Deep Neural Networks

BIRDNN(Behavior-Imitation Based Repair of DNNs) supports alternative retraining style and fine-tuning style repair simultaneously.

Code for the paper "BIRDNN: Behavior-Imitation Based Repair of Deep Neural Networks".

Acknowledgements

The code is based on Veritex and CARE. Thank to their wonderful and clear implementation.

Installation and System Requirements

This tool has been confirmed to work and tested with only Python3.7.

  1. Install BIRDNN pkg with pip.

    python -m pip install .
    
  2. Set path to /BIRDNN under this repository.

    export PYTHONPATH='<YOUR_REPO_PATH>/BIRDNN'
    export OPENBLAS_NUM_THREADS=1
    export OMP_NUM_THREADS=1
    

Run experiments

If you want to run DNN retraining code, here is an example of code running commands:

python BIRDNN/repair/retraining.py --network 19 --alpha 0.5 --beta 0.5 --lr 0.001 --repair_neurons_num 20 --epoch 200

If you want to run DNN fine-tuning code, here is an example of code running commands:

python BIRDNN/repair/fine_tuning.py --network 19 --alpha 0.5 --repair_neurons_num 20 --lr 0.001

If you want to output the results of fine-tuning single-layer running, here is an example of code running:

python BIRDNN/repair/fine_tuning_single_layer.py --network 19 --alpha 0.5 --repair_neurons_num 20 --lr 0.001

If you find our paper/codes helpful, please cite:

@inproceedings{yang2022neural,
  title={Neural network repair with reachability analysis},
  author={Yang, Xiaodong and Yamaguchi, Tom and Tran, Hoang-Dung and Hoxha, Bardh and Johnson, Taylor T and Prokhorov, Danil},
  booktitle={Formal Modeling and Analysis of Timed Systems: 20th International Conference, FORMATS 2022, Warsaw, Poland, September 13--15, 2022, Proceedings},
  pages={221--236},
  year={2022},
  organization={Springer}
}
@inproceedings{sun2022causality,
  title={Causality-based neural network repair},
  author={Sun, Bing and Sun, Jun and Pham, Long H and Shi, Jie},
  booktitle={Proceedings of the 44th International Conference on Software Engineering},
  pages={338--349},
  year={2022}
}

birdnn's People

Contributors

bytetao5 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.