Understanding Synonymous Referring Expressions via Contrastive Features

Yi-Wen Chen, Yi-Hsuan Tsai, Ming-Hsuan Yang

Abstract

Referring expression comprehension aims to localize objects identified by natural language descriptions. This is a challenging task as it requires understanding of both visual and language domains. One nature is that each object can be described by synonymous sentences with paraphrases, and such varieties in languages have critical impact on learning a comprehension model. While prior work usually treats each sentence and attends it to an object separately, we focus on learning a referring expression comprehension model that considers the property in synonymous sentences. To this end, we develop an end-to-end trainable framework to learn contrastive features on the image and object instance levels, where features extracted from synonymous sentences to describe the same object should be closer to each other after mapping to the visual domain. We conduct extensive experiments to evaluate the proposed algorithm on several benchmark datasets, and demonstrate that our method performs favorably against the state-of-the-art approaches. Furthermore, since the varieties in expressions become larger across datasets when they describe objects in different ways, we present the cross-dataset and transfer learning settings to validate the ability of our learned transferable features.

Introduction

Referring Expression Comprehension (REC) is the task of "grounding" natural language—essentially, drawing a bounding box around an object in an image based on a description like "the person in the red hat standing near the tree."

The core challenge is the inherent flexibility of language. One person might describe an object by its color, another by its location, and a third by its interaction with others. Most existing models treat every unique sentence as an independent training instance, ignoring the underlying "synonymy" between different descriptions of the same object. This leads to models that are brittle and struggle when they encounter new types of descriptions in different datasets (a problem known as the "domain gap").

Conceptual overview of learning transferable features from synonymous sentences.

This paper introduces a novel framework for REC that leverages the fact that a single object can be described by many different, synonymous phrases. By applying contrastive learning at both the image and object-instance levels, the model learns to map diverse linguistic descriptions of the same object to nearby points in a shared visual-language embedding space, significantly improving both localization accuracy and the ability to generalize to entirely new datasets.

Proposed Methods

The authors propose an end-to-end, one-stage framework that integrates Contrastive Feature Learning to bridge the gap between language and vision. Their approach operates on two distinct levels:

  1. Image-Level Feature Learning: The model uses an attention mechanism ($A_{img}$) to generate a response map showing where the language description "points" in the global image. They apply a triplet loss here, forcing the response maps of synonymous sentences to be similar while pushing away the response maps of sentences describing different objects.
  2. Instance-Level Feature Learning: To capture local details, the model uses a Graph Convolutional Network (GCN) to model relationships between object proposals.
  3. Contrastive Loss with Negative Mining: Instead of simple triplets, the authors use a more robust contrastive loss (similar to SimCLR) at the instance level. Crucially, they employ negative mining strategies such as using descriptions of the same object category from different images as visual negatives, and finding sentences that are linguistically similar but refer to different objects as linguistic negatives.
The proposed end-to-end framework for image-level and instance-level contrastive feature learning.

By combining these, the model learns "transferable features" that represent the semantic meaning of the reference rather than just memorizing specific word-image pairs.

Datasets and Evaluation

The study utilizes five major benchmarks:

  • RefCOCO, RefCOCO+, and RefCOCOg: The standard datasets for REC, derived from MS-COCO. The authors introduce a "RefCOCOg*" split to facilitate joint training across these sets without data leakage.
  • ReferItGame: A dataset used primarily to test the model's ability to transfer its learned knowledge to a different domain.
  • Ref-Reasoning: A large-scale dataset with automatically generated expressions based on scene graphs, used to evaluate the model's performance on complex, multi-object reasoning.

Key Insights and Results

The most powerful idea here is treating the variety of human language as a feature, not a bug. By forcing synonymous expressions to cluster together in the embedding space, the model learns a more "universal" understanding of what an object reference looks like. Unlike traditional two-stage models that first detect all objects and then rank them, this one-stage approach is faster and allows the language features to influence the visual features more directly during training.

The "full model" consistently outperforms previous methods across RefCOCO, RefCOCO+, and RefCOCOg. For example, on RefCOCOg (val), it achieved 69.92% accuracy compared to MAttNet's 66.58%. Furthermore, the model is highly efficient, processing images at 0.325 seconds per frame, which is more than twice as fast as popular two-stage models like MAttNet (0.671s).

The authors also demonstrate that contrastive learning is key to "transfer learning." A model trained with these features performs significantly better on a completely unseen dataset (like Ref-Reasoning) than a standard model, proving it has learned generalizable concepts of space, attributes, and relationships.

Conclusion

While the model excels at handling synonymous descriptions, some hurdles remain. The model still occasionally struggles when multiple objects in a scene share very similar attributes (e.g., two people wearing very similar white shirts). Additionally, if a referring expression is inherently vague, the model may fail to identify the correct target. Future directions include exploring even more complex negative mining strategies or integrating larger-scale pre-trained vision-language models like CLIP to further enhance robustness.

Summary updated

BibTeX
@article{chen2022understanding,
  author = {Yi-Wen Chen and Yi-Hsuan Tsai and Ming-Hsuan Yang},
  title = {{Understanding Synonymous Referring Expressions via Contrastive Features}},
  journal = {Int. J. Comput. Vis.},
  year = {2022},
  doi = {10.1007/s11263-022-01647-z},
}
Figure