Global Average Precision for Representation Learning
Researchers introduce gSAP, a global average precision loss that can replace InfoNCE in representation learning.
Standard retrieval metrics and losses such as mAP and InfoNCE score each query separately and do not make similarities comparable across queries. Global Average Precision ranks all query-candidate pairs in one list; gSAP is a differentiable surrogate that needs only a similarity matrix and a positive-pair mask. Swapping it into existing recipes improves supervised metric learning, cross-modal alignment, and self-supervised pretraining, retrieving up to four times as many positives at the same precision and improving transfer, kNN, and zero-shot accuracy.
- gSAP is a drop-in ranking loss using the same inputs as existing losses.
- It stays trainable at low temperatures where per-query surrogates lose gradient.
- It retrieves up to four times as many positives at equal precision.
- Models show higher transfer, kNN, and zero-shot classification accuracy.
From the original article
1 min read at arxiv.orgStandard information retrieval metrics, such as mean Average Precision (mAP), assess performance one query at a time, based on how the similarities between a query and its positives compare against those with its negatives. The same holds for common representation learning losses, such as InfoNCE and per-query AP surrogates.
By Bill Psomas · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.