Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Learning Intra-Batch Connections for Deep Metric Learning

About

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. 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.

Jenny Seidenschwarz, Ismail Elezi, Laura Leal-Taix\'e• 2021

Related benchmarks

TaskDatasetResultRank
Deep Metric LearningCUB200 2011 (test)
Recall@170.3
129
Image RetrievalIn-shop Clothes Retrieval Dataset
Recall@192.8
120
Image RetrievalCUB
Recall@170.3
87
In-shop clothes retrievalin-shop clothes retrieval dataset (test)
Recall@192.8
78
Deep Metric LearningCARS196 (test)
R@188.1
56
Deep Metric LearningCARS196
Recall@188.1
50
Deep Metric LearningSOP (test)
Recall@181.4
32
Deep Metric LearningStanford Online Products (SOP)
R@181.4
20
Showing 8 of 8 rows

Other info

Code

Follow for update