Contrastive Bayesian Analysis for Deep Metric Learning

Shichao Kan, Zhiquan He, Yigang Cen, Yang Li, Vladimir Mladenovic +1 more
10/10/2022
cs.CV
contrastive-sslbayesian

Official code: kanshichao/CBML (13 stars, Python, last commit 2022-12-27).

Abstract

Recent methods for deep metric learning have been focusing on designing different contrastive loss functions between positive and negative pairs of samples so that the learned feature embedding is able to pull positive samples of the same class closer and push negative samples from different classes away from each other. In this work, we recognize that there is a significant semantic gap between features at the intermediate feature layer and class labels at the final output layer.

Show full abstract

To bridge this gap, we develop a contrastive Bayesian analysis to characterize and model the posterior probabilities of image labels conditioned by their features similarity in a contrastive learning setting. This contrastive Bayesian analysis leads to a new loss function for deep metric learning. To improve the generalization capability of the proposed method onto new classes, we further extend the contrastive Bayesian loss with a metric variance constraint. Our experimental results and ablation studies demonstrate that the proposed contrastive Bayesian metric learning method significantly improves the performance of deep metric learning in both supervised and pseudo-supervised scenarios, outperforming existing methods by a large margin.

View on arXivView PDF

Code Implementations(1)

kanshichao/CBMLOfficial100%

Contrastive Bayesian Analysis for Deep Metric Learning and an Integrated Deep Metric Learning Toolbox Based on Pytorch

134Python, ShellApr 12, 20203 years ago

Similar Papers

Cite this paper

@article{kan2022contrastive,
  title  = {Contrastive Bayesian Analysis for Deep Metric Learning},
  author = {Shichao Kan and Zhiquan He and Yigang Cen and Yang Li and Vladimir Mladenovic and Zhihai He},
  year   = {2022},
  eprint = {2210.04402},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04402}
}

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

Discussion