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
- Release updated code - Oct 2nd 2024
- Update arxiv - Oct 5th 2024
To set up the environment:
conda create -n sop python=3.10
conda activate sop
pip install -r requirements.txt
Alternatively, you can use the docker image fallcat/xai:latest
No matter which of the above options you chose, you need to install exlib
Here we show how to use pretrained SOP and train your own SOP models for ImageNet and CosmoGrid
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
@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}
}