Optimization of Rank Losses for Image Retrieval

Elias Ramzi, Nicolas Audebert, Clément Rambour, André Araujo, Xavier Bitot +1 more
9/15/2023
cs.CV

Official code: cvdfoundation/google-landmark (853 stars, last commit 2023-09-18). 1 more implementation below.

Abstract

In image retrieval, standard evaluation metrics rely on score ranking, \eg average precision (AP), recall at k (R@k), normalized discounted cumulative gain (NDCG). In this work we introduce a general framework for robust and decomposable rank losses optimization. It addresses two major challenges for end-to-end training of deep neural networks with rank losses: non-differentiability and non-decomposability. Firstly we propose a general surrogate for ranking operator, SupRank, that is amenable to stochastic gradient descent. It provides an upperbound for rank losses and ensures robust training. Secondly, we use a simple yet effective loss function to reduce the decomposability gap between the averaged batch approximation of ranking losses and their values on the whole training set. We apply our framework to two standard metrics for image retrieval: AP and R@k. Additionally we apply our framework to hierarchical image retrieval. We introduce an extension of AP, the hierarchical average precision $\mathcal{H}$-AP, and optimize it as well as the NDCG. Finally we create the first hierarchical landmarks retrieval dataset. We use a semi-automatic pipeline to create hierarchical labels, extending the large scale Google Landmarks v2 dataset. The hierarchical dataset is publicly available at https://github.com/cvdfoundation/google-landmark. Code will be released at https://github.com/elias-ramzi/SupRank.

View on arXivView PDF

Code Implementations(2)

Dataset with 5 million images depicting human-made and natural landmarks spanning 200 thousand classes.

853129ShellApr 5, 20193 years ago
MIT
20Shell, PythonFeb 1, 20231 years agoMIT

Similar Papers

Cite this paper

@article{ramzi2023optimization,
  title  = {Optimization of Rank Losses for Image Retrieval},
  author = {Elias Ramzi and Nicolas Audebert and Clément Rambour and André Araujo and Xavier Bitot and Nicolas Thome},
  year   = {2023},
  eprint = {2309.08250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.08250v1}
}

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

Discussion