xCos: An Explainable Cosine Metric for Face Verification Task

Yu-Sheng Lin, Zhe-Yu Liu, Yu-An Chen, Yu-Siang Wang, Ya-Liang Chang +1 more
3/11/2020
cs.CVcs.LGeess.IV

Official code: ntubiolin/xcos (85 stars, Jupyter Notebook, last commit 2022-04-09).

Abstract

We study the XAI (explainable AI) on the face recognition task, particularly the face verification here. Face verification is a crucial task in recent days and it has been deployed to plenty of applications, such as access control, surveillance, and automatic personal log-on for mobile devices.

Show full abstract

With the increasing amount of data, deep convolutional neural networks can achieve very high accuracy for the face verification task. Beyond exceptional performances, deep face verification models need more interpretability so that we can trust the results they generate. In this paper, we propose a novel similarity metric, called explainable cosine ($xCos$), that comes with a learnable module that can be plugged into most of the verification models to provide meaningful explanations. With the help of $xCos$, we can see which parts of the two input faces are similar, where the model pays its attention to, and how the local similarities are weighted to form the output $xCos$ score. We demonstrate the effectiveness of our proposed method on LFW and various competitive benchmarks, resulting in not only providing novel and desiring model interpretability for face verification but also ensuring the accuracy as plugging into existing face recognition models.

View on arXivView PDF

Code Implementations(1)

ntubiolin/xcosOfficial100%
8518Jupyter Notebook, PythonFeb 10, 20204 years ago

Similar Papers

Cite this paper

@article{lin2020xcos,
  title  = {xCos: An Explainable Cosine Metric for Face Verification Task},
  author = {Yu-Sheng Lin and Zhe-Yu Liu and Yu-An Chen and Yu-Siang Wang and Ya-Liang Chang and Winston H. Hsu},
  year   = {2020},
  eprint = {2003.05383},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.05383}
}

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

Discussion