potentialpaper

Differentiable Average Precision Loss in DETR

Youngsun Pan, Yiting Zhao

ICLR 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Average Precision (AP) and mean AP (mAP) remain the dominant metrics for evaluating object detectors, yet most training objectives optimize surrogates that are not well aligned with these ranking-based measures. Most prior AP surrogates either rely on pairwise comparisons, incurring quadratic complexity, or only optimize classification, necessitating additional localization losses. We introduce differentiable average precision (DAP) loss, a smooth AP loss that directly optimizes a differentiable approximation to COCO-style mAP for one-to-one detectors. Our key idea is to (i) replace non-differentiable sorting by modeling detection scores as continuous distributions and sweeping a series of thresholds to obtain a differentiable precision–recall curve, and (ii) use interpolation techniques to optimize localization task. This yields a differentiable mAP approximation with linear time ((O(N))(O(N))) in the number of predictions, enabling seamless integration with Hungarian matching. We prove that, with respect to prediction scores, the gradient of DAP is sign-consistent—positive for positives and negative for negatives. Empirically, fine-tuning pretrained DETR-family models with DAP for a small number of epochs delivers consistent COCO mAP gains without auxiliary losses or architectural changes. DAP is simple to implement, computationally efficient, reduces hyperparameter tuning, and bridges the gap between training and evaluation for one-to-one detection. From-scratch training also delivers modest but positive improvements, albeit smaller than those obtained through fine-tuning.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
20 Sep 2024ICLR 2025submittedICLR 2025Withdrawn—[1]
16 Sep 2025ICLR 2026submittedICLR 2026Rejected—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…