Introduction
Referring Expression Comprehension (REC) is a fundamental task in computer vision and natural language processing that involves localizing a specific object in an image based on a natural language description. Traditionally, REC models operate under a "single-target" assumption, presupposing that exactly one object in the scene matches the query. However, real-world visual grounding is rarely so constrained.
To bridge this gap, researchers have introduced Generalized Referring Expression Comprehension (GREC). Unlike standard REC, GREC requires models to identify zero, one, or multiple objects depending on the textual prompt. This paper introduces the Hierarchical Alignment-enhanced Adaptive Grounding Network (HieA2G), a framework designed to tackle the inherent complexities of GREC through multi-level semantic alignment and dynamic target counting.
The Challenge of Generalized REC
The transition from standard REC to GREC introduces two primary hurdles:
- Target Cardinality Variance: A query may refer to "all players" (multi-target), "the goalkeeper" (single-target), or "the person in the green hat" when no such person exists (no-target). Traditional models often struggle with these edge cases, either forcing a single prediction or failing to aggregate all relevant instances.
- Semantic Granularity: Aligning text and images at a global level is insufficient for complex descriptions. Distinguishing between "the player in the blue top" and "the player in the blue top and black pants" requires fine-grained understanding of attributes and relationships.
Proposed Methodology: HieA2G
The HieA2G framework addresses these challenges through two core innovations: Hierarchical Multi-modal Semantic Alignment (HMSA) and an Adaptive Grounding Counter (AGC).
Hierarchical Multi-modal Semantic Alignment (HMSA)
To capture the nuances of complex referring expressions, HMSA performs cross-modal matching across three distinct granularities:
- Word-Object Alignment: This level focuses on fine-grained associations. By employing a "masked text recovery" task, the model is forced to reconstruct masked words in the description using features from matched objects, ensuring that specific nouns and adjectives are correctly mapped to visual regions.
- Phrase-Object Alignment: This stage aligns noun phrases (e.g., "the blue car") with object queries using a contrastive loss. This helps the model group attributes together, improving its ability to distinguish between objects with overlapping characteristics.
- Text-Image Alignment: Finally, a global alignment step ensures that the overall semantics of the sentence are consistent with the entire image context, providing a high-level sanity check for the grounding process.
Adaptive Grounding Counter (AGC)
Handling a variable number of targets requires moving beyond fixed confidence thresholds. The AGC treats object counting as a dynamic classification task ($0, 1, 2, 3,$ or $3+$ targets).
The model utilizes a Contrastive Counting Loss supported by a memory bank. This mechanism pulls together multi-modal features representing the same number of objects while pushing away those with different counts. This approach allows the model to learn "quantity" as a distinct semantic feature. Based on the predicted count, the model dynamically selects the top-$N$ highest-scoring object proposals or applies a threshold-based strategy for larger groups.
Experimental Results
The HieA2G model was evaluated on the gRefCOCO dataset, the benchmark for GREC, as well as standard REC datasets (RefCOCO, RefCOCO+, RefCOCOg) and Flickr30K Entities for phrase grounding.
Performance Gains
HieA2G established new state-of-the-art (SOTA) benchmarks:
- GREC Accuracy: On gRefCOCO, the model achieved a 14.2% average improvement in Precision (Pr@IoU≥0.5) compared to previous leading models like Ferret.
- Counting Precision: The "N-acc" metric, which measures the accuracy of predicting the correct number of targets, saw a significant jump from approximately 50% in prior SOTA models to over 60% on the gRefCOCO validation set.
- Versatility: Despite being designed for GREC, HieA2G's hierarchical architecture allowed it to outperform specialized models on classic single-target tasks, demonstrating superior robustness and generalization.
Conclusion
The Hierarchical Alignment-enhanced Adaptive Grounding Network (HieA2G) represents a significant step forward in generalized visual grounding. By integrating multi-level semantic alignment with a dedicated, contrastive counting mechanism, the model effectively navigates the complexities of multi-target and no-target scenarios. While challenges remain regarding visual ambiguity in cluttered scenes and performance under severe occlusion, HieA2G provides a robust foundation for future research in adaptive, multi-modal understanding.
Summary updated