Introduction
As deep neural networks become increasingly complex, understanding their internal decision-making processes has become a paramount challenge in the field of Explainable AI (XAI). Popular rule-based methods like Layer-wise Relevance Propagation (LRP) are designed to provide transparency by flowing "relevance" backward through the network. However, modern architectures like ResNet and DenseNet introduce structural hurdles—such as Batch Normalization (BN) layers—that can lead to noisy, misleading, or unfaithful explanations. This paper addresses these challenges through a dual approach: mathematical network canonization and systematic hyperparameter optimization.
Methodology: Enhancing XAI Compatibility
The researchers identify two primary bottlenecks in current XAI workflows: implementation variance and the "hyperparameter trap." To overcome these, they introduce two core strategies.
Network Canonization
Implementation variance occurs when two mathematically equivalent models produce different explanations due to their internal structural differences. For instance, the inclusion of BN layers often breaks standard XAI rules. "Model canonization" is the process of restructuring a neural network to remove these problematic layers without changing the model's output. This is achieved by "fusing" BN layers into their neighboring convolutional or linear layers.
As illustrated in Figure 1, the authors provide specific formulas for various configurations, including a novel solution for the complex BN -> ReLU -> Linear sequences found in DenseNets. By employing a specialized "ThreshReLU" function, they ensure that the network remains functionally identical while becoming significantly more compatible with backward-propagation XAI rules.
XAI Hyperparameter Search
Rule-based XAI methods are highly flexible, allowing for different "rules" (such as the $\gamma$-rule or $\epsilon$-rule) at different layers. Most practitioners rely on default settings, which are rarely optimal for modern, deep architectures. The authors propose a systematic grid search over the $\gamma$ parameter, grouping layers into low-level, mid-level, high-level, and classifier head categories. They evaluate these configurations using a comprehensive suite of metrics from the Quantus toolbox, including faithfulness, localization, and robustness.
Experimental Validation
The proposed methods were tested across several diverse datasets to ensure broad applicability:
- ILSVRC2017 (ImageNet): The standard for large-scale object recognition.
- Pascal VOC 2012: Used to evaluate models on diverse, non-centered imagery.
- CLEVR-XAI: A Visual Question Answering (VQA) dataset providing ground-truth masks, allowing for precise measurement of how well explanations align with the actual objects of interest.
Key Results and Insights
The study reveals that canonization and hyperparameter tuning are not merely incremental improvements but are often essential for generating meaningful explanations in complex models.
Quantitative Performance Gains
Canonization led to significant improvements in localization and faithfulness across all tested architectures. For example, in DenseNet-121, canonization improved the Relevance Rank Accuracy (RRA) for Excitation Backprop from 0.58 to 0.72, representing a substantial jump in the explanation's ability to correctly identify relevant image regions.
As shown in Figure 4, these gains are consistent across VGG-16, ResNet-18, and EfficientNet-B0. The table highlights that canonized models (marked 'yes') frequently outperform their standard counterparts in complexity, faithfulness, and localization metrics.
The Trade-offs of Optimization
The hyperparameter search highlighted that there is no "universal" best setting. A configuration that maximizes faithfulness (the degree to which an explanation reflects the model's actual logic) may sometimes reduce robustness (the stability of the explanation under input noise). However, a key finding was that focusing on higher $\gamma$-values in the early, low-level layers generally results in cleaner, more localized heatmaps with reduced background noise.
Conclusion and Future Work
This research demonstrates that optimizing AI explanations requires a holistic view of the model's architecture. By mathematically simplifying the network through canonization and carefully tuning explanation hyperparameters, we can achieve heatmaps that are more faithful to the model and more useful to human observers. Future work will focus on extending these techniques to Vision Transformers (ViTs) and developing more efficient search algorithms, such as Bayesian optimization, to streamline the hyperparameter tuning process.
Summary updated