Modeling Context in Referring Expressions
Licheng YuPatrick PoirsonShan YangAlexander C. BergTamara L. Berg
Demonstrates that integrating comparative visual context and joint language generation across same-category objects substantially improves natural language referring expression comprehension and generation on RefCOCO benchmarks.
Effective human-machine communication requires computational systems to generate and interpret natural language descriptions that unambiguously point out specific objects in visual scenes. This capability is critical for emerging technologies such as interactive robotics and assistive human-computer interfaces. However, existing automated approaches often produce vague or repetitive language because they rely on broad, full-image context rather than comparing the specific visual differences among similar objects in a scene.
The article sets out to demonstrate that explicitly modeling visual comparisons between same-category objects and jointly coordinating language generation across all relevant objects significantly improves both referring expression comprehension and generation.
To evaluate this, the authors developed a deep learning framework combining visual features from deep neural networks with sequential language models. The framework explicitly extracts differences in appearance, location, and relative size between a target item and nearby objects of the same category, while also tying together text generation for all depicted objects of that type. The authors benchmarked their approach across three large-scale datasets comprising over 360,000 referring expressions (RefCOCO, RefCOCO+, and RefCOCOg) using standard automated language metrics, comprehension accuracy benchmarks, human evaluation studies, and an automated object detector.
The findings establish that targeted visual comparisons and joint language generation dramatically outperform generic context baselines. First, incorporating explicit visual difference features boosted referring expression comprehension accuracy across all test sets, improving performance by roughly 4 to 7 percentage points over baseline models. Second, in human evaluations of generated expressions, tying language generation together across same-category objects produced the highest accuracy, outperforming baselines by up to 11 percentage points. Third, joint generation substantially reduced ambiguity, cutting duplicate expression rates—where a model mistakenly produces the exact same phrase for distinct objects in one scene—from 46.27% down to 13.33% on challenging appearance-only benchmarks. Finally, the analysis showed that generic, whole-image context actually degraded comprehension performance, proving that targeted comparisons to same-category objects are the key driver of accuracy.
These results demonstrate that automated agents can generate more natural, precise, and cooperative language by mimicking human conversational strategies. Practically, reducing descriptive ambiguity lowers the risk of task errors and operational failures when autonomous systems or robots interact with users in complex physical settings. Moving forward, teams developing visual-language systems should adopt targeted comparative modeling and joint expression generation over standard global-image context models. Future initiatives should focus on improving automated object detection backends and validating performance in dynamic, real-time interactive dialogues.
The study's primary limitation is that fully automated performance remains heavily dependent on the accuracy of the underlying object detector, which drops when identifying non-human everyday objects in unconstrained scenes. Nonetheless, confidence in the core methodological improvements is high, given consistent performance gains across multiple large datasets and robust validation through human evaluations.
- Paper: ReferItGame: Referring to Objects in Photographs of Natural Scenes, Sahar Kazemzadeh et al. (2014). This paper establishes the foundational crowdsourcing framework and dataset (ReferItGame) for referring expression generation and comprehension in natural scenes.
- Paper: Microsoft COCO: Common Objects in Context, Tsung-Yi Lin et al. (2014). This work introduces the Microsoft COCO benchmark and its rich visual context annotations that serve as the direct image foundation for the RefCOCO, RefCOCO+, and RefCOCOg datasets analyzed in the source.
- Paper: Deep visual-semantic alignments for generating image descriptions, Andrej Karpathy et al. (2015). This work pioneers deep multimodal alignment between recurrent neural language models and localized convolutional visual regions.
- Paper: Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Models, Bryan A. Plummer et al. (2015). This paper establishes the core methodology for grounding distinct descriptive phrases directly to localized bounding boxes in natural imagery.
- Paper: Describing Objects by their Attributes, Ali Farhadi et al. (2009). This paper provides foundational techniques for predicting visual attributes to distinguish objects, which underpins discriminative referring expression generation.
- Paper: Show, Attend and Tell: Neural Image Caption Generation with Visual Attention, Kelvin Xu et al. (2015). This paper introduces dynamic visual attention mechanisms to neural sequence decoders for fine-grained image description.
- Paper: Rich feature hierarchies for accurate object detection and semantic segmentation, Ross Girshick et al. (2014). This work provides the foundational region-proposal and deep convolutional feature extraction pipeline for extracting object candidates from images.
- Paper: VL-BERT: Pre-training of Generic Visual-Linguistic Representations, Weijie Su et al. (2019). This paper advances referring expression comprehension on RefCOCO+ by replacing task-specific decoders with a pre-trained bidirectional transformer architecture.
- Paper: ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks, Jiasen Lu et al. (2019). This work scales referring expression grounding through task-agnostic, two-stream vision-and-language pre-training across millions of image-text pairs.
- Paper: Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection, Shilong Liu et al. (2023). This work extends referring expression grounding into open-set object detection using transformer decoders cross-conditioned on full natural language queries.
- Paper: Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks, Xiujun Li et al. (2020). This work incorporates detected object tags as anchor points to advance cross-modal grounding and vision-language generation.
- Paper: Bottom-Up and Top-Down Attention for Image Captioning and Visual Question Answering, Peter Anderson et al. (2018). This paper refines visual context representation by introducing bottom-up object proposals paired with top-down attention for vision-language generation.
- Paper: VisualBERT: A Simple and Performant Baseline for Vision and Language, Liunian Harold Li et al. (2019). This work generalizes region-to-text alignment into a unified self-attention framework evaluated across phrase grounding and visual reasoning tasks.
- Paper: A simple neural network module for relational reasoning, Adam Santoro et al. (2017). This paper introduces explicit pairwise neural modules to model visual relational context between all objects in a scene.
- Paper: SAM 3: Segment Anything with Concepts, Nicolas Carion et al. (2025). This work scales concept-guided localization by segmenting and tracking all instances described by natural language phrases across images and video.
