Fisher Discriminant Triplet and Contrastive Losses for Training Siamese Networks

Benyamin Ghojogh, Milad Sikaroudi, Sobhan Shafiei, H. R. Tizhoosh, Fakhri Karray +1 more
4/5/2020
cs.LGcs.CVstat.ML
contrastive-ssl

Official code: bghojogh/Fisher-Triplet-Contrastive-Loss (9 stars, Python, last commit 2020-10-03).

Abstract

Siamese neural network is a very powerful architecture for both feature extraction and metric learning. It usually consists of several networks that share weights.

Show full abstract

The Siamese concept is topology-agnostic and can use any neural network as its backbone. The two most popular loss functions for training these networks are the triplet and contrastive loss functions. In this paper, we propose two novel loss functions, named Fisher Discriminant Triplet (FDT) and Fisher Discriminant Contrastive (FDC). The former uses anchor-neighbor-distant triplets while the latter utilizes pairs of anchor-neighbor and anchor-distant samples. The FDT and FDC loss functions are designed based on the statistical formulation of the Fisher Discriminant Analysis (FDA), which is a linear subspace learning method. Our experiments on the MNIST and two challenging and publicly available histopathology datasets show the effectiveness of the proposed loss functions.

View on arXivView PDF

Code Implementations(1)

The code for Fisher Discriminant Triplet (FDT) and Fisher Discriminant Contrastive (FDC) loss functions

92PythonJun 8, 20206 years ago
contrastive-lossesfisher-discriminant-analysisfisher-lossessiamese-networkstriplet+1 more

Similar Papers

Cite this paper

@article{ghojogh2020fisher,
  title  = {Fisher Discriminant Triplet and Contrastive Losses for Training Siamese Networks},
  author = {Benyamin Ghojogh and Milad Sikaroudi and Sobhan Shafiei and H. R. Tizhoosh and Fakhri Karray and Mark Crowley},
  year   = {2020},
  eprint = {2004.04674},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.04674}
}

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

Discussion