ExCon: Explanation-driven Supervised Contrastive Learning for Image Classification

Zhibo Zhang, Jongseong Jang, Chiheb Trabelsi, Ruiwen Li, Scott Sanner +2 more
11/28/2021
cs.CVcs.AIcs.LG
contrastive-ssl

Official code: DarrenZhang01/ExCon (18 stars, Python, Apache-2.0, last commit 2021-12-30).

Abstract

Contrastive learning has led to substantial improvements in the quality of learned embedding representations for tasks such as image classification. However, a key drawback of existing contrastive augmentation methods is that they may lead to the modification of the image content which can yield undesired alterations of its semantics.

Show full abstract

This can affect the performance of the model on downstream tasks. Hence, in this paper, we ask whether we can augment image data in contrastive learning such that the task-relevant semantic content of an image is preserved. For this purpose, we propose to leverage saliency-based explanation methods to create content-preserving masked augmentations for contrastive learning. Our novel explanation-driven supervised contrastive learning (ExCon) methodology critically serves the dual goals of encouraging nearby image embeddings to have similar content and explanation. To quantify the impact of ExCon, we conduct experiments on the CIFAR-100 and the Tiny ImageNet datasets. We demonstrate that ExCon outperforms vanilla supervised contrastive learning in terms of classification, explanation quality, adversarial robustness as well as probabilistic calibration in the context of distributional shift.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

ExCon: Explanation-driven Supervised Contrastive Learning

180Python, ShellNov 21, 20214 years agoApache-2.0
artificial-intelligencedeep-learningmachine-learning-algorithmspythonrepresentation-learning

Similar Papers

Cite this paper

@article{zhang2021excon,
  title  = {ExCon: Explanation-driven Supervised Contrastive Learning for Image Classification},
  author = {Zhibo Zhang and Jongseong Jang and Chiheb Trabelsi and Ruiwen Li and Scott Sanner and Yeonjeong Jeong and Dongsub Shim},
  year   = {2021},
  eprint = {2111.14271},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.14271}
}

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

Discussion