Post-hoc Self-explanation of CNNs

Ahcène Boubekki, Line H. Clemmensen
3/30/2026
cs.CVstat.ML

No confident code implementation found for this paper. 1 possible match can be shown below.

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 $k$-means-based classifier addresses this limitation without compromising performance. This work introduces a common formalization of $k$-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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{boubekki2026posthoc,
  title  = {Post-hoc Self-explanation of CNNs},
  author = {Ahcène Boubekki and Line H. Clemmensen},
  year   = {2026},
  eprint = {2603.28466},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.28466v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.28466.svg)](https://codeofpaper.com/paper/2603.28466)

Discussion