Official implementation for "Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups".
Authors: Weiqiu You, Helen Qu, Marco Gatti, Bhuvnesh Jain, Eric Wong
TODO
- Release updated code - Oct 2nd 2024
- Update arxiv - Oct 5th 2024
Prerequisite
Conda
To set up the environment:
conda create -n sop python=3.10
conda activate sop
pip install -r requirements.txt
Docker
Alternatively, you can use the docker image fallcat/xai:latest
Exlib
No matter which of the above options you chose, you need to install exlib
Usage
Demos
Here we show how to use pretrained SOP and train your own SOP models for ImageNet and CosmoGrid
Evaluation
Here we show how we evaluate. The actual scripts we run are in src/sop/run.
- ImageNet Accuracy
- ImageNet Purity
- ImageNet Insertion Deletion
- ImageNet Sparsity
- ImageNet Fidelity
- Cosmogrid Accuracy and Purity
Citation
@inproceedings{
you2025sumofparts,
title={Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups},
author={Weiqiu You and Helen Qu and Marco Gatti and Bhuvnesh Jain and Eric Wong},
booktitle={Forty-second International Conference on Machine Learning},
year={2025},
url={https://openreview.net/forum?id=r6y9TEdLMh}
}