FitAP: Confidence-Free AP for OV-RefOD
- FitAP is a confidence-free Average Precision metric for OV-RefOD that deterministically ranks predicted boxes using a score based on normalized area and the best IoU with ground truth.
- It preserves the standard AP evaluation by aggregating predictions globally and applying greedy one-to-one matching over multiple COCO-style IoU thresholds.
- Empirical results show that applying techniques like Reverse Contrast Attention can boost FitAP performance, albeit with limitations such as scale sensitivity and reliance on oracle IoU.
Searching arXiv for FitAP and the cited paper to ground the article. FitAP is a confidence-free Average Precision metric introduced for Open Vocabulary Referring Object Detection (OV-RefOD), a setting in which a model receives an image and a free-form referring expression and returns a set of predicted boxes , often without per-box confidence scores. FitAP preserves the standard AP precision-recall protocol by replacing learned confidence with a deterministic ranking score,
where is the normalized box area and is the best overlap with the ground-truth set . FitAP is then defined as the mean AP over the ten COCO-style IoU thresholds (Juanico et al., 26 Jul 2025).
1. Formal definition in OV-RefOD
For a prediction , FitAP first computes the standard intersection-over-union
then identifies the best-overlap ground truth through
0
The confidence-free score used only for ranking is
1
This construction retains AP-style ranking and matching even when the VLM does not emit classifier scores or proposal confidences (Juanico et al., 26 Jul 2025).
At a fixed IoU threshold 2, all predictions from all 3 pairs are aggregated into a single list and sorted in descending order by 4. Greedy one-to-one matching then follows standard detection practice: a prediction is a true positive if 5 and the ground-truth indexed by 6 has not yet been matched by any higher-ranked prediction from the same image-query pair; otherwise it is a false positive. With 7 denoting the total number of ground-truth boxes across the evaluation set, cumulative precision and recall at rank 8 are
9
The interpolated precision envelope is
0
and
1
Finally,
2
2. Ranking, matching, and metric mechanics
FitAP is global rather than per-image: it aggregates all predictions from all 3 pairs into one ranked list, then reuses that ranking for every IoU threshold. The metric therefore separates ranking from thresholding. IoU enters twice. First, it governs matching through the condition 4. Second, it affects rank through the multiplicative score 5. Box area enters only through the normalized area term, which is constrained to 6 by division through image area 7 (Juanico et al., 26 Jul 2025).
The paper’s worked example makes the mechanics explicit. For one 8 pair with two ground-truth boxes and three predictions, the predictions are ranked by score as 9, 0, 1 even though 2 has the worst IoU, because its normalized area is largest. At 3, this yields one false positive followed by two true positives and an interpolated 4. At 5, no prediction satisfies the threshold, so 6. Averaging only these two thresholds for illustration gives 7; in actual use, FitAP averages over all ten thresholds from 8 to 9 (Juanico et al., 26 Jul 2025).
This construction penalizes duplicate or overlapping predictions in the same way as standard AP. The highest-ranked prediction matching a given ground-truth box receives the true positive, while later predictions hitting the same box become false positives. Multiple predicted boxes per referring expression are therefore allowed, but the one-to-one matching rule prevents overcounting.
3. Computation procedure and implementation details
The evaluation pipeline begins by precomputing, for every predicted box in every image-query pair, the full IoU vector against all ground-truth boxes, the best-overlap value 0, the corresponding index 1, the normalized area 2, and the ranking score 3. These per-prediction records are then pooled across the dataset and sorted in descending order by score. The same ordering is reused for all ten IoU thresholds, which makes the threshold sweep inexpensive once ranking has been fixed (Juanico et al., 26 Jul 2025).
For each threshold 4, all ground-truth boxes are initialized as unmatched. The evaluator traverses the globally sorted prediction list once, assigns TP or FP labels under greedy one-to-one matching, and accumulates precision-recall points. AP is computed by integrating the interpolated precision envelope, either by summation over recall-change points or on a fixed recall grid. The default settings given are the ten COCO-style IoU thresholds, area normalization 5 with 6 in pixels, and a precision-envelope integral consistent with standard AP implementations (Juanico et al., 26 Jul 2025).
The stated complexity is 7 for IoU computation over image-query pairs, 8 for sorting the global prediction list with 9, and 0 for the ten threshold traversals. The implementation guidance is correspondingly concrete: vectorize IoU computation per image, cache image area, use a stable sort, and break score ties by higher 1, then larger 2, then a deterministic index.
4. Design rationale and relation to standard AP
The defining motivation for FitAP is that many VLMs used in OV-RefOD do not emit per-box confidence scores. Standard AP and mAP require a confidence score per prediction for ranking and are therefore sensitive to score calibration and class priors. FitAP avoids confidence altogether by ranking detections with a deterministic, geometry-derived score. In the intended use case, this makes it especially suitable for prompt-based VLMs and OV-RefOD, where confidences are missing, inconsistent, or not comparable (Juanico et al., 26 Jul 2025).
The metric is also presented as reducing dependence on uncalibrated textual or logit outputs and instruction-following idiosyncrasies. Instead, it emphasizes two interpretable geometric factors: alignment, through IoU, and sizing, through normalized box area. The paper reports strong empirical correlations with ground-truth area: Pearson 3 for 4 and 5 for 6. Precision-recall curves built from 7 show the expected precision-recall trade-off, monotone AP decrease as 8 increases, and zigzag empirical PR curves with standard interpolation envelopes (Juanico et al., 26 Jul 2025).
The stability and fairness arguments are correspondingly limited and explicit. Deterministic ranking from geometry is said to reduce metric variance due to decoding randomness in VLMs, and normalization by image area keeps 9, making the score commensurate across varying resolutions and aspect ratios. At the same time, the metric’s ranking is evaluation-time and oracle-like, because 0 is computed against ground truth. A plausible implication is that FitAP is best understood as a confidence-free localization metric rather than a drop-in replacement for confidence-ranked mAP.
5. Empirical use with Reverse Contrast Attention
FitAP was introduced and evaluated on OV-RefOD using a novel split of COCO val2017 containing 2,064 1 pairs. The paper reports FitAP as a single scalar, namely the average of 2 over 3, and applies Reverse Contrast Attention (RCA) at inference time to 15 open-source VLMs. The main result is that RCA improved FitAP in 11 of 15 models, with gains up to 4 (Juanico et al., 26 Jul 2025).
| Model | FitAP post vs. pre | Change |
|---|---|---|
| Qwen2.5-VL-7B | 46.8535 vs 37.0005 | +26.6% |
| DeepSeek-VL2 | 3.99586 vs 3.38530 | +18.0% |
| SAIL-VL-1.6-8B | 5.67149 vs 4.84873 | +17.0% |
| Gemma3-27B | 3.01913 vs 2.74179 | +10.1% |
| PaliGemma2-3B-mix-448 | 41.1179 vs 38.7982 | +5.98% |
The broader result set also includes gains for Ovis2-34B, Kimi-VL-A3B, VARCO-VISION-14B, valley2_dpo, and Moondream2, while WeThink-Qwen2.5VL-7B, Ristretto-3B, POINTS1.5-Qwen2.5-7B, and Valley-Eagle show decreases. The paper relates these outcomes to attention sharpness and the timing and structure of vision-language fusion: late-fusion models benefit consistently, while DeepSeek-VL2, described as an early-fusion MoE, also improves, indicating that capacity and disentanglement matter. The accompanying analyses report negative correlations between the count of subthreshold hidden-state components and a central attention sharpness metric 5 in models that improved with RCA, including Qwen2.5-VL-7B (6) and DeepSeek-VL2 (7), both statistically significant; WeThink’s correlation was insignificant and RCA did not help it (Juanico et al., 26 Jul 2025).
6. Limitations, extensions, and nomenclature
FitAP has three explicit limitations. First, ranking uses 8 computed against ground truth, so evaluation uses an oracle ranking independent of model confidence. Second, multiplying by 9 introduces scale sensitivity: at equal 0, larger boxes can be favored. Third, FitAP is box-based and therefore does not evaluate mask quality or fine-grained shape. These limitations are not hidden by the formulation; they are part of the metric’s definition and are central to interpreting results (Juanico et al., 26 Jul 2025).
The edge-case behavior is similarly explicit. Multiple predicted boxes per referring expression are allowed; duplicates beyond the first correct match become false positives. If 1 but predictions exist, these contribute only false positives. For benchmarks, such pairs can either be excluded from 2 if the dataset guarantees no positives, or retained to test specificity. Small GT or prediction misalignments near the IoU threshold can flip TP and FP labels, but averaging over thresholds mitigates threshold brittleness. Ties in the ranking score should be broken deterministically, and the paper recommends stable sorting for reproducibility (Juanico et al., 26 Jul 2025).
The proposed extensions retain the confidence-free principle while changing the ranking function or evaluation granularity. These include a scale-robust score
3
with 4 and 5; an IoU-only baseline 6; multi-scale reporting as FitAPs, FitAPm, and FitAPl; a segmentation-based “FitAP-mask”; and per-query analysis for multi-instance referring expressions. Finally, the label “FitAP” is not unique across arXiv. An unrelated use appears in cell-free massive MIMO-aided ISAC systems, where “FitAP” denotes joint Access Point activation and power allocation rather than a detection metric (Tung et al., 12 Jul 2025). In the OV-RefOD literature, however, FitAP specifically denotes the confidence-free AP construction defined by 7 and averaged over the standard ten IoU thresholds (Juanico et al., 26 Jul 2025).