Visualization of Supervised and Self-Supervised Neural Networks via Attribution Guided Factorization

Shir Gur, Ameen Ali, Lior Wolf

Introduction

Deep neural networks are often criticized as "black boxes" due to the difficulty in interpreting their internal decision-making processes. Existing explainability techniques generally fall into two categories: gradient-based methods (e.g., Grad-CAM), which offer class specificity but low resolution, and attribution-based methods (e.g., LRP), which provide high resolution but often lack class specificity. A major challenge in this field is saliency bias, where visualization tools are disproportionately attracted to the most prominent features in an image, failing to isolate secondary objects. This paper introduces Attribution Guided Factorization (AGF), a novel method designed to produce high-resolution, class-specific heatmaps that overcome these limitations.

Methodology

The AGF framework integrates gradient and attribution information through several key components:

  • Dual-Stream Propagation: The method simultaneously tracks gradients (measuring pixel sensitivity) and relevance attributions (measuring contribution to internal activations).
  • Attribution Guided Factorization: By employing non-negative matrix factorization (NMF) guided by attribution maps, the algorithm effectively partitions an image into foreground and background components relative to a specific target class.
  • $\Delta$-Shift Correction: This mathematical adjustment ensures that the conservation of relevance is maintained throughout the network, even in the presence of complex residual connections.
  • Self-Supervised Learning (SSL) Explainability: For models trained without labels, AGF utilizes a nearest-neighbor approach in the latent space to generate "pseudo-labels," enabling the first meaningful visualizations for SSL architectures.

Experimental Evaluation

The authors validated AGF across multiple benchmarks, including ImageNet (ILSVRC 2012) for large-scale testing and ImageNet-Segmentation for pixel-level boundary accuracy. Multi-label scenarios were evaluated using the PASCAL-VOC 2012 dataset. The method was tested on various architectures, such as VGG-19 and ResNet-50.

Results and Discussion

AGF demonstrates a significant advancement in overcoming saliency bias. Unlike previous methods that might highlight a large elephant when asked about a small zebra in the same frame, AGF successfully isolates the requested object with high spatial resolution.

Class-specific heatmaps generated by AGF for multi-object images. (a, d) Original images. (b, c) Heatmaps for dog and cat. (e, f) Heatmaps for zebra and elephant.

Quantitatively, AGF outperformed baselines in negative perturbation tests, where removing "important" pixels led to a sharper decline in model accuracy, indicating more precise identification of critical features. In segmentation tasks on PASCAL-VOC, AGF achieved a 77.5% Pixel Accuracy, surpassing the next best baseline, RAP (72.8%). Furthermore, visualizations of SSL models revealed that these networks implicitly learn semantic object boundaries without explicit supervision.

Conclusion

Attribution Guided Factorization provides a robust framework for interpreting both supervised and self-supervised models. By combining the strengths of gradient and attribution methods, it resolves the issue of saliency bias and provides clear, high-resolution insights into neural network behavior. Future work may involve extending this approach to non-image data and real-time applications.

Summary updated

BibTeX
@inproceedings{gur2021visualization,
  author = {Shir Gur and Ameen Ali and Lior Wolf},
  title = {{Visualization of Supervised and Self-Supervised Neural Networks via Attribution Guided Factorization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i13.17374},
}
Figure