Referring Expression Generation and Comprehension via Attributes

Jingyu Liu, Liang Wang, Ming-Hsuan Yang

Introduction

Identifying a specific object within a complex visual scene—a task known as "referring expression" generation and comprehension—is a fundamental challenge at the intersection of computer vision and natural language processing. While standard deep learning models often attempt to map raw pixels directly to text, they frequently miss the discriminative details humans use to disambiguate similar objects. For instance, distinguishing "the man in the blue shirt" from other men requires a model to understand specific visual attributes.

The comprehension task involves identifying a specific object, such as a particular bus, among similar distractors.

This paper introduces a framework that explicitly incorporates learned visual attributes—such as color, object type, and pose—as a "semantic bridge." By teaching models to recognize these attributes, the authors improve both the generation of unique descriptions and the comprehension of such expressions to locate objects.

Methodology

The proposed system consists of three integrated components: attribute learning, attribute-embedded generation, and attribute-embedded comprehension.

The overall architecture of the proposed framework, showing the flow from attribute learning to the generation and comprehension models.

Attribute Learning

The process begins with a multi-label attribute classifier built on a VGG-19 backbone. The model is trained to recognize 600 common attributes (e.g., colors, actions, entity types) extracted from training labels. The authors found that a simple binary sigmoid cross-entropy loss was more effective for this multi-label task than more complex ranking losses.

Attribute-Embedded Generation

In the generation phase, predicted attribute vectors are fed into a Long Short-Term Memory (LSTM) network at every time step. This grounding ensures that the generated text reflects specific visual properties. To further improve discriminability, a "triplet hinge loss" is employed, ensuring the generated expression is significantly more probable for the target object than for any distractors in the scene.

Attribute-Embedded Comprehension

For comprehension, the model maps visual objects (enriched with attribute data) and textual expressions into a shared multimodal "common space." The system identifies the intended object by finding the one mathematically closest to the text embedding. A dynamic margin in the loss function adjusts the penalty based on whether distractors share the same category as the target, forcing the model to learn finer, more subtle distinctions.

Datasets and Evaluation

The framework was evaluated on three benchmarks derived from MSCOCO:

  • RefCOCO: Short expressions including location-based descriptors (e.g., "left").
  • RefCOCO+: Expressions focused purely on appearance, excluding location words.
  • RefCOCOg: Longer, more descriptive expressions collected in non-interactive settings.

Key Insights

  • Attributes as a Semantic Bridge: Attributes provide a structured, human-interpretable layer that helps the language model "understand" visual features like "striped" or "sitting," which might be obscured in raw CNN features.
  • Dynamic Margins for Hard Negatives: Distinguishing between similar objects (e.g., two different dogs) is harder than distinguishing between different categories. The dynamic margin approach successfully forces the model to prioritize discriminative attributes.
  • Robustness: The multi-label classification approach proved robust even when ground-truth attribute labels were incomplete in the training data.

Results

The attribute-based model consistently outperformed baselines:

  • Comprehension Accuracy: On RefCOCO TestA, the model achieved 78.85% accuracy using ground-truth bounding boxes, a significant improvement over the 63.15% baseline.
  • Generation Quality: ROUGE scores on RefCOCO improved from 0.413 to 0.494 when visual difference features were included.
  • Human Validation: In human-in-the-loop tests, participants were significantly more successful at identifying objects based on descriptions generated by the attribute-aware model compared to baseline models.

Conclusion

By explicitly modeling visual attributes, this research demonstrates a more effective way to bridge the gap between vision and language. While the model excels at concrete attributes like color, future work is needed to better capture abstract properties like complex poses or spatial relationships, which remain challenging due to their visual subtlety and lower frequency in training data.

Summary updated

BibTeX
@inproceedings{liu2017referring,
  author = {Jingyu Liu and Liang Wang and Ming-Hsuan Yang},
  title = {{Referring Expression Generation and Comprehension via Attributes}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.520},
}
Figure