ShapBPT: Image Feature Attributions using Data-Aware Binary Partition Trees
Published in AAAI-26 | 40th Annual AAAI Conference on Artificial Intelligence, 2026
Pixel-level feature attribution plays a central role in Explainable Computer Vision (XCV) by showing which image regions influence a model prediction. Although hierarchical Shapley-based methods provide a principled explanation framework, many existing approaches rely on rigid image partitions that do not follow the natural structure of visual content.
ShapBPT addresses this limitation by combining hierarchical Shapley values with a data-aware Binary Partition Tree (BPT) representation of images. Instead of explaining images through arbitrary grid-based regions, ShapBPT builds a multiscale hierarchy that follows image morphology and object structure. This produces explanations that are more interpretable, structurally faithful, and computationally efficient.
Overview
ShapBPT is a model-agnostic XAI method for image feature attribution. It integrates the Owen approximation of Shapley values with an adaptive image hierarchy constructed using Binary Partition Trees. The method is designed to generate explanations that better align with meaningful visual regions and object boundaries.
๐ The paper, source code, documentation, reproducibility tests, Python package, user study, and presentation materials can be accessed directly through the buttons above.
Highlights
- ๐ Accepted in the Main Technical Track of AAAI 2026.
- ๐ณ Introduces data-aware Binary Partition Trees for hierarchical image explanations.
- โก Reduces computational cost compared with conventional hierarchical Shapley-based methods.
- ๐ฏ Produces explanations that better follow image structure and object morphology.
- ๐ฅ Validated through a 20-participant user study, where ShapBPT explanations were consistently preferred.
- ๐ฆ Released as an open-source Python package.
Installation
pip install shap-bptResources
Use the buttons above to access the paper, arXiv version, source code, documentation, PyPI package, reproducibility tests, user study, and presentation material.
Contributions ๐
This research makes the following contributions:
We introduce ShapBPT, a hierarchical model-agnostic XCV method that combines adaptive multiscale image partitioning with the Owen approximation of Shapley values.
We repurpose Binary Partition Trees (BPTs) to construct data-aware hierarchical coalition structures for visual explanation, overcoming the limitations of rigid and inflexible partitioning strategies used by existing methods.
We evaluate ShapBPT on multiple image datasets and model architectures, demonstrating improved explanation efficiency and structural faithfulness.
We conduct a controlled human-subject study showing that users consistently prefer ShapBPT explanations over competing XCV methods.
We release the source code, documentation, reproducibility tests, and Python package to support open and reproducible research.
How it Works?
ShapBPT first constructs a data-aware image hierarchy using a Binary Partition Tree. This hierarchy represents the image at multiple levels of granularity, from coarse regions to fine visual structures. Shapley-based attribution scores are then computed over this hierarchy, allowing the method to assign importance values to meaningful image regions instead of arbitrary pixel grids.






Datasets and Models
ShapBPT was evaluated across different computer vision tasks, datasets, and model architectures.
- Datasets: ImageNet, MS-COCO, MVTec, and CelebA-HQ.
- Models: ResNet-50, ViT, SwinViT, YOLOv11, custom CNN, and VAE-GAN.
Experiments Summary
| ID | Dataset | Size | Model | Short Description |
|---|---|---|---|---|
| E1 | ImageNet-S50 | 574 | ResNet-50 | Common ImageNet classification setup |
| E2 | ImageNet-S50 | 574 | Ideal | Linear ideal attribution model |
| E3 | ImageNet-S50 | 621 | SwinViT | Vision Transformer-based classification |
| E4 | MS-COCO | 274 | YOLOv11s | Object detection explanations |
| E5 | CelebA-HQ | 400 | Custom CNN | Facial attribute localization |
| E6 | MVTec | 280 | VAE-GAN | Explainable anomaly detection |
| E7 | ImageNet-S50 | 593 | ViT-Base16 | Vision Transformer explanations |
| E8 | User Study | โ | โ | Human preference study using saliency maps |
Authors โ๏ธ
| Sr. No. | Author Name | Affiliation | Google Scholar |
|---|---|---|---|
| 1 | Muhammad Rashid | University of Torino, Dept. of Computer Science, Torino, Italy | Muhammad Rashid |
| 2 | Elvio G. Amparore | University of Torino, Dept. of Computer Science, Torino, Italy | Elvio G. Amparore |
| 3 | Enrico Ferrari | Rulex Innovation Labs, Rulex Inc., Genova, Italy | Enrico Ferrari |
| 4 | Damiano Verda | Rulex Innovation Labs, Rulex Inc., Genova, Italy | Damiano Verda |
Keywords ๐
Shapley Values ยท Binary Partition Trees ยท Explainable AI ยท XAI ยท Image Feature Attribution ยท Explainable Computer Vision
๐ Citation (BibTeX)
@inproceedings{rashid2026shapbpt,
title = {ShapBPT: Image Feature Attributions Using Data-Aware Binary Partition Trees},
author = {Rashid, Muhammad and Amparore, Elvio G. and Ferrari, Enrico and Verda, Damiano},
booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
volume = {40},
number = {30},
pages = {25099--25107},
year = {2026},
url = {https://doi.org/10.1609/aaai.v40i30.39699}
}