Deep Metric Learning with Chance Constraints

Yeti Z. Gurbuz, Ogul Can, A. Aydin Alatan
9/19/2022
cs.CVcs.LGstat.ML

Official code: yetigurbuz/ccp-dml (6 stars, Python, MIT, last commit 2023-09-06).

Abstract

Deep metric learning (DML) aims to minimize empirical expected loss of the pairwise intra-/inter- class proximity violations in the embedding space. We relate DML to feasibility problem of finite chance constraints.

Show full abstract

We show that minimizer of proxy-based DML satisfies certain chance constraints, and that the worst case generalization performance of the proxy-based methods can be characterized by the radius of the smallest ball around a class proxy to cover the entire domain of the corresponding class samples, suggesting multiple proxies per class helps performance. To provide a scalable algorithm as well as exploiting more proxies, we consider the chance constraints implied by the minimizers of proxy-based DML instances and reformulate DML as finding a feasible point in intersection of such constraints, resulting in a problem to be approximately solved by iterative projections. Simply put, we repeatedly train a regularized proxy-based loss and re-initialize the proxies with the embeddings of the deliberately selected new samples. We applied our method with 4 well-accepted DML losses and show the effectiveness with extensive evaluations on 4 popular DML benchmarks. Code is available at: https://github.com/yetigurbuz/ccp-dml

View on arXivView PDF

Code Implementations(1)

yetigurbuz/ccp-dmlOfficial100%
MIT

Official Tensorflow Implementation of Deep Metric Learning with Chance Constraints (Chance Constrained Programming for Deep Metric Learning)

61Python, ShellJul 16, 20223 years agoMIT

Similar Papers

Cite this paper

@article{gurbuz2022deep,
  title  = {Deep Metric Learning with Chance Constraints},
  author = {Yeti Z. Gurbuz and Ogul Can and A. Aydin Alatan},
  year   = {2022},
  eprint = {2209.09060},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.09060}
}

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

Discussion