AMC-Loss: Angular Margin Contrastive Loss for Improved Explainability in Image Classification

Hongjun Choi, Anirudh Som, Pavan Turaga
4/21/2020
cs.CV
contrastive-ssl

Official code: hchoi71/AMC-Loss (14 stars, Python, MIT, last commit 2020-05-11).

Abstract

Deep-learning architectures for classification problems involve the cross-entropy loss sometimes assisted with auxiliary loss functions like center loss, contrastive loss and triplet loss. These auxiliary loss functions facilitate better discrimination between the different classes of interest.

Show full abstract

However, recent studies hint at the fact that these loss functions do not take into account the intrinsic angular distribution exhibited by the low-level and high-level feature representations. This results in less compactness between samples from the same class and unclear boundary separations between data clusters of different classes. In this paper, we address this issue by proposing the use of geometric constraints, rooted in Riemannian geometry. Specifically, we propose Angular Margin Contrastive Loss (AMC-Loss), a new loss function to be used along with the traditional cross-entropy loss. The AMC-Loss employs the discriminative angular distance metric that is equivalent to geodesic distance on a hypersphere manifold such that it can serve a clear geometric interpretation. We demonstrate the effectiveness of AMC-Loss by providing quantitative and qualitative results. We find that although the proposed geometrically constrained loss-function improves quantitative results modestly, it has a qualitatively surprisingly beneficial effect on increasing the interpretability of deep-net decisions as seen by the visual explanations generated by techniques such as the Grad-CAM. Our code is available at https://github.com/hchoi71/AMC-Loss.

View on arXivView PDF

Code Implementations(1)

hchoi71/AMC-LossOfficial100%
MIT

CVPR workshop (DiffCVML) 2020

140PythonApr 16, 20206 years agoMIT

Similar Papers

Cite this paper

@article{choi2020amcloss,
  title  = {AMC-Loss: Angular Margin Contrastive Loss for Improved Explainability in Image Classification},
  author = {Hongjun Choi and Anirudh Som and Pavan Turaga},
  year   = {2020},
  eprint = {2004.09805},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.09805}
}

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

Discussion