The Hallucination Crisis in Open-Vocabulary Detection
Open-Vocabulary Detectors (OVDs) are the "superpower" of modern computer vision, allowing users to find any object simply by typing its name. However, when deployed in the real world, these models exhibit a glaring flaw: when asked to find an object that isn't present, they often confidently hallucinate a match.
The authors dub this the "Fantastic Tractor-Dog" problem—where a model insists a golden retriever is a tractor. This critical issue is frequently masked by standard academic benchmarks like COCO and LVIS, which almost always contain at least one "correct" object per image. In real-world applications like security or medical imaging, the vast majority of frames are "background" images lacking the target object. To quantify this, the paper emphasizes a specific metric: $FPR_{bg}$ (False Positive Rate on background images).
The Root Cause: Early-Fusion Architectures
The researchers traced this hallucination problem directly to early-fusion architectures (such as Grounding DINO or LLMDet).
Unlike "late-interaction" models (like OWL-ViT) that process vision and language separately until the final classification step, early-fusion models mix these modalities deeply using cross-attention layers. In these fusion layers, the model is forced to distribute the text information somewhere. If the prompted object isn't in the image, the model "smears" the text embedding across the image features anyway. When the final classification head processes these "polluted" features, it triggers a high-confidence false positive.
Interestingly, adding a positive class to the prompt (e.g., prompting for "dog" and "tractor" when only a dog is present) naturally fixes the error, as the attention naturally routes to the valid object. The problem explodes primarily when the prompt contains only negative classes.
The Solution: Attention Sinks
Instead of proposing an expensive retraining pipeline, the authors introduce a simple, training-free hack: Attention Sinks.
By appending several neutral "sink" tokens (such as [unused0] or special characters like [()]) to the end of the text prompt, they provide the model with a semantic "trash can." When the model cannot find a valid visual match for the prompted text (e.g., "tractor"), it routes the irrelevant cross-attention to these sink tokens instead of polluting the image features. This effectively gives early-fusion models a much-needed "None of the Above" mechanism.
Key Results and Performance
The study evaluated this approach across adapted benchmarks (LVIS MiniVal, POPE, and VOC) designed to rigorously test for false positives. The results for early-fusion models were dramatic:
- Massive AP Boost: At a strict false positive rate ($FPR_{bg} = 0.01$), adding attention sinks boosted the Average Precision (AP) of LLMDet Swin-T from 0.045 to 0.223—a nearly 5x improvement.
- Broad Applicability: The researchers tested six different early-fusion models. All showed significant improvements in background robustness without sacrificing performance on images where the target objects were actually present.
- Plug-and-Play: The method requires only a few lines of code to implement during inference.
Limitations and Future Directions
While attention sinks act as a highly effective "band-aid," they are not a complete cure. The optimal sink token initialization varies by model architecture; some prefer random vectors, while others (like LLMDet) respond better to special characters seen during LLM pre-training. Furthermore, even with sinks, early-fusion models still exhibit slightly higher false positive rates than late-interaction models at the most extreme thresholds.
Ultimately, the authors suggest that future OVD architectures should incorporate "gated attention" or similar mechanisms natively, allowing the model to explicitly discard irrelevant text information from the start rather than relying on post-hoc prompt engineering.
Summary updated