Contrastive Gradient-Flow Interpretation (CGFI): A Composable Operator for Class-Discriminative Explanation of Convolutional Neural Networks
Growing deployment of Convolutional Neural Networks in safety-critical domains has intensified the need for transparent, discriminative explanations, yet gradient-based methods such as Grad-CAM compute explanations for a single class score, producing saliency maps that activate regions shared with competing alternatives. This limitation is particularly consequential in multi-class and fine-grained recognition settings, where non-discriminative explanations reduce the practical utility of the method and impede reliable model auditing. This research study contributes to the body of knowledge by proposing Contrastive Gradient-Flow Interpretation (CGFI), an operator on gradient-weighted attribution maps that applies the contrastive principle that discrimination is sharpened by modelling what a class is not, to generate class-discriminative explanatory maps. CGFI explicitly models the top-K competing classes, computes their aggregated gradient attribution, and subtracts their influence from the target class attribution at the feature-map level, emphasising regions uniquely characteristic of the predicted class. It was evaluated across four backbones (Grad-CAM, Grad-CAM++, XGrad-CAM, Score-CAM), with and without contrast, on ResNet-50, VGG-16 and VGG-19. CGFI reduced the target-rival rank correlation across all 1162 image-backbone combinations evaluated, and improved the target probability share in 11 of 12, while preserving attribution fidelity. These findings suggest that contrastive attribution is a principled mechanism for improving explanation specificity.
Authors
- Luca Longo (ORCID: https://orcid.org/0000-0002-2718-5426)
- Mohammad Reza Khalifeh Soltanian (ORCID: https://orcid.org/0000-0001-5674-5931)
- Keivan Borna (ORCID: https://orcid.org/0000-0002-2941-6021)
- Fatemeh Barati (ORCID: https://orcid.org/0009-0005-2611-3016)
Institutions
- Kharazmi University (IR)
- University College Cork (IE)
Publication Details
- Journal
- Machine Learning and Knowledge Extraction
- Published
- 2026-09-29
- DOI
- https://doi.org/10.3390/make8100304
- Primary Topic
- Explainable Artificial Intelligence (XAI)
- Type
- article
- Field-Weighted Citation Impact
- 0.00