cs.CVMar 30, 2026

Post-hoc Self-explanation of CNNs

Authors: Ahcène Boubekki, Line H. Clemmensen

Organizations: Department of Mathematical Sciences, University of Copenhagen, Denmark

Abstract

Although standard Convolutional Neural Networks (CNNs) can be mathematically reinterpreted as Self-Explainable Models (SEMs), their built-in prototypes do not on their own accurately represent the data. Replacing the final linear layer with a kk-means-based classifier addresses this limitation without compromising performance. This work introduces a common formalization of kk-means-based post-hoc explanations for the classifier, the encoder's final output (B4), and combinations of intermediate feature activations. The latter approach leverages the spatial consistency of convolutional receptive fields to generate concept-based explanation maps, which are supported by gradient-free feature attribution maps. Empirical evaluation with a ResNet34 shows that using shallower, less compressed feature activations, such as those from the last three blocks (B234), results in a trade-off between semantic fidelity and a slight reduction in predictive performance.

Figures & tables

Explore similar work

CardsList
  1. TTE-CAM: Self-Explainable Class Activation Maps for Pretrained Black-Box CNNs

    Mar 27, 2026Kerol Djoumessi, Philipp BerensExplainable Image ClassificationNeural Network Interpretability

  2. Activation-Deactivation: A General Framework for Robust Post-hoc Explainable AI

    Oct 1, 2025Akchunya Chanchal, David A. Kelly, Hana ChocklerExplainable Artificial IntelligenceExplanation Stability