Optimizing Rank-based Metrics with Blackbox Differentiation

Michal Rolínek, Vít Musil, Anselm Paulus, Marin Vlastelica, Claudio Michaelis +1 more
12/7/2019
cs.LGstat.ML

Official code: martius-lab/blackbox-backprop (357 stars, Python, MIT, last commit 2021-12-21).

Abstract

Rank-based metrics are some of the most widely used criteria for performance evaluation of computer vision models. Despite years of effort, direct optimization for these metrics remains a challenge due to their non-differentiable and non-decomposable nature.

Show full abstract

We present an efficient, theoretically sound, and general method for differentiating rank-based metrics with mini-batch gradient descent. In addition, we address optimization instability and sparsity of the supervision signal that both arise from using rank-based metrics as optimization targets. Resulting losses based on recall and Average Precision are applied to image retrieval and object detection tasks. We obtain performance that is competitive with state-of-the-art on standard image retrieval datasets and consistently improve performance of near state-of-the-art object detectors. The code is available at https://github.com/martius-lab/blackbox-backprop

View on arXivView PDF

Code Implementations(1)

MIT

Torch modules that wrap blackbox combinatorial solvers according to the method presented in "Differentiating Blackbox Combinatorial Solvers"

35739Python, Jupyter NotebookDec 6, 20194 years agoMIT

Similar Papers

Cite this paper

@article{rolnek2019optimizing,
  title  = {Optimizing Rank-based Metrics with Blackbox Differentiation},
  author = {Michal Rolínek and Vít Musil and Anselm Paulus and Marin Vlastelica and Claudio Michaelis and Georg Martius},
  year   = {2019},
  eprint = {1912.03500},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.03500}
}

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

Discussion