Skip to content

About

Invertible Concept-based Explanation (ICE)

Resources

Stars

19 stars

Watchers

1 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

InvertibleCE: Invertible Concept-based Explanation (ICE)

Code for our paper Invertible Concept-based Explanations for CNN Models with Non-negative Concept Activation Vectors published in AAAI 2021

Introduction

It's a powerful CNN explanation framework. It learns domain related concepts based on given datasets and provide both global (class level) and local (instance level) explanations. Learned concepts could be easily understanded by human.

Demo

Two Colab jupyter notebook demos are available. In ImageNet.ipynb, you can have fun with different dog concepts and explanations from torchvision pretrained models.

If you want a guide for your own model and dataset, have a try with MNIST.ipynb.

Usage

You need to install graphviz for explanation visualization. It could not be installed with pip or conda.

It's a pytorch based implement. All dependent packages are included in requirements.txt

pip install -r requirements.txt

⚠️ Attention: The provided requirements.txt is tested and verified on Google Colab (Python 3.12, CUDA 12.x, 2025.10 environment). If you are running in another environment (e.g., local machine or older CUDA/Python versions), you may need to relax or adjust some package versions—especially for torch, torchvision, numpy, and scipy—to ensure compatibility.

Explanation examples

Husky explanation

About

Invertible Concept-based Explanation (ICE)

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages