Batch-Incremental Triplet Sampling for Training Triplet Networks Using Bayesian Updating Theorem

Milad Sikaroudi, Benyamin Ghojogh, Fakhri Karray, Mark Crowley, H. R. Tizhoosh
7/10/2020
stat.MLcs.CVcs.LG
bayesian

Official code: bghojogh/BUT-BUNCA-Triplet-Sampling (1 star, Python, last commit 2021-05-10).

Abstract

Variants of Triplet networks are robust entities for learning a discriminative embedding subspace. There exist different triplet mining approaches for selecting the most suitable training triplets.

Show full abstract

Some of these mining methods rely on the extreme distances between instances, and some others make use of sampling. However, sampling from stochastic distributions of data rather than sampling merely from the existing embedding instances can provide more discriminative information. In this work, we sample triplets from distributions of data rather than from existing instances. We consider a multivariate normal distribution for the embedding of each class. Using Bayesian updating and conjugate priors, we update the distributions of classes dynamically by receiving the new mini-batches of training data. The proposed triplet mining with Bayesian updating can be used with any triplet-based loss function, e.g., triplet-loss or Neighborhood Component Analysis (NCA) loss. Accordingly, Our triplet mining approaches are called Bayesian Updating Triplet (BUT) and Bayesian Updating NCA (BUNCA), depending on which loss function is being used. Experimental results on two public datasets, namely MNIST and histopathology colorectal cancer (CRC), substantiate the effectiveness of the proposed triplet mining method.

View on arXivView PDF

Code Implementations(1)

The code for Bayesian Updating Triplet (BUT) and Bayesian Updating Neighborhood Component Analysis (BUNCA) triplet sampling

11PythonOct 16, 20205 years ago
siamese-networktriplettriplet-losstriplet-sampling

Similar Papers

Cite this paper

@article{sikaroudi2020batchincremental,
  title  = {Batch-Incremental Triplet Sampling for Training Triplet Networks Using Bayesian Updating Theorem},
  author = {Milad Sikaroudi and Benyamin Ghojogh and Fakhri Karray and Mark Crowley and H. R. Tizhoosh},
  year   = {2020},
  eprint = {2007.05610},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.05610}
}

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

Discussion