Giter Site home page Giter Site logo

vibi's Introduction

VIBI: Explaining a black-box using Deep Variational Information Bottleneck Approach


Overview

This repo includes pytorch implementation of VIBI. VIBI is a system-agnostic interpretable machine learning method that provides a brief but comprehensive explanation. It adopts the inspring information theoretic principle, information bottleneck principle. Using an information theoretic objective, VIBI selects instance-wise key features that are maximally compressed about an input (briefness), and informative about a decision made by a black-box on that input (comprehensive). The selected key features act as an information bottleneck that serves as a concise explanation for a black-box decision. Please see our recent paper -- arXiv preprint.

Usage

Download and install the environment from Cloud.

conda env create SeojinBang/py36
conda activate py36

See main.py for possible arguments.

To learn a black-box model for MNIST digit recognition:

cd mnist
python original.py --model_name original.ckpt --epoch 5

To learn VIBI to explain the black-box model:

python main.py --dataset mnist --epoch 40 --beta 0.1 --K 4 --explainer_type cnn4 --chunk_size 4 --mode train

Credit

DeepVIB Repo: pytorch implementation of deep variational information bottleneck.

L2X Repo: keras implementation of L2X.

References

Bang et al. 2019. Explaining a black-box using Deep Variational Information Bottleneck Approach. ArXiv Preprint arXiv:1902.06918.

Contact

Please feel free to contact me by e-mail seojinb at cs dot cmu dot edu, if you have any questions.

vibi's People

Contributors

seojinbang avatar

Watchers

 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.