Segment-Phrase Table for Semantic Segmentation, Visual Entailment and Paraphrasing

Hamid Izadinia, Fereshteh Sadeghi, Santosh Kumar Divvala, Hannaneh Hajishirzi, Yejin Choi, Ali Farhadi

Abstract

We introduce Segment-Phrase Table (SPT), a large collection of bijective associations between textual phrases and their corresponding segmentations. Leveraging recent progress in object recognition and natural language semantics, we show how we can successfully build a high-quality segment-phrase table using minimal human supervision. More importantly, we demonstrate the unique value unleashed by this rich bimodal resource, for both vision as well as natural language understanding. First, we show that fine-grained textual labels facilitate contextual reasoning that helps in satisfying semantic constraints across image segments. This feature enables us to achieve state-of-the-art segmentation results on benchmark datasets. Next, we show that the association of high-quality segmentations to textual phrases aids in richer semantic understanding and reasoning of these textual phrases. Leveraging this feature, we motivate the problem of visual entailment and visual paraphrasing, and demonstrate its utility on a large dataset.

Introduction

Bridging the gap between computer vision and natural language processing (NLP) typically occurs at two extremes: category-level analysis (e.g., "dog") or full sentence-level descriptions (e.g., "a brown dog runs through the grass"). While category-level labels are often too coarse to capture visual nuances, sentence-level analysis is computationally complex and requires massive amounts of labeled data.

This research targets the "middle ground": phrase-level associations. The primary challenge is that phrase-level data is expensive to label manually; we lack millions of images where every "grazing cow" or "sitting dog" is perfectly outlined. We address this by proposing a method to automatically construct a high-quality Segment-Phrase Table (SPT) using noisy web data with minimal human supervision.

Methodology

Building the SPT

The construction of the SPT involves a webly-supervised learning pipeline. Images are retrieved from the web for specific phrases, and Deformable Part Models (DPM) are employed to identify initial bounding boxes. To transition from coarse boxes to precise pixel-level segments (masks), we use an iterative Expectation-Maximization (EM) approach. By modeling the image as a graph and applying Graph-cuts, the system refines foreground/background labels based on consistent visual features shared across images of the same phrase.

Bi-modal Applications

The SPT acts as a bridge, allowing improvements in both vision and language tasks:

  1. Improving Vision with Language: By enforcing Linguistic Constraints derived from word2vec embeddings, the system performs contextual reasoning. For instance, if the model detects both "horse jumping" and "horse rearing," these labels reinforce each other due to their linguistic proximity. Conversely, contextually inconsistent labels like "horse lying" are suppressed.
  2. Improving Language with Vision: The SPT enables Visual Entailment and Visual Paraphrasing. We define scores to determine if one phrase entails another (e.g., "horse grazing" $\implies$ "horse standing") by comparing the visual similarity of their segments. Global reasoning via Integer Linear Programming (ILP) is then used to enforce transitivity across the phrase graph.
Overview of the Segment-Phrase Table (SPT) framework, illustrating the bi-modal mapping and its application to semantic segmentation and visual reasoning tasks.

Experimental Setup and Datasets

The proposed framework was evaluated on several benchmarks:

  • Bing Dataset: Used for evaluating joint object discovery and segmentation.
  • ImageNet: Used to test the "auto-annotation" capabilities of the SPT.
  • Visual Relation Dataset: A new dataset collected by the authors containing 5,710 semantic relations, including 270 true entailments, 25 paraphrases, and 354 relative similarity statements.

Key Results

Segmentation Performance

On the Bing dataset, the SPT approach achieved a 70.14% Jaccard score for the "Car" category, outperforming previous unsupervised methods. The addition of linguistic constraints (SPT+L) provided a significant boost, improving the overall Jaccard score from 62.0% to 65.9% across the full dataset.

Qualitative segmentation results comparing the SPT-based approach ("Our") against the SegProg baseline across different object categories.

Visual Reasoning

In visual entailment and paraphrasing tasks, the SPT-based method significantly outperformed both text-only and detection-based (bounding box) baselines. This demonstrates that pixel-level segments provide a much finer signal for reasoning than simple boxes; while boxes for "horse grazing" and "horse jumping" may look similar, their segment shapes are distinct and informative.

Discussion and Future Work

The SPT captures "visual common sense" that is often missing from text-only models due to reporting bias (e.g., the fact that a grazing horse is also standing). While the method is robust to web noise, it remains dependent on the quality of search results. Future work could involve replacing the DPM and SIFT-based components with modern deep learning architectures like CNNs or Transformers to further scale the SPT and improve its accuracy in handling polysemous or rare phrases.

Summary updated

BibTeX
@inproceedings{izadinia2015segment,
  author = {Hamid Izadinia and Fereshteh Sadeghi and Santosh Kumar Divvala and Hannaneh Hajishirzi and Yejin Choi and Ali Farhadi},
  title = {{Segment-Phrase Table for Semantic Segmentation, Visual Entailment and Paraphrasing}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  url = {https://openreview.net/forum?id=XcOtIJ7EZD9},
}
Figure