JOURNAL ARTICLE

Consistent Explanations by Contrastive Learning

Vipin PillaiSoroush Abbasi KoohpayeganiAshley OuligianD. FongHamed Pirsiavash

Year: 2022 Journal:   2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Pages: 10203-10212

Abstract

Understanding and explaining the decisions of neural networks are critical to building trust, rather than relying on them as black box algorithms. Post-hoc evaluation techniques, such as Grad-CAM, enable humans to inspect the spatial regions responsible for a particular network decision. However, it is shown that such explanations are not always consistent with human priors, such as consistency across image transformations. Given an interpretation algorithm, e.g., Grad-CAM, we introduce a novel training method to train the model to produce more consistent explanations. Since obtaining the ground truth for a desired model interpretation is not a well-defined task, we adopt ideas from contrastive self-supervised learning and apply them to the interpretations of the model rather than its embeddings. Explicitly training the network to produce more reasonable interpretations and subsequently evaluating those interpretations will enhance our ability to trust the network. We show that our method, Contrastive Grad-CAM Consistency (CGC), results in Grad-CAM interpretation heatmaps that are consistent with human annotations while still achieving comparable classification accuracy. Moreover, since our method can be seen as a form of regularizer, on limited-data fine-grained classification settings, our method outperforms the baseline classification accuracy on Caltech-Birds, Stanford Cars, VGG Flowers, and FGVC-Aircraft datasets. In addition, because our method does not rely on annotations, it allows for the incorporation of unlabeled data into training, which enables better generalization of the model. Our code is publicly available.

Keywords:
Consistency (knowledge bases) Generalization Computer science Interpretation (philosophy) Artificial intelligence Prior probability Code (set theory) Ground truth Task (project management) Machine learning Natural language processing Mathematics

Metrics

13
Cited By
1.53
FWCI (Field Weighted Citation Impact)
72
Refs
0.83
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Domain Adaptation and Few-Shot Learning
Physical Sciences →  Computer Science →  Artificial Intelligence
Explainable Artificial Intelligence (XAI)
Physical Sciences →  Computer Science →  Artificial Intelligence
Machine Learning in Healthcare
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

BOOK-CHAPTER

Contrastive Explanations for Machine Learning

Pradeepta Mishra

Apress eBooks Year: 2021 Pages: 279-298
BOOK-CHAPTER

Contrastive explanations

Pin‐Yu ChenCho‐Jui Hsieh

Elsevier eBooks Year: 2022 Pages: 217-225
BOOK-CHAPTER

Contrastive Explanations

Peter Lipton

Cambridge University Press eBooks Year: 1991 Pages: 247-266
BOOK-CHAPTER

Global Concept Explanations for Graphs by Contrastive Learning

Jonas TeufelPascal Friederich

Communications in computer and information science Year: 2024 Pages: 184-208
© 2026 ScienceGate Book Chapters — All rights reserved.