Saved in:
Bibliographic Details
Main Authors: Patel, Yash, Tolias, Giorgos, Matas, Jiri
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.12432
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910748068806656
author Patel, Yash
Tolias, Giorgos
Matas, Jiri
author_facet Patel, Yash
Tolias, Giorgos
Matas, Jiri
contents This paper addresses supervised deep metric learning for open-set image retrieval, focusing on three key aspects: the loss function, mixup regularization, and model initialization. In deep metric learning, optimizing the retrieval evaluation metric, recall@k, via gradient descent is desirable but challenging due to its non-differentiable nature. To overcome this, we propose a differentiable surrogate loss that is computed on large batches, nearly equivalent to the entire training set. This computationally intensive process is made feasible through an implementation that bypasses the GPU memory limitations. Additionally, we introduce an efficient mixup regularization technique that operates on pairwise scalar similarities, effectively increasing the batch size even further. The training process is further enhanced by initializing the vision encoder using foundational models, which are pre-trained on large-scale datasets. Through a systematic study of these components, we demonstrate that their synergy enables large models to nearly solve popular benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2412_12432
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Three Things to Know about Deep Metric Learning
Patel, Yash
Tolias, Giorgos
Matas, Jiri
Computer Vision and Pattern Recognition
Artificial Intelligence
This paper addresses supervised deep metric learning for open-set image retrieval, focusing on three key aspects: the loss function, mixup regularization, and model initialization. In deep metric learning, optimizing the retrieval evaluation metric, recall@k, via gradient descent is desirable but challenging due to its non-differentiable nature. To overcome this, we propose a differentiable surrogate loss that is computed on large batches, nearly equivalent to the entire training set. This computationally intensive process is made feasible through an implementation that bypasses the GPU memory limitations. Additionally, we introduce an efficient mixup regularization technique that operates on pairwise scalar similarities, effectively increasing the batch size even further. The training process is further enhanced by initializing the vision encoder using foundational models, which are pre-trained on large-scale datasets. Through a systematic study of these components, we demonstrate that their synergy enables large models to nearly solve popular benchmarks.
title Three Things to Know about Deep Metric Learning
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2412.12432