ShapBPT: Image Feature Attributions using Data-Aware Binary Partition Trees

Published in AAAI-26 | 40th Annual AAAI Conference on Artificial Intelligence, 2026

Paper arXiv Code Tests PyPI Docs User Study Poster

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-bpt

Resources

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:

  1. We introduce ShapBPT, a hierarchical model-agnostic XCV method that combines adaptive multiscale image partitioning with the Owen approximation of Shapley values.

  2. 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.

  3. We evaluate ShapBPT on multiple image datasets and model architectures, demonstrating improved explanation efficiency and structural faithfulness.

  4. We conduct a controlled human-subject study showing that users consistently prefer ShapBPT explanations over competing XCV methods.

  5. 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

IDDatasetSizeModelShort Description
E1ImageNet-S50574ResNet-50Common ImageNet classification setup
E2ImageNet-S50574IdealLinear ideal attribution model
E3ImageNet-S50621SwinViTVision Transformer-based classification
E4MS-COCO274YOLOv11sObject detection explanations
E5CelebA-HQ400Custom CNNFacial attribute localization
E6MVTec280VAE-GANExplainable anomaly detection
E7ImageNet-S50593ViT-Base16Vision Transformer explanations
E8User Studyโ€”โ€”Human preference study using saliency maps

Authors โœ๏ธ

Sr. No.Author NameAffiliationGoogle Scholar
1Muhammad RashidUniversity of Torino, Dept. of Computer Science, Torino, ItalyMuhammad Rashid
2Elvio G. AmparoreUniversity of Torino, Dept. of Computer Science, Torino, ItalyElvio G. Amparore
3Enrico FerrariRulex Innovation Labs, Rulex Inc., Genova, ItalyEnrico Ferrari
4Damiano VerdaRulex Innovation Labs, Rulex Inc., Genova, ItalyDamiano 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}
}