Abstract
Attribution map visualization has arisen as one of the most effective techniques to understand the underlying inference process of Convolutional Neural Networks. In this task, the goal is to compute an score for each image pixel related to its contribution to the network output. In this paper, we introduce Disentangled Masked Backpropagation (DMBP), a novel gradient-based method that leverages on the piecewise linear nature of ReLU networks to decompose the model function into different linear mappings. This decomposition aims to disentangle the attribution maps into positive, negative and nuisance factors by learning a set of variables masking the contribution of each filter during back-propagation. A thorough evaluation over standard architectures (ResNet50 and VGG16) and benchmark datasets (PASCAL VOC and ImageNet) demonstrates that DMBP generates more visually interpretable attribution maps than previous approaches. Additionally, we quantitatively show that the maps produced by our method are more consistent with the true contribution of each pixel to the final network output.
Introduction
Convolutional Neural Networks (CNNs) are powerful but often operate as "black boxes." To trust their decisions, we must understand which image features—such as specific textures or object parts—drive their predictions. Attribution maps serve this purpose by highlighting influential pixels. However, existing methods often suffer from excessive noise (nuisance factors) or fail "sanity checks," where maps remain unchanged even after randomizing model weights, suggesting they act more as edge detectors than true explanations of model logic.
Methodology: Disentangled Masked Backpropagation
The core insight of DMBP is that CNNs using ReLU activations are piecewise linear functions. For any given input, the entire network can be viewed as a single linear mapping. DMBP decomposes this mapping into three distinct components:
- Positive Factors: Features increasing the target class probability (e.g., the snout of a dog).
- Negative Factors: Features decreasing the target class probability (e.g., a cat sitting next to the dog).
- Nuisance Factors: Irrelevant features with zero effect on the output (e.g., the background sky).
Unlike one-pass methods like Grad-CAM, DMBP learns a set of masking variables ($\sigma$) for every filter, optimized per image to maximize disentanglement. This optimization-based approach ensures that the resulting backpropagated gradients represent the model's internal logic rather than just image-level gradients.
Experimental Results
The authors evaluated DMBP on ImageNet and PASCAL VOC 2012 using ResNet50 and VGG16 architectures against 11 state-of-the-art baselines.
Quantitative Performance
Using the Insertion Metric—which measures the rise in model confidence as pixels are added back to a blurred image based on their attribution score—DMBP achieved a score of 0.42. This significantly outperformed other gradient-based methods (the next best was SG at 0.34). Crucially, DMBP passes weight randomization tests, proving its fidelity to the learned model parameters.
Qualitative Analysis
Visually, DMBP provides high-resolution, fine-grained maps. While traditional methods produce coarse heatmaps, DMBP identifies specific structures like animal fur patterns or mechanical parts.
Furthermore, DMBP effectively handles multi-class scenarios. When explaining a "dog" prediction in an image containing both a dog and a cat, DMBP correctly identifies cat pixels as negative evidence, demonstrating its ability to distinguish between supporting and contradicting features.
Conclusion and Future Work
DMBP offers a significant advancement in model interpretability by explicitly disentangling evidence. While the optimization process introduces a computational overhead (approx. 20 seconds per image), the resulting fidelity makes it a powerful tool for offline model auditing. Future work includes adapting the framework for non-linear activations like Sigmoid and extending the disentanglement logic to domains like Natural Language Processing.
Summary updated