Andrew Brown, Weidi Xie, Vicky Kalogeiton, Andrew Zisserman
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.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Image Retrieval | SOP | R@1 | 80.1 | Smooth-AP |
| Image Retrieval | iNaturalist | R@1 | 67.2 | Smooth-AP |
| Image Retrieval | iNaturalist | R@16 | 90.3 | Smooth-AP |
| Image Retrieval | iNaturalist | R@32 | 93.1 | Smooth-AP |
| Image Retrieval | iNaturalist | R@5 | 81.8 | Smooth-AP |
| Intelligent Surveillance | VehicleID Large | Rank-1 | 91.9 | Smooth-AP |
| Intelligent Surveillance | VehicleID Large | Rank-5 | 96.2 | Smooth-AP |
| Intelligent Surveillance | VehicleID Medium | Rank-1 | 93.3 | Smooth-AP |
| Intelligent Surveillance | VehicleID Medium | Rank-5 | 96.4 | Smooth-AP |
| Intelligent Surveillance | VehicleID Small | Rank-1 | 94.9 | Smooth-AP |
| Intelligent Surveillance | VehicleID Small | Rank-5 | 97.6 | Smooth-AP |
| Vehicle Re-Identification | VehicleID Large | Rank-1 | 91.9 | Smooth-AP |
| Vehicle Re-Identification | VehicleID Large | Rank-5 | 96.2 | Smooth-AP |
| Vehicle Re-Identification | VehicleID Medium | Rank-1 | 93.3 | Smooth-AP |
| Vehicle Re-Identification | VehicleID Medium | Rank-5 | 96.4 | Smooth-AP |
| Vehicle Re-Identification | VehicleID Small | Rank-1 | 94.9 | Smooth-AP |
| Vehicle Re-Identification | VehicleID Small | Rank-5 | 97.6 | Smooth-AP |