OV-RefOD: Open Vocabulary Referring Detection
- OV-RefOD is an object detection framework that localizes arbitrary concepts from free-form text queries, going beyond fixed detector labels.
- It employs pseudo-labeling and CLIP-based region-text alignment alongside prompt-conditioned prediction to improve zero-shot localization performance.
- Inference techniques like Reverse Contrast Attention reweight cross-modal attention, enhancing interpretability and precision without retraining.
Searching arXiv for the two specified papers to ground the article. arXiv search: (Kang et al., 2023) arXiv search: (Juanico et al., 26 Jul 2025) Open Vocabulary Referring Object Detection (OV-RefOD) denotes object localization conditioned on text queries that are not restricted to a fixed detector label set. In the reported literature, this setting appears both as zero-shot localization from rich referring expressions and as prompt-based extraction of object boxes from open-source vision-LLMs (VLMs). The supplied sources describe two distinct mechanisms for this problem: learning region-text alignment for arbitrary concepts through pseudo-labeling in a CLIP-based detector, and modifying final-layer cross-modal attention at inference time to improve localization and interpretability without retraining (Kang et al., 2023, Juanico et al., 26 Jul 2025).
1. Scope and task formulation
Open-vocabulary object detection (OVOD) is described as extending target vocabulary from pre-defined categories to open-world by transferring knowledge of arbitrary concepts from vision-language pre-training models to detectors. Within that framing, prior OVOD methods are characterized as suffering from indirect supervision or limited transferable concepts, and the PLAC formulation is introduced to directly learn region-text alignment for arbitrary concepts (Kang et al., 2023).
For referring-object localization, the reported RefCOCOg protocol uses the validation split with approximately expressions, where queries describe individual objects with rich attributes, including color, relationships, and text. Evaluation is zero-shot: no fine-tuning on referring-expression-comprehension data is performed. Given each image-query pair, the OVOD model scores regions against a single text embedding and returns the top- regions, with (Kang et al., 2023).
A second formulation treats OV-RefOD as prompt-conditioned box prediction in general-purpose VLMs. The reported benchmark uses the COCO val 2017 novel split with 2,064 pairs. Queries take the form: “Give the normalized bounding box coordinates in of all instances of in the image.” Ground truth is drawn from the COCO base-vocabulary subset (Juanico et al., 26 Jul 2025).
These protocols indicate that OV-RefOD, as represented here, covers both arbitrary-concept grounding from free-form language and open-vocabulary localization from explicit detection prompts.
2. PLAC: pseudo-labeling for arbitrary concepts
The PLAC method uses Deformable DETR with a Swin-Transformer backbone, either Tiny or Base. The detector outputs object queries, each decoded into a region embedding , a bounding box , and a classification score. For any text concept , whether a base class name or a pseudo-label, a frozen CLIP text embedding 0 is obtained via 1. Region-text alignment is scored by
2
with fixed 3 and 4. At inference, a free-form query text 5 is encoded as 6, each region embedding 7 is scored by 8, and the top-9 regions are selected (Kang et al., 2023).
The pseudo-label generator itself is trained on CC3M, consisting of 0 million web image-alt-text pairs, while CLIP encoders remain frozen. For each pair 1,
2
The PLAC module is a 3-layer MLP with GeLU mapping 3: 4 Training combines mean-squared error,
5
with Relational KD (RKD),
6
where
7
and 8 is the average distance over the batch. The overall objective is
9
with 0. Optimization uses AdamW with learning rate 1, batch size 2, for 3 epochs (Kang et al., 2023).
Pseudo-label extraction on detection images proceeds by training a Region Proposal Network using Deformable DETR as RPN on LVIS-base annotations only. From each training image, up to approximately 4 proposals are extracted. Proposals are discarded if they have IoU 5 against any base annotation or objectness 6. For each remaining proposal 7, the image crop is encoded with 8, projected through PLAC, and the resulting 9 is stored as the region’s pseudo-text embedding (Kang et al., 2023).
3. Detector training and zero-shot OV-RefOD with PLAC
Full OVOD training uses two-stage bipartite matching. In Stage 1, object queries are matched to annotated base-class text embeddings 0. In Stage 2, leftover queries are matched to PLAC pseudo-labels 1 on proposals. Matching uses the Hungarian algorithm with a cost combining classification and, for base annotations, box regression (Kang et al., 2023).
For each matched pair 2, the binary target is 3, and for all other 4, 5. The classification loss is binary cross entropy,
6
The box loss, applied only for Stage 1 base matches, is
7
The total OVOD loss is
8
with 9 in Deformable DETR (Kang et al., 2023).
On LVIS rare classes, the reported AP0 values are as follows. In the controlled setting with fewer than 1 million backbone parameters: ViLD (RN50) achieves 2, RegionCLIP 3, VLDet (Swin-T) 4, and PLAC (Swin-T) 5, which is reported as 6 over base-only. In the large-scale setting with more than 7 million parameters: OWL-ViT (ViT-L) achieves 8, VLDet (Swin-B) 9, and PLAC (Swin-B) 0 (Kang et al., 2023).
For RefCOCOg zero-shot Precision@1, the reported values are:
- VLDet T: 2 at @1, 3 at @5, 4 at @10
- PLAC T: 5 at @1, 6 at @5, 7 at @10, with increases of 8, 9, and 0
- VLDet B: 1 at @1, 2 at @5, 3 at @10
- PLAC B: 4 at @1, 5 at @5, 6 at @10, with increases of 7, 8, and 9 (Kang et al., 2023)
A common misconception is that open-vocabulary referring localization is confined to noun concepts. The RefCOCOg results are reported specifically for arbitrary concepts, and the source explicitly distinguishes noun-concept benchmarks from referring-expression evaluation with richer linguistic content (Kang et al., 2023).
4. Reverse Contrast Attention as an inference-time intervention
Reverse Contrast Attention (RCA) is formulated for vision-language transformers at the final transformer layer. Hidden states 0 are produced from value vectors 1 via attention distribution 2: 3 RCA reweights each 4 so that mid-range activations near a central value 5 are amplified while extreme high or low activations are suppressed. Two equivalent options are given: 6 or
7
The parameter 8 has default value 9, and 0 is chosen as the mean of the column-wise max attention across heads (Juanico et al., 26 Jul 2025).
The modified weights are renormalized by
1
The method can also be viewed as an element-wise flooring of hidden states,
2
with threshold 3 tied to 4. The RCA-modified hidden state is
5
For each dimension 6, using
7
the decomposition
8
leads to the flooring inequality
9
where 00 is the minimal subthreshold component. When 01 is small, 02, enforcing the flooring operation (Juanico et al., 26 Jul 2025).
Algorithmically, RCA is inserted after the final-layer unnormalized attention scores 03 are scaled by 04 and softmaxed. Per-query 05 is computed by taking cross-head maxima, 06 is computed as 07, 08 is formed by one of the two reweighting rules, the result is renormalized, and final hidden states are recomputed. No fine-tuning is required (Juanico et al., 26 Jul 2025).
5. Metrics and experimental protocols
The PLAC-based RefCOCOg evaluation uses Precision@09, defined as the fraction of queries whose ground-truth box appears in the top-10. The protocol is explicitly zero-shot, with the model run directly on image-query pairs and regions ranked by the single query text embedding (Kang et al., 2023).
The RCA study introduces FitAP because many VLMs do not supply usable confidence scores for conventional object-detection AP. FitAP is defined as
11
where 12. For each threshold 13, detections are ranked by
14
where 15 is normalized box area and 16 is computed against the closest unmatched ground-truth box at threshold 17. Precision-recall curves are then formed in the standard way over this ranking, and the area under the curve gives 18 (Juanico et al., 26 Jul 2025).
The RCA evaluation covers fifteen open-source VLMs. Reported late-fusion or modular models are Ovis2-34B, SAIL-VL-1.6-8B, Qwen2.5-VL-7B, MiniCPM-o-2.6, Kimi-VL-A3B, Gemma3-27B, VARCO-VISION-14B, PaliGemma2-3B-mix-448, and Moondream2. Reported early-fusion or tightly integrated models are DeepSeek-VL2, Valley-Eagle, WeThink-Qwen2.5VL-7B, POINTS1.5-Qwen2.5-7B, valley2_dpo, and Ristretto-3B. All checkpoints come from HuggingFace, LLM size is below 19B, model outputs are parsed with regex to extract boxes normalized to 20, and attention is extracted at the final cross-modal layer (Juanico et al., 26 Jul 2025).
A second common misconception is that confidence-based AP is the only valid way to evaluate detection quality. The FitAP construction is an explicit counterexample: it replaces detector confidence with the product of normalized box area and IoU when model outputs do not expose a conventional confidence channel (Juanico et al., 26 Jul 2025).
6. Empirical patterns, interpretability, and reported directions
For RCA, the reported FitAP table shows that 21 of 22 models improved. Qwen2.5-VL-7B increases from 23 to 24, a reported 25, and MiniCPM-o-2.6 increases from 26 to 27, a reported 28. Other positive changes include SAIL-VL-1.6-8B from 29 to 30 31, DeepSeek-VL2 from 32 to 33 34, PaliGemma2-3B-mix from 35 to 36 37, and Moondream2 from 38 to 39 40. Negative cases include WeThink-Qwen2.5VL-7B 41, Ristretto-3B 42, POINTS1.5-Qwen2.5-7B 43, and Valley-Eagle 44 (Juanico et al., 26 Jul 2025).
The interpretability analysis ties performance to attention sharpness and fusion timing. The sharpness measure 45 is the mean column-max of multi-head attention, and 46 is the number of hidden-state dimensions below 47. Pearson correlations between 48 and 49 are reported as 50 for Qwen2.5-VL-7B, 51 for DeepSeek-VL2, and 52 (not significant) for WeThink. In the two benefit cases, increasing 53 correlates with decreasing 54, which is reported as supporting the flooring inequality. The same analysis states that late-fusion models benefit most from RCA, while DeepSeek-VL2, despite being an early-fusion Mixture-of-Experts model, also improves, suggesting that internal disentanglement can arise under early fusion if capacity and gating permit (Juanico et al., 26 Jul 2025).
Qualitative visualizations are consistent with the quantitative results. Reported examples include recovery of missed boxes for bus, elephant, and small objects in Qwen2.5-VL-7B, sharper localization of elephants, cups, umbrellas, and airplanes in PaliGemma2-3B-mix and valley2_dpo, and a “kite” case in which previously subdued token patches become prominent after RCA, leading to correct detection (Juanico et al., 26 Jul 2025).
For PLAC, practical recommendations emphasize training the PLAC MLP on large-scale image-text datasets such as CC3M, COYO-700M, and LAION-400M; keeping CLIP encoders frozen; and using two-stage Hungarian matching so that true base annotations are matched first and noisy pseudo-labels do not overwhelm learning. Suggested extensions include adding a cross-modal contrastive loss, hard-negative mining, end-to-end PLAC integration into DETR’s decoder, and leveraging relation phrases such as verbs and adjectives through soft templates or multi-sentence descriptions (Kang et al., 2023).
Taken together, the reported literature indicates two non-exclusive trajectories for OV-RefOD. One trajectory expands detector supervision beyond noun concepts by generating pseudo-text embeddings for arbitrary regions and training a CLIP-based detector against them. The other trajectory modifies cross-modal attention at inference time to expose semantically relevant but previously subdued evidence in multimodal transformers. This suggests that OV-RefOD can be advanced either by strengthening the training signal for arbitrary concepts or by rebalancing inference-time attention in already trained VLMs (Kang et al., 2023, Juanico et al., 26 Jul 2025).