English

Post-hoc Self-explanation of CNNs

Computer Vision and Pattern Recognition 2026-03-31 v1 Machine Learning

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.

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}
}