Learning Intra-Batch Connections for Deep Metric Learning

Jenny Seidenschwarz, Ismail Elezi, Laura Leal-Taixé
2/15/2021
69 citations
cs.CV

No official code found. Best implementation: dvl-tum/intra_batch (47 stars, Python, MIT, last commit 2021-12-14).

Abstract

The goal of metric learning is to learn a function that maps samples to a lower-dimensional space where similar samples lie closer than dissimilar ones. Particularly, deep metric learning utilizes neural networks to learn such a mapping.

Show full abstract

Most approaches rely on losses that only take the relations between pairs or triplets of samples into account, which either belong to the same class or two different classes. However, these methods do not explore the embedding space in its entirety. To this end, we propose an approach based on message passing networks that takes all the relations in a mini-batch into account. We refine embedding vectors by exchanging messages among all samples in a given batch allowing the training process to be aware of its overall structure. Since not all samples are equally important to predict a decision boundary, we use an attention mechanism during message passing to allow samples to weigh the importance of each neighbor accordingly. We achieve state-of-the-art results on clustering and image retrieval on the CUB-200-2011, Cars196, Stanford Online Products, and In-Shop Clothes datasets. To facilitate further research, we make available the code and the models at https://github.com/dvl-tum/intra_batch_connections.

View on arXivView PDF

Code Implementations(1)

dvl-tum/intra_batchCommunity100%
MIT

Official PyTorch implementation of Learning Intra-Batch Connections for Deep Metric Learning (ICML 2021) published at International Conference on Machine Learning

478PythonJun 8, 20214 years agoMIT

Similar Papers

Cite this paper

@article{seidenschwarz2021learning,
  title  = {Learning Intra-Batch Connections for Deep Metric Learning},
  author = {Jenny Seidenschwarz and Ismail Elezi and Laura Leal-Taixé},
  year   = {2021},
  eprint = {2102.07753},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.07753}
}

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

Discussion