# Learning with Average Precision: Training Image Retrieval with a   Listwise Loss

**Authors:** Jerome Revaud, Jon Almazan, Rafael Sampaio de Rezende, Cesar Roberto, de Souza

arXiv: 1906.07589 · 2019-06-19

## TL;DR

This paper introduces a novel listwise loss function that directly optimizes mean average precision for image retrieval, leading to improved performance and simplified training without complex engineering tricks.

## Contribution

It proposes a differentiable approximation of AP using histogram binning, enabling end-to-end training that considers thousands of images simultaneously.

## Key findings

- Achieves state-of-the-art results on standard benchmarks.
- Eliminates need for pre-training and hard-negative mining.
- Provides open-source models and evaluation scripts.

## Abstract

Image retrieval can be formulated as a ranking problem where the goal is to order database images by decreasing similarity to the query. Recent deep models for image retrieval have outperformed traditional methods by leveraging ranking-tailored loss functions, but important theoretical and practical problems remain. First, rather than directly optimizing the global ranking, they minimize an upper-bound on the essential loss, which does not necessarily result in an optimal mean average precision (mAP). Second, these methods require significant engineering efforts to work well, e.g. special pre-training and hard-negative mining. In this paper we propose instead to directly optimize the global mAP by leveraging recent advances in listwise loss formulations. Using a histogram binning approximation, the AP can be differentiated and thus employed to end-to-end learning. Compared to existing losses, the proposed method considers thousands of images simultaneously at each iteration and eliminates the need for ad hoc tricks. It also establishes a new state of the art on many standard retrieval benchmarks. Models and evaluation scripts have been made available at https://europe.naverlabs.com/Deep-Image-Retrieval/

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1906.07589/full.md

## Figures

13 figures with captions in the complete paper: https://tomesphere.com/paper/1906.07589/full.md

## References

61 references — full list in the complete paper: https://tomesphere.com/paper/1906.07589/full.md

---
Source: https://tomesphere.com/paper/1906.07589