Software for Dataset-wide XAI: From Local Explanations to Global Insights with Zennit, CoRelAy, and ViRelAy

Christopher J. Anders, David Neumann, Wojciech Samek, Klaus-Robert Müller, Sebastian Lapuschkin
6/24/2021
cs.LG

Official code: chr5tphr/zennit (248 stars, LGPL-3.0, PyTorch, last commit 2026-05-13). 2 more implementations below.

Abstract

Deep Neural Networks (DNNs) are known to be strong predictors, but their prediction strategies can rarely be understood. With recent advances in Explainable Artificial Intelligence (XAI), approaches are available to explore the reasoning behind those complex models' predictions. Among post-hoc attribution methods, Layer-wise Relevance Propagation (LRP) shows high performance. For deeper quantitative analysis, manual approaches exist, but without the right tools they are unnecessarily labor intensive. In this software paper, we introduce three software packages targeted at scientists to explore model reasoning using attribution approaches and beyond: (1) Zennit - a highly customizable and intuitive attribution framework implementing LRP and related approaches in PyTorch, (2) CoRelAy - a framework to easily and quickly construct quantitative analysis pipelines for dataset-wide analyses of explanations, and (3) ViRelAy - a web-application to interactively explore data, attributions, and analysis results. With this, we provide a standardized implementation solution for XAI, to contribute towards more reproducibility in our field.

View on arXivView PDF

Code Implementations(3)

chr5tphr/zennitOfficial100%
PyTorchLGPL-3.0

Zennit is a high-level framework in Python using PyTorch for explaining/exploring neural networks using attribution methods like LRP.

24838Shell, PythonNov 10, 20205 months agoLGPL-3.0
attributiondeep-learningexplainabilityexplainable-aifeature-attribution+8 more
virelay/corelayOfficial100%
LGPL-3.0

CoRelAy is a tool to compose small-scale (single-machine) analysis pipelines.

322PythonJan 12, 20215 months agoLGPL-3.0
interpretabilitymachine-learningpipeline-frameworkpythonspectral-clustering+1 more
virelay/virelayOfficial100%
AGPL-3.0

ViRelAy is a visualization tool for the analysis of data as generated by CoRelAy.

315HTML, SCSSJan 12, 20215 months agoAGPL-3.0
angularflaskinterpretabilitymachine-learningpython+2 more

Similar Papers

Cite this paper

@article{anders2021software,
  title  = {Software for Dataset-wide XAI: From Local Explanations to Global Insights with Zennit, CoRelAy, and ViRelAy},
  author = {Christopher J. Anders and David Neumann and Wojciech Samek and Klaus-Robert Müller and Sebastian Lapuschkin},
  year   = {2021},
  eprint = {2106.13200},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.13200}
}

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/2106.13200.svg)](https://codeofpaper.com/paper/2106.13200)

Discussion