TL;DR
Vision-Language Models (VLMs) excel at many tasks but struggle with precise object detection and localization. This paper introduces a "detection-guided attention steering" system that uses insights from traditional CNN object detectors to guide VLMs' attention, significantly improving their ability to pinpoint objects in images.
What Problem Does This Paper Address?
Modern Vision-Language Models (VLMs), often built on Transformer architectures like Vision Transformers (ViTs), have shown impressive capabilities in understanding and generating text related to images. However, they often fall short in fundamental tasks like accurately detecting and localizing objects within an image. This is partly because VLMs tend to rely heavily on language priors learned during training rather than concrete visual evidence, leading to "hallucinations" (e.g., predicting an object's color based on text rather than the image). Furthermore, unlike Convolutional Neural Networks (CNNs) which have built-in inductive biases like spatial locality, VLMs process images as flattened sequences of tokens, losing some of this inherent spatial understanding. This makes it difficult for them to handle complex scenes or subtle objects.
Methods
The core of this paper is a "detection-guided dynamic attention steering" mechanism. Here's how it works:
- Leveraging CNNs for Localization: The system uses an auxiliary, pre-trained open-vocabulary CNN object detector (like YOLOE) to identify important objects in the image.
- Extracting Noun Phrases: Key noun phrases are extracted from the text query (e.g., "laptop" from "Is there a laptop in the image?"). These noun phrases are then used as detection classes for the CNN detector.
- Identifying Target Image Tokens: The bounding boxes generated by the CNN detector are used to identify which image tokens (patches of the image processed by the VLM) overlap with these detected objects. These overlapping tokens become the "target" tokens for attention steering.
- Attention Steering: The system then dynamically scales the attention scores within the VLM. Non-target image tokens have their attention scores uniformly scaled down by a factor
s(where0 < s < 1). This effectively scales up the attention scores of the target tokens by a factor of1/s. - Dynamic Confidence-Awareness: A crucial innovation is making the steering intensity dynamic. The steering factor is inversely proportional to the confidence scores of the CNN-generated bounding boxes. This means if the CNN is less confident about a detection, the steering intensity is reduced, preventing the VLM from being overly influenced by potentially inaccurate or hallucinated bounding boxes. An offset
Δsis calculated using the formulaΔs = 0.9e^(-40c)(wherecis the confidence score) to adjust the base steering factor. - Retaining VLM Context: The system also incorporates signals from the VLM's own attention distribution. If the VLM is already paying significant attention to a region, that region is also included as a target to prevent losing important context. This is done by using Otsu's method to determine an optimal attention threshold per layer.
Datasets
The paper evaluates its approach on the following datasets:
- POPE (Perception-Oriented Visual Question Answering): Used for evaluating object hallucination. It has three splits: random, popular, and adversarial.
- MMVP (Multimodal Multi-View Perception): Used for evaluating accuracy on pairs of related questions.
- RefCOCO-M: Used for analyzing object localization recall rates.
No new datasets were introduced.
Key Insights and Ideas
- CNNs' Inductive Biases are Key: The paper strongly argues that the inherent spatial inductive biases of CNNs (like translation invariance and locality) are crucial for robust object detection and localization, something VLMs often lack.
- Attention Steering as an Inference-Time Fix: Instead of costly fine-tuning, the paper demonstrates that modifying attention during inference is an effective way to inject external knowledge and improve VLM performance.
- Confidence is Crucial for Steering: Simply using CNN detections isn't enough. Dynamically scaling the steering intensity based on the CNN's confidence is vital to prevent the VLM from being misled by inaccurate detections. This is a key mechanism for mitigating hallucinations.
- Combining Strengths is Powerful: The success of the approach highlights the benefit of combining the global semantic understanding of VLMs with the precise localization capabilities of CNNs.
Key Results
- Substantial Accuracy Gains: The proposed detection-guided attention steering system achieved significant improvements on object localization-oriented benchmarks.
- On the POPE benchmark, improvements ranged up to 2.81% accuracy and 3.26% F1 score for InternVL3-8B on the random sampling split.
- On the MMVP benchmark, Qwen3-VL-8B achieved a 4% increase in accuracy.
- Reduced False Negatives: The system significantly reduced false negatives (failure to detect an existing object), which accounted for the bulk of accuracy improvements on POPE.
- Robustness to Steering Factor: The system showed robustness to variations in the base steering factor, with minimal accuracy degradation observed across different settings.
- Effectiveness Across VLMs: The method demonstrated consistent performance improvements across multiple state-of-the-art VLMs, including Qwen3-VL-8B, InternVL3-8B, and LLaVA-NeXT-Mistral-7B.
Limitations and Future Work
- Reliance on Auxiliary Detector: The performance is inherently tied to the capabilities of the auxiliary CNN detector. If the CNN fails to detect an object, the VLM won't be guided to it.
- Potential for Hallucinations (Mitigated): While the confidence-aware steering significantly reduces hallucinations, the paper notes that a marginal increase in false positives (hallucinations of non-existent objects) is still observed, though it's overshadowed by recall gains.
- Future Work: The authors suggest exploring tiered steering intensities and prioritization, allowing the system to choose between steering more towards objects or attention-backed context. They also mention the potential for future work to introduce more sophisticated ways to integrate CNN signals.
Summary updated