Batch-CAM: Introduction to better reasoning in convolutional deep learning models

Giacomo Ignesti, Davide Moroni, Massimo Martinelli
10/1/2025
cs.AIcs.CV

No confident code implementation found for this paper.

Abstract

Deep learning opacity often impedes deployment in high-stakes domains. We propose a training framework that aligns model focus with class-representative features without requiring pixel-level annotations. To this end, we introduce Batch-CAM, a vectorised implementation of Gradient-weighted Class Activation Mapping that integrates directly into the training loop with minimal computational overhead. We propose two regularisation terms: a Prototype Loss, which aligns individual-sample attention with the global class average, and a Batch-CAM Loss, which enforces consistency within a training batch. These are evaluated using L1, L2, and SSIM metrics. Validated on MNIST and Fashion-MNIST using ResNet18 and ConvNeXt-V2, our method generates significantly more coherent and human-interpretable saliency maps compared to baselines. While maintaining competitive classification accuracy, the framework successfully suppresses spurious feature activation, as evidenced by qualitative reconstruction analysis. Batch-CAM appears to offer a scalable pathway for training intrinsically interpretable models by leveraging batch-level statistics to guide feature extraction, effectively bridging the gap between predictive performance and explainability.

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. Any repos shown below are weak matches — 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{ignesti2025batchcam,
  title  = {Batch-CAM: Introduction to better reasoning in convolutional deep learning models},
  author = {Giacomo Ignesti and Davide Moroni and Massimo Martinelli},
  year   = {2025},
  eprint = {2510.00664},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.00664v2}
}

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

Discussion