ONNXExplainer: an ONNX Based Generic Framework to Explain Neural Networks Using Shapley Values

Yong Zhao, Runxin He, Nicholas Kersting, Can Liu, Shubham Agrawal +2 more
9/29/2023
cs.LGcs.AIcs.CV

No confident code implementation found for this paper.

Abstract

Understanding why a neural network model makes certain decisions can be as important as the inference performance. Various methods have been proposed to help practitioners explain the prediction of a neural network model, of which Shapley values are most popular. SHAP package is a leading implementation of Shapley values to explain neural networks implemented in TensorFlow or PyTorch but lacks cross-platform support, one-shot deployment and is highly inefficient. To address these problems, we present the ONNXExplainer, which is a generic framework to explain neural networks using Shapley values in the ONNX ecosystem. In ONNXExplainer, we develop its own automatic differentiation and optimization approach, which not only enables One-Shot Deployment of neural networks inference and explanations, but also significantly improves the efficiency to compute explanation with less memory consumption. For fair comparison purposes, we also implement the same optimization in TensorFlow and PyTorch and measure its performance against the current state of the art open-source counterpart, SHAP. Extensive benchmarks demonstrate that the proposed optimization approach improves the explanation latency of VGG19, ResNet50, DenseNet201, and EfficientNetB0 by as much as 500%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2023onnxexplainer,
  title  = {ONNXExplainer: an ONNX Based Generic Framework to Explain Neural Networks Using Shapley Values},
  author = {Yong Zhao and Runxin He and Nicholas Kersting and Can Liu and Shubham Agrawal and Chiranjeet Chetia and Yu Gu},
  year   = {2023},
  eprint = {2309.16916},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.16916v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.16916.svg)](https://codeofpaper.com/paper/2309.16916)

Discussion