[Paper Review] Software for Dataset-wide XAI: From Local Explanations to Global Insights with Zennit, CoRelAy, and ViRelAy
The paper presents three integrated software tools (Zennit, CoRelAy, ViRelAy) to perform dataset-wide XAI, enabling local attributions, scalable analysis pipelines, and interactive visualization for global insights.
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.
Motivation & Objective
- Provide a versatile implementation of Layer-wise Relevance Propagation (LRP) in PyTorch to enable robust local explanations.
- Enable dataset-wide analysis of attributions through modular pipelines for scalable, reproducible research.
- Offer an interactive visualization tool to connect data, attributions, embeddings, and clusters for global insights.
- Demonstrate how workflow integration can reveal biased or artifactual reasoning in large models and datasets.
Proposed method
- Zennit implements rule-based attribution (LRP and variants) in PyTorch using module hooks and composites to map rules to layers.
- CoRelAy constructs executable analysis pipelines (e.g., SpRAy) for dataset-wide attribution analysis with caching to reuse intermediate results.
- ViRelAy provides a web-based interface to explore data, attributions, embeddings, and clustering results across multiple projects.
- Canonizers temporarily convert networks to canonical forms to enable applicable LRP rules (e.g., merging BatchNorm into adjacent layers).
- Zennit supports visualization of attribution heatmaps with configurable color maps and heatmap storage.
- CoRelAy includes pipelines combining embeddings, clustering (KMeans, Spectral), and embeddings (TSNE, EigenDecomposition) with result caching.
- ViRelAy loads CoRelAy outputs from HDF5, supports multi-project comparisons, and offers interactive 2D embeddings and auxiliary scores.
Experimental results
Research questions
- RQ1How can dataset-wide XAI be enabled with a modular, reproducible software stack combining local explanations and global insights?
- RQ2What tooling is needed to automate analysis pipelines for attributions and to visualize their global structure and clustering?
- RQ3Can Canonizers and rule-maps extend LRP applicability to common DNN architectures and layers?
- RQ4How can interactive visualization facilitate discovery of systematic biases or Clever Hans effects in large-scale models?
- RQ5To what extent can the integrated workflow improve reproducibility and scalability in XAI research?
Key findings
- A modular stack (Zennit, CoRelAy, ViRelAy) enables end-to-end dataset-wide XAI from local attributions to global insights.
- Canonizers and composites extend LRP applicability across common architectures by temporarily canonicalizing networks.
- CoRelAy pipelines efficiently reuse intermediate results to enable scalable dataset-wide analyses like SpRAy.
- ViRelAy provides interactive exploration of data, attributions, embeddings, and clusters across multiple projects, improving interpretability and collaboration.
- The workflow can reveal systematically biased reasoning in models trained on large datasets (e.g., ImageNet) via dataset-wide analyses.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.