A Sentence Is Worth a Thousand Pixels

Sanja Fidler, Abhishek Sharma, Raquel UrtasunCVPR 2013

Abstract

We are interested in holistic scene understanding where images are accompanied with text in the form of complex sentential descriptions. We propose a holistic conditional random field model for semantic parsing which reasons jointly about which objects are present in the scene, their spatial extent as well as semantic segmentation, and employs text as well as image information as input. We automatically parse the sentences and extract objects and their relationships, and incorporate them into the model, both via potentials as well as by re-ranking candidate detections. We demonstrate the effectiveness of our approach in the challenging UIUC sentences dataset and show segmentation improvements of 12.5% over the visual only model and detection improvements of 5% AP over deformable part-based models.

Introduction

In the early 2010s, computer vision systems primarily operated on visual data alone. While significant progress was made in isolated tasks like object detection or scene classification, "holistic" scene understanding—the ability to simultaneously identify a scene, locate its constituent objects, and delineate their boundaries—remained a formidable challenge. Visual data is inherently ambiguous; for instance, a low-resolution brown patch in an image could represent a dog, a piece of furniture, or a natural element like a log.

This research addresses these ambiguities by leveraging a source of information that often accompanies images in the real world: natural language descriptions. While contemporary research often focused on generating captions from images, this paper explores the inverse: how can complex sentential descriptions serve as powerful priors to improve visual recognition?

Methodology: The Holistic CRF Model

The core contribution of this work is a Holistic Conditional Random Field (CRF) model. This statistical framework allows for joint reasoning across multiple levels of visual understanding, including scene classification, object detection, and pixel-level semantic segmentation.

Overview of the holistic CRF model integrating text and image data.

The pipeline operates in two primary stages:

1. Automatic Text Extraction

Using the Stanford NLP parser, the system processes descriptive sentences to extract structured information. Unlike simple keyword matching, this approach identifies:

  • Presence: Identifying which object classes (e.g., "man", "boat") are mentioned.
  • Cardinality: Determining the number of instances for each class (e.g., "two dogs").
  • Spatial Relationships: Parsing prepositions (e.g., "on", "near", "beside") to understand the relative positioning of objects.

2. Integrating Textual Potentials

These extracted cues are integrated into the CRF as mathematical constraints, or "potentials":

  • Text-Rescored Detections: The model uses textual mentions to re-rank candidate object detections generated by standard Deformable Part Models (DPM). If a "boat" is mentioned, the confidence scores for boat-like bounding boxes are boosted.
  • Cardinality Potentials: A high-order potential is introduced to penalize the model if the number of detected objects contradicts the count specified in the text.
  • Spatial Consistency: Prepositional data helps the model favor spatial layouts that align with the description, such as ensuring a "person" detection is physically located "on" a "horse" detection.

Experimental Evaluation

The model was evaluated on the UIUC sentences dataset, which contains 1,000 images from the PASCAL VOC 2008 benchmark. Each image is paired with five human-written sentences, providing a rich ground truth for testing the integration of visual and textual data.

Key Results

The inclusion of textual information led to substantial performance gains across all evaluated metrics. The holistic model effectively used text to resolve visual ambiguities that stumped vision-only baselines.

Quantitative comparison of semantic segmentation performance across various object classes.

As shown in the results table, the proposed approach ("ours") significantly outperforms baseline methods like Textonboost and previous holistic models. Key improvements include:

  • Semantic Segmentation: A 12.5% improvement in accuracy (measured by Intersection over Union) compared to visual-only holistic models.
  • Object Detection: An improvement of 5% Average Precision (AP) over standard DPMs.
  • Scene Classification: Text proved to be an exceptionally strong signal for scene type, with a text-only classifier reaching 76% accuracy, more than doubling the 40% accuracy of the best visual-only classifier of the era.

Discussion and Insights

The research highlights that human descriptions, while often incomplete, are highly salient. Humans tend to describe the most important aspects of a scene, making text an excellent "anchor" for vision systems. Cardinality, in particular, emerged as a vital cue, preventing the model from missing small objects or incorrectly merging adjacent ones.

However, the approach faces limitations. It is sensitive to "noise" from the NLP parser; a misidentified relationship can mislead the vision model. Furthermore, humans exhibit bias, often ignoring background "stuff" like grass or sky, meaning the model must still rely on robust visual features for non-salient regions. Future work could expand this framework to utilize more general, "loose" text (like news articles) and incorporate more granular linguistic features like adjectives.

Conclusion

This work demonstrates that a sentence is indeed worth a thousand pixels. By treating text as a first-class input in a holistic CRF, the authors showed that natural language can provide the necessary context to overcome the inherent ambiguities of visual data, paving the way for more integrated AI systems.

Summary updated

Abstract

We are interested in holistic scene understanding where images are accompanied with text in the form of complex sentential descriptions. We propose a holistic conditional random field model for semantic parsing which reasons jointly about which objects are present in the scene, their spatial extent as well as semantic segmentation, and employs text as well as image information as input. We automatically parse the sentences and extract objects and their relationships, and incorporate them into the model, both via potentials as well as by re-ranking candidate detections. We demonstrate the effectiveness of our approach in the challenging UIUC sentences dataset and show segmentation improvements of 12.5% over the visual only model and detection improvements of 5% AP over deformable part-based models.
BibTeX
@inproceedings{fidler2013sentence,
  author = {Sanja Fidler and Abhishek Sharma and Raquel Urtasun},
  title = {{A Sentence Is Worth a Thousand Pixels}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  url = {https://openreview.net/forum?id=rJZOlR-uWB},
}

Loading related content...

Figure