Post-hoc Self-explanation of CNNs
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 -means-based classifier addresses this limitation without compromising performance. This work introduces a common formalization of -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.
Keywords
Cite
@article{arxiv.2603.28466,
title = {Post-hoc Self-explanation of CNNs},
author = {Ahcène Boubekki and Line H. Clemmensen},
journal= {arXiv preprint arXiv:2603.28466},
year = {2026}
}