Smooth-AP: Smoothing the Path Towards Large-Scale Image Retrieval
About
Optimising a ranking-based metric, such as Average Precision (AP), is notoriously challenging due to the fact that it is non-differentiable, and hence cannot be optimised directly using gradient-descent methods. To this end, we introduce an objective that optimises instead a smoothed approximation of AP, coined Smooth-AP. Smooth-AP is a plug-and-play objective function that allows for end-to-end training of deep networks with a simple and elegant implementation. We also present an analysis for why directly optimising the ranking based metric of AP offers benefits over other deep metric learning losses. We apply Smooth-AP to standard retrieval benchmarks: Stanford Online products and VehicleID, and also evaluate on larger-scale datasets: INaturalist for fine-grained category retrieval, and VGGFace2 and IJB-C for face retrieval. In all cases, we improve the performance over the state-of-the-art, especially for larger-scale datasets, thus demonstrating the effectiveness and scalability of Smooth-AP to real-world scenarios.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Retrieval | Stanford Online Products (test) | Recall@180.1 | 220 | |
| Vehicle Re-identification | VehicleID (Small) | R-194.9 | 61 | |
| Image Retrieval | SOP (test) | Recall@180.1 | 42 | |
| Vehicle Retrieval | VehicleID (Small) | Recall@194.9 | 32 | |
| Image Retrieval | VehicleID (Large) | Recall@191.9 | 28 | |
| Molecule Classification | ToxCast Task 12 (test) | AUPRC0.227 | 27 | |
| Molecule Classification | Tox21 Task 2 (test) | AUPRC62.1 | 27 | |
| Graph Classification | HIV MoleculeNet (test) | AUPRC32.76 | 27 | |
| Graph Classification | MUV MoleculeNet (test) | AUPRC0.73 | 27 | |
| Image Retrieval | Stanford Online Products (SOP) standard (test) | Recall@180.1 | 27 |