Multi-Head Explainer: A General Framework to Improve Explainability in CNNs and Transformers

Bohang Sun, Pietro Liò
1/2/2025
cs.CVcs.AI

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

Abstract

In this study, we introduce the Multi-Head Explainer (MHEX), a versatile and modular framework that enhances both the explainability and accuracy of Convolutional Neural Networks (CNNs) and Transformer-based models. MHEX consists of three core components: an Attention Gate that dynamically highlights task-relevant features, Deep Supervision that guides early layers to capture fine-grained details pertinent to the target class, and an Equivalent Matrix that unifies refined local and global representations to generate comprehensive saliency maps. Our approach demonstrates superior compatibility, enabling effortless integration into existing residual networks like ResNet and Transformer architectures such as BERT with minimal modifications. Extensive experiments on benchmark datasets in medical imaging and text classification show that MHEX not only improves classification accuracy but also produces highly interpretable and detailed saliency scores.

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{sun2025multihead,
  title  = {Multi-Head Explainer: A General Framework to Improve Explainability in CNNs and Transformers},
  author = {Bohang Sun and Pietro Liò},
  year   = {2025},
  eprint = {2501.01311},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.01311v2}
}

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

Discussion