Abstract
Referring Expression (REx) tasks, including Segmentation (RES), Comprehension (REC), and Generation (REG), have traditionally been restricted to single-target scenarios where one expression refers to exactly one object. This paper introduces GREx, a generalized framework that extends REx to accommodate multi-target and no-target expressions. We present gRefCOCO, the first large-scale dataset supporting these generalized tasks, and ReLA, a relationship-modeling baseline that achieves state-of-the-art performance by adaptively modeling region-language dependencies.
Introduction: Moving Beyond Single-Target Constraints
Traditional computer vision models for referring expressions operate under a "one-to-one" assumption: every sentence must map to a single object. In real-world scenarios, human language is rarely so constrained. We often refer to groups ("the children playing"), exclusions ("everyone except the person in red"), or non-existent items ("the blue car" in a lot of only white cars).
Existing REx models fail in these cases, either hallucinating a single target when none exists or failing to capture the full scope of a collective reference. To bridge this gap, we propose Generalized Referring Expression Segmentation (GRES), Comprehension (GREC), and Generation (GREG).
The gRefCOCO Dataset
To facilitate research in generalized REx, we developed gRefCOCO. Built upon the MS COCO image set, it contains 259,859 expressions across nearly 20,000 images. Unlike previous datasets that relied on rigid templates, gRefCOCO uses free-form natural language to describe complex relationships and group attributes. Crucially, it is backward-compatible with the original RefCOCO, allowing for direct comparison between classic and generalized models.
The ReLA Baseline: Relationship-Aware Modeling
Handling multi-target and no-target expressions requires sophisticated relationship modeling. Our proposed baseline, ReLA (RElationship modeling baseline), introduces two key components:
- Region-Image Cross Attention (RIA): Instead of processing fixed image patches, RIA uses learnable queries to adaptively identify "regions" of interest, which can represent sub-parts of objects or entire groups.
- Region-Language Cross Attention (RLA): This module explicitly aligns these dynamic regions with specific linguistic cues, enabling the model to understand relational phrases like "the person next to the table."
ReLA also employs a multi-task joint training strategy, performing segmentation and detection simultaneously. A specialized counting head predicts the number of target instances, allowing the model to correctly identify "no-target" cases by predicting zero instances.
Generalized Generation (GREG)
A significant advantage of the GREx framework is its impact on Referring Expression Generation (REG). Classic REG models often produce verbose and unnatural descriptions when forced to distinguish one object from a group of similar ones. By allowing multi-target references, GREG can generate concise, natural expressions that mirror human communication.
Results and Discussion
Experimental results demonstrate that ReLA sets a new benchmark for GRES and GREC. On the gRefCOCO validation set, ReLA achieved a generalized Intersection over Union (gIoU) of 63.98. Notably, ReLA also outperformed specialized models on the classic RefCOCO dataset, suggesting that training on complex, generalized data improves a model's fundamental understanding of object-language grounding.
However, "no-target" identification remains a significant challenge. Models still struggle with deceptive expressions that closely resemble existing objects, indicating a need for deeper reasoning capabilities or the integration of large language model (LLM) commonsense knowledge.
Conclusion
GREx and the gRefCOCO dataset represent a paradigm shift in referring expression research. By removing the single-target constraint, we move closer to vision systems that can truly interact with humans in complex, unconstrained environments. ReLA provides a robust starting point for future work in relationship-aware grounding and multi-task scene understanding.
Summary updated