HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Learning Intra-Batch Connections for Deep Metric Learning

Jenny Seidenschwarz Ismail Elezi Laura Leal-Taixé

Learning Intra-Batch Connections for Deep Metric Learning

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

Code Repositories

dvl-tum/intra_batch
Official
pytorch
DeryanurT/Final_Project
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
metric-learning-on-cars196ResNet-50 + Intra-Batch
R@1: 88.1
metric-learning-on-cars196ResNet-50 + Intra-Batch (ensemble of 5)
R@1: 91.5
metric-learning-on-cub-200-2011ResNet-50 + Intra-Batch Connections
R@1: 71.8

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Learning Intra-Batch Connections for Deep Metric Learning | Papers | HyperAI