TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Rethinking the Optimization of Average Precision: Only Pen...

Rethinking the Optimization of Average Precision: Only Penalizing Negative Instances before Positive Ones is Enough

Zhuo Li, Weiqing Min, Jiajun Song, Yaohui Zhu, Liping Kang, Xiaoming Wei, Xiaolin Wei, Shuqiang Jiang

2021-02-09Vehicle Re-IdentificationRetrievalImage Retrieval
PaperPDFCode(official)Code(official)

Abstract

Optimizing the approximation of Average Precision (AP) has been widely studied for image retrieval. Limited by the definition of AP, such methods consider both negative and positive instances ranking before each positive instance. However, we claim that only penalizing negative instances before positive ones is enough, because the loss only comes from these negative instances. To this end, we propose a novel loss, namely Penalizing Negative instances before Positive ones (PNP), which can directly minimize the number of negative instances before each positive one. In addition, AP-based methods adopt a fixed and sub-optimal gradient assignment strategy. Therefore, we systematically investigate different gradient assignment solutions via constructing derivative functions of the loss, resulting in PNP-I with increasing derivative functions and PNP-D with decreasing ones. PNP-I focuses more on the hard positive instances by assigning larger gradients to them and tries to make all relevant instances closer. In contrast, PNP-D pays less attention to such instances and slowly corrects them. For most real-world data, one class usually contains several local clusters. PNP-I blindly gathers these clusters while PNP-D keeps them as they were. Therefore, PNP-D is more superior. Experiments on three standard retrieval datasets show consistent results with the above analysis. Extensive evaluations demonstrate that PNP-D achieves the state-of-the-art performance. Code is available at https://github.com/interestingzhuo/PNPloss

Results

TaskDatasetMetricValueModel
Image RetrievalSOPR@181.1PNP Loss
Image RetrievaliNaturalistR@166.6PNP Loss
Image RetrievaliNaturalistR@1689.7PNP Loss
Image RetrievaliNaturalistR@3292.6PNP Loss
Intelligent SurveillanceVehicleID LargeRank-193.2PNP Loss
Intelligent SurveillanceVehicleID LargeRank-596.6PNP Loss
Intelligent SurveillanceVehicleID MediumRank-194.2PNP Loss
Intelligent SurveillanceVehicleID MediumRank-596.9PNP Loss
Intelligent SurveillanceVehicleID SmallRank-195.5PNP Loss
Intelligent SurveillanceVehicleID SmallRank-597.8PNP Loss
Vehicle Re-IdentificationVehicleID LargeRank-193.2PNP Loss
Vehicle Re-IdentificationVehicleID LargeRank-596.6PNP Loss
Vehicle Re-IdentificationVehicleID MediumRank-194.2PNP Loss
Vehicle Re-IdentificationVehicleID MediumRank-596.9PNP Loss
Vehicle Re-IdentificationVehicleID SmallRank-195.5PNP Loss
Vehicle Re-IdentificationVehicleID SmallRank-597.8PNP Loss

Related Papers

From Roots to Rewards: Dynamic Tree Reasoning with RL2025-07-17HapticCap: A Multimodal Dataset and Task for Understanding User Experience of Vibration Haptic Signals2025-07-17A Survey of Context Engineering for Large Language Models2025-07-17MCoT-RE: Multi-Faceted Chain-of-Thought and Re-Ranking for Training-Free Zero-Shot Composed Image Retrieval2025-07-17FAR-Net: Multi-Stage Fusion Network with Enhanced Semantic Alignment and Adaptive Reconciliation for Composed Image Retrieval2025-07-17Developing Visual Augmented Q&A System using Scalable Vision Embedding Retrieval & Late Interaction Re-ranker2025-07-16Language-Guided Contrastive Audio-Visual Masked Autoencoder with Automatically Generated Audio-Visual-Text Triplets from Videos2025-07-16Context-Aware Search and Retrieval Over Erasure Channels2025-07-16