TTE-CAM: Built-in Class Activation Maps for Test-Time Explainability in Pretrained Black-Box CNNs

Kerol Djoumessi, Philipp Berens
3/27/2026
cs.CV

Official code: kdjoumessi/Test-Time-Explainability (1 star, MIT, last commit 2026-04-12).

Abstract

Convolutional neural networks (CNNs) achieve state-of-the-art performance in medical image analysis yet remain opaque, limiting adoption in high-stakes clinical settings. Existing approaches face a fundamental trade-off: post-hoc methods provide unfaithful approximate explanations, while inherently interpretable architectures are faithful but often sacrifice predictive performance. We introduce TTE-CAM, a test-time framework that bridges this gap by converting pretrained black-box CNNs into self-explainable models via a convolution-based replacement of their classification head, initialized from the original weights. The resulting model preserves black-box predictive performance while delivering built-in faithful explanations competitive with post-hoc methods, both qualitatively and quantitatively. The code is available at https://github.com/kdjoumessi/Test-Time-Explainability

View on arXivView PDF

Code Implementations(1)

MIT

Unlocking test time explanations on black-box CNNs

10Python, Jupyter NotebookMar 25, 20266 months agoMIT

Cite this paper

@article{djoumessi2026ttecam,
  title  = {TTE-CAM: Built-in Class Activation Maps for Test-Time Explainability in Pretrained Black-Box CNNs},
  author = {Kerol Djoumessi and Philipp Berens},
  year   = {2026},
  eprint = {2603.26885},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.26885v1}
}

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.26885.svg)](https://codeofpaper.com/paper/2603.26885)

Discussion