Visual grounding (VG) is the task of locating objects in an image based on a natural language description. While traditional VG assumes a one-to-one mapping between a sentence and an object, real-world scenarios often involve multiple targets or no targets at all. This broader scope is known as Generalized Visual Grounding (GVG).
The Challenge of Instance Awareness
Existing GVG methods typically address either bounding box detection (GREC) or pixel-level segmentation (GRES) in isolation. Segmentation models often treat the task as semantic segmentation, merging multiple referred objects into a single global mask. This lack of "instance awareness" leads to inconsistencies where predicted boxes and masks for the same object do not align.
The InstanceVG Framework
To address these limitations, the authors propose InstanceVG, a query-based framework that unifies detection and segmentation through joint learning. The architecture ensures that each identified instance is represented by a consistent set of outputs: a bounding box, an instance mask, and a confidence score.
1. Attention-based Point-prior Decoder (APD)
The APD module moves away from generic object queries. Instead, it employs a Text Filter to identify relevant linguistic cues and a Dynamic Point Selector to find diverse "anchor points" in the image. These points act as spatial priors, ensuring the model covers multiple potential targets across the scene rather than collapsing onto a single prominent object.
2. Point-guided Instance-aware Perception Head (PIPH)
The PIPH module maintains consistency between tasks. It uses the reference points from the APD to match queries to specific ground-truth objects. By calculating the relationship between decoded instance queries and a global semantic feature map, it generates precise instance-level masks that are inherently aligned with the predicted bounding boxes.
3. Multi-task Joint Learning
InstanceVG is trained simultaneously on three tasks: global semantic segmentation, instance-level segmentation, and bounding box detection. This joint supervision allows the model to leverage complementary signals—for example, global semantic features help refine instance boundaries, while instance-level queries improve detection accuracy.
Performance and Evaluation
InstanceVG was evaluated on ten datasets, including the challenging gRefCOCO benchmark for GVG.
- State-of-the-Art Results: On
gRefCOCO, InstanceVG achieved an 11.4% improvement in F1-score for detection (GREC) and a 4.9% increase in gIoU for segmentation (GRES) compared to previous leading methods. - Efficiency: The specialized APD and PIPH modules are highly efficient, adding only approximately 1.6% more parameters to the base model.
- Generalization: The model demonstrates strong zero-shot capabilities, outperforming specialized models on classic datasets like
RefCOCO/+/gwithout specific fine-tuning.
Limitations and Future Directions
Despite its success, InstanceVG faces a few challenges. Discriminating whether a target exists at all (non-target scenarios) remains difficult. Additionally, the model struggles with very small objects due to the resolution constraints of the vision backbone's patch embeddings. Future work will focus on integrating multi-level semantic features to refine coarse segmentation boundaries and improve small-object detection.
Summary updated