[Paper Review] Robust and Decomposable Average Precision for Image Retrieval
This paper proposes ROADMAP, a novel differentiable and decomposable loss for training deep neural networks with Average Precision (AP) in image retrieval. It introduces a smooth, upper-bounding rank approximation that ensures robust backpropagation and a calibration loss to reduce the decomposability gap between batch and full-dataset AP, achieving state-of-the-art performance on three benchmark datasets with no memory or computational overhead.
In image retrieval, standard evaluation metrics rely on score ranking, e.g. average precision (AP). In this paper, we introduce a method for robust and decomposable average precision (ROADMAP) addressing two major challenges for end-to-end training of deep neural networks with AP: non-differentiability and non-decomposability. Firstly, we propose a new differentiable approximation of the rank function, which provides an upper bound of the AP loss and ensures robust training. Secondly, we design a simple yet effective loss function to reduce the decomposability gap between the AP in the whole training set and its averaged batch approximation, for which we provide theoretical guarantees. Extensive experiments conducted on three image retrieval datasets show that ROADMAP outperforms several recent AP approximation methods and highlight the importance of our two contributions. Finally, using ROADMAP for training deep models yields very good performances, outperforming state-of-the-art results on the three datasets.
Motivation & Objective
- To address the non-differentiability and non-decomposability of Average Precision (AP) in end-to-end deep learning for image retrieval.
- To develop a surrogate loss that upper-bounds the AP loss and ensures stable gradient flow during training.
- To reduce the decomposability gap between batch-averaged AP and full-dataset AP through a novel calibration objective.
- To enable effective AP optimization without memory-intensive storage of all training scores or complex sampling strategies.
- To achieve state-of-the-art performance on standard image retrieval benchmarks using standard training setups.
Proposed method
- Proposes a new smooth, differentiable rank approximation that treats positive and negative examples asymmetrically to ensure the surrogate loss upper-bounds the true AP loss.
- Designs a calibration loss $\mathcal{L}_{\text{calibr.}}$ that controls the absolute scale of positive and negative scores across batches to reduce the decomposability gap.
- Integrates the upper-bounding surrogate loss $\mathcal{L}_{\text{SupAP}}$ and the calibration loss into a unified training objective $\mathcal{L}_{\text{ROADMAP}}$.
- Provides theoretical justification that $\mathcal{L}_{\text{calibr.}}$ reduces the decomposability gap between batch and full-dataset AP.
- Employs a hybrid training objective combining $\mathcal{L}_{\text{SupAP}}$ and $\mathcal{L}_{\text{calibr.}}$, with hyperparameters $\tau$ and $\rho$ for tuning.
- Uses standard deep learning frameworks (PyTorch, Faiss, timm) and mixed-precision training to ensure efficiency and reproducibility.
Experimental results
Research questions
- RQ1Can a differentiable, upper-bounding surrogate loss for AP be designed that ensures stable gradient updates during backpropagation?
- RQ2To what extent can the decomposability gap between batch-averaged and full-dataset AP be reduced through a simple calibration mechanism?
- RQ3Does the proposed ROADMAP loss outperform existing AP approximation methods in terms of final retrieval performance on standard benchmarks?
- RQ4Can ROADMAP achieve state-of-the-art results without increasing memory or computational cost compared to methods requiring full representation storage or complex sampling?
- RQ5How sensitive is the performance of ROADMAP to hyperparameters $\tau$ and $\rho$, and what optimal values yield the best results?
Key findings
- ROADMAP outperforms several recent AP approximation methods on three standard image retrieval datasets: CUB, SOP, and iNaturalist.
- On the CUB dataset, ROADMAP achieves a mAP@R of 55.8% with a batch size of 128, demonstrating strong performance under standard training conditions.
- The calibration loss $\mathcal{L}_{\text{calibr.}}$ reduces the decomposability gap by 5.4% on the SOP dataset and 3.7% on CUB, confirming its effectiveness in improving batch-level AP approximation.
- Ablation studies show that both the upper-bounding surrogate loss and the calibration loss contribute significantly to performance gains, with the latter being critical for decomposability.
- ROADMAP achieves state-of-the-art results even with small batch sizes and without requiring memory-intensive storage of all training embeddings or complex sampling heuristics.
- The method is computationally efficient, enabling training on 16GB GPUs with mixed-precision training, and is reproducible via publicly released code.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.