Abstract
Visual grounding (VG) aims to localize target objects in an image based on natural language queries. Despite recent advancements, accurately identifying targets amidst "multiple-instance distractions"—where several objects of the same category exist—remains a significant challenge. Existing models often struggle with fine-grained semantics and spatial relationships, leading to performance degradation in complex scenes. This paper introduces the Relation and Semantic-sensitive Visual Grounding (ResVG) model. ResVG addresses these limitations through two primary innovations: (1) Semantic Prior Injection, which utilizes text-to-image diffusion models to bridge the modality gap by providing visual prototypes of target attributes, and (2) Relation-sensitive Data Augmentation, which synthesizes training samples containing multiple identical objects to improve spatial reasoning. Extensive experiments across five benchmarks demonstrate that ResVG significantly improves localization accuracy, particularly in scenarios with high distraction density.
Introduction
Visual grounding is a fundamental task in computer vision that requires a model to map a linguistic description to a specific bounding box in an image. While current models perform well on simple queries (e.g., "a dog"), they frequently fail when faced with ambiguity (e.g., "the dog on the left wearing a red collar" in a group of several dogs).
The authors identify two core hurdles in the current landscape:
- Insufficient Semantic Understanding: The "modality gap" between text and pixels makes it difficult for models to grasp fine-grained attributes like specific textures or subtle color variations.
- The Spatial "Long-Tail" Problem: Most standard datasets are relatively "easy," containing few instances of the same category per image. Consequently, models lack sufficient training data to learn complex spatial relationships (e.g., left, right, middle), often relying on category identification rather than true spatial reasoning.
Methodology
ResVG enhances existing Transformer-based grounding architectures (such as TransVG and VLTVG) through two modular components designed to improve semantic and spatial awareness.
1. Semantic Prior Injection (SPI)
To mitigate the difficulty of comparing text directly to pixels, ResVG leverages an off-the-shelf text-to-image model (Stable Diffusion) to generate a "prototypical" image of the target object based on the query. This visual prior acts as a reference for the model. By comparing the input image to a generated visual representation (vision-to-vision), the model can more easily identify specific attributes like color and shape mentioned in the query. This approach operates on the principle that the "homogeneous gap" within the visual domain is smaller and easier to bridge than the heterogeneous gap between vision and language.
2. Relation-Sensitive Data Augmentation (RSDA)
To address the lack of training samples involving multiple similar objects, the researchers developed a synthetic data pipeline:
- Generation: Prompts such as "three oranges" are used to generate images containing multiple identical objects.
- Labeling: An automated object detector identifies bounding boxes for these objects.
- Pseudo-Query Generation: The system generates queries based on the relative coordinates of the detected boxes, such as "the middle orange" or "the orange on the right."
- Training: This synthetic "hard" data is mixed with real-world datasets, forcing the model to learn spatial positioning and relational logic to achieve high accuracy.
Experimental Results
ResVG was evaluated on five major visual grounding benchmarks: RefCOCO, RefCOCO+, RefCOCOg, ReferItGame, and Flickr30K Entities.
Performance Gains
The integration of ResVG led to consistent improvements over baseline models:
- RefCOCO+: Adding ResVG to the TransVG baseline improved top-1 accuracy from 63.50% to 66.13%.
- State-of-the-Art (SOTA): When combined with the VLTVG model, ResVG set new records, achieving 88.76% accuracy on the RefCOCO testA set.
- Generalization: In cross-dataset evaluations (training on RefCOCO and testing on the more challenging RefCOCO+), ResVG outperformed the baseline by over 6%, suggesting the model learns robust concepts rather than just memorizing dataset-specific biases.
Discussion and Limitations
While ResVG provides a significant leap in performance, the authors note several areas for future development:
- Attribute Dependency: If a query lacks distinctive attributes (e.g., "the orange" when three identical oranges are present), the Semantic Prior Injection provides limited benefit, as the generated prior will resemble all potential targets.
- Generative Precision: Current diffusion models do not always produce the exact number of objects requested. While the RSDA pipeline accounts for this by detecting what was actually generated, more precise control over generative models could further refine the training data.
- Computational Overhead: Generating a visual prior via diffusion for every query during inference is computationally expensive. Future work may focus on distilling this generative knowledge into smaller, more efficient models to reduce latency.
Conclusion
ResVG demonstrates that leveraging generative AI as a source of semantic priors and synthetic training data can effectively solve the "multiple-instance distraction" problem in visual grounding. By bridging the modality gap and addressing the spatial data scarcity, ResVG sets a new standard for robust and relation-aware object localization.
Summary updated