Source-linked AI summary

Phrase Localization and Visual Relationship Detection with Comprehensive Image-Language Cues

Bryan A. Plummer, Arun Mallya, Christopher M. Cervantes, Julia Hockenmaier, Svetlana Lazebnik

arXiv:1611.06641v4cs.CV

TL;DR

Phrase localization must handle varied linguistic cues and difficult entities such as clothing and body parts. The paper combines visual and linguistic cues, learns their weights, and jointly infers phrase boxes, extending the framework to visual relationship detection. It reports state-of-the-art performance on Flickr30k Entities and Stanford VRD, with especially pronounced gains for zero-shot detection.

  • Problem

    Phrase grounding remains challenging because of open-ended vocabularies, unbalanced training data, hard-to-localize clothing and body parts, and varied linguistic cues.

  • Method

    The framework combines appearance, size, position, adjective, verb, preposition, pronoun, and clothing-or-body-part relationship cues with learned weights and joint inference over caption phrases.

  • Results

    The system achieves state-of-the-art performance on phrase localization on Flickr30k Entities and visual relationship detection on Stanford VRD, with especially pronounced gains in zero-shot detection.

  • Takeaways & Limitations

    Comprehensive image-language cues provide a strong baseline for phrase localization and relationship detection across both standard and zero-shot settings.

  • Takeaways & Limitations

    The person-to-clothing-or-body-part attachment assumption can fail for relations such as a person looking at a jacket, although such cases are rare.

Abstract

from arXiv · show

This paper presents a framework for localization or grounding of phrases in images using a large collection of linguistic and visual cues. We model the appearance, size, and position of entity bounding boxes, adjectives that contain attribute information, and spatial relationships between pairs of entities connected by verbs or prepositions. Special attention is given to relationships between people and clothing or body part mentions, as they are useful for distinguishing individuals. We automatically learn weights for combining these cues and at test time, perform joint inference over all phrases in a caption. The resulting system produces state of the art performance on phrase localization on the Flickr30k Entities dataset and visual relationship detection on the Stanford VRD dataset.

1. Introduction

The paper addresses phrase grounding by jointly localizing every noun phrase in an image caption using a broad, learned combination of visual and linguistic cues. It extends grounding to visual relationship detection and reports gains on both benchmark tasks.

  • Phrase grounding remains difficult because vocabularies are open-ended, training data are imbalanced, and clothing and body parts are hard to localize.
  • The proposed objective localizes each caption entity with a bounding box by combining single-phrase and phrase-pair cues.
  • The method is evaluated on Flickr30K Entities for phrase localization and adapted to Stanford VRD, where it reports especially pronounced gains for zero-shot detection.
  • The system uses appearance, size, position, adjectives, spatial relationships, visual verbs, and pronoun-resolved relationships between people and clothing or body parts.
  • Compared with prior work, the framework uses a larger cue set, learned combination weights, pronominal coreference, and global optimization to localize all phrases simultaneously.

2. Phrase localization approach

The approach jointly localizes caption phrases by combining learned single-phrase and phrase-pair compatibility costs. It selects boxes by minimizing a binary quadratic objective and trains cue weights directly for Recall@1-style localization accuracy.

  • Single-phrase cues: Each phrase is scored against candidate regions using a learned linear combination of cue-specific compatibility costs.The 14 single-phrase cues cover region-phrase compatibility, position, size, detector confidence, adjectives, and syntactic relations.
  • Pairwise cues: Phrase pairs linked by relationships receive additional weighted costs from spatial, verb, preposition, clothing, and body-part classifiers.These pairwise terms model compatibility between candidate boxes for related phrases.
  • Joint inference: At test time, the system retrieves top M boxes per phrase and jointly selects one box for each phrase by minimizing a binary quadratic objective.The optimization is relaxed and solved with a sequential quadratic-programming solver.
  • Evaluation objective: Performance is measured by Recall@1, counting a phrase as correctly localized when its selected box has Intersection-over-Union of at least 0.5 with ground truth.The objective emphasizes the correctness of each phrase’s best candidate rather than ranking all positives above all negatives.
  • Weight learning: Cue-specific functions are trained on the training set, while combination weights are learned on validation data by directly optimizing correct phrase or region-pair localization.Unary weights are learned first, followed by pairwise weights; direct search performed better than rank-SVM in the authors’ experiments.

3. Cues for phrase-region grounding

The system combines linguistic and visual cues at both the single-phrase and phrase-pair levels to ground caption entities in image regions. It extracts attributes, relations, and coreference information, then models appearance, position, size, and spatial coherence.

  • Linguistic cue extraction: Linguistic processing extracts noun phrases, adjectives, verbs, prepositions, and pronominal coreference links from captions.Constituent parsing identifies relational tuples, while rule-based coreference adds links for pronouns that are not annotated in Flickr30K Entities.
  • Phrase-pair cues: Clothing and body-part relations use a special attachment relation between a person and the associated entity, regardless of the exact relationship words.This treats examples such as a boy wearing a jacket and a boy running in a jacket as equivalent, although the attachment assumption can fail for cases such as looking at a jacket.
  • Linguistic cue extraction: The procedure extracts relatively few pronoun relationships compared with verb and prepositional relationships.The test set contains 432 pronoun relationships, versus roughly 10K for the other relationship types; the training set contains 13,163 versus roughly 300K.
  • Single-phrase cues: Single-phrase cues measure compatibility between a phrase and candidate box using appearance, attributes, position, size, and object or action detectors.Appearance uses normalized CCA between phrase and region representations; other cues include adjective detectors, phrase-type location models, normalized box geometry, and Fast R-CNN detectors.
  • Single-phrase cues: Subject-verb-object detectors were tested but did not provide further improvement.The system retains subject-verb and verb-object detectors while reporting no additional gain from subject-verb-object detectors.
  • Phrase-pair cues: Phrase-pair cues score candidate-box pairs for spatial coherence when entities are linked by verbs, prepositions, or clothing and body-part relations.The model represents relationships as tuples and learns spatial models over four-dimensional box-pair features; people are grouped while other phrase types remain distinct.

4. Experiments on Flickr30k Entities

On Flickr30k Entities, the framework combines single-phrase and phrase-pair cues for joint localization, improving over prior systems while exposing proposal limitations for difficult phrase types.

  • Evaluation setup: 29,873 training, 1,000 validation, and 1,000 testing images use the provided split and top 200 EdgeBox proposals per image.At test time, the system retains the top 30 candidate regions per phrase after non-maximum suppression at 0.8 IOU, then performs globally consistent inference.
  • Cue combinations: A 2% gain from object detectors, followed by 9% from adjective, verb, and size cues and 1% from position, improves overall localization accuracy.These gains are reported for successive cue combinations in Table 2(a).
  • Comparison with prior work: The full model is 5% better than RtP, while CCA+Det+Size+Adj is almost 2% better than RtP.The comparison replaces RtP’s 11 color adjectives with a model covering 83 adjectives; rank-SVM weighting performs 8% worse than direct search.
  • Phrase-type limitations: Body parts reach 25.24% accuracy and an upper bound of about 62%, while augmenting EdgeBox proposals with ground-truth boxes would improve full-system accuracy by about 9%.Scenes are the notable phrase-type exception where GroundeR performs better, with a 7% higher proposal upper bound despite using half as many proposals.
  • Cue-specific effects: Adjective, subject-verb, and verb-object cues improve performance by 6–7% over the affected-phrase baseline, whereas object detectors add less than 2% on those phrases.The affected-phrase analysis uses improved boxes from bounding-box regression and separates phrase-pair effects by relationship side.
  • Phrase-pair cues: Relationship classifiers consistently improve over the SPC model despite affecting relatively few phrases and having validation/test relationship mismatches.Qualitative examples attribute improvements to subject-verb cues, adjective composition, coreference, and spatial relationships involving clothing.

5. Visual Relationship Detection

The framework is adapted to visual relationship detection, where objects and predicates must be discovered rather than localized from known phrases. It combines appearance, language, spatial, size, and position cues and outperforms reported comparison methods.

  • Task distinction: VRD must detect all entities and relationships in an image as subject–predicate–object triples with corresponding bounding boxes, unlike phrase localization with known entities and relationships.A detection is correct when the relationship exists and both subject and object boxes have IOU ≥0.5 with ground truth.
  • Training considerations: Training detectors and relationship models on the same images causes overfitting because detector scores become overconfident on the training images.The dataset has a small, unbalanced training set and no validation set, motivating a different training strategy for appearance models.
  • Cue design: Five CCA models score entity boxes, subject and object phrase pairs, the union box with the predicate, and the union box with all class names.The union-box models have no analogue in phrase localization because VRD must predict which relationships exist.
  • Scoring features: Each candidate relationship uses an 11-dimensional feature vector combining six CCA scores with size, position, and pairwise spatial scores.VRD features are dense and available for every relationship.
  • Results: The method clearly outperforms Lu et al. and Zhang et al. on VRD recall, including relationships not encountered during training.Recall is measured as R@100 and R@50, the proportion of correctly localized relationships among the top 100 or 50 ranked relationships.

6. Conclusion

The framework combines comprehensive image- and language-based cues for visual grounding and achieves gains over the state of the art on phrase localization and relationship detection. The relationship-detection gains are particularly pronounced in zero-shot learning.

  • The framework incorporates a comprehensive collection of image- and language-based cues for visual grounding.
  • It demonstrates significant gains over the state of the art on phrase localization and relationship detection.The evaluated relationship-detection metric is recall at R@{100,50}.
  • The relationship-detection gains are particularly pronounced in the zero-shot learning scenario.
  • The comparison excludes concurrent work published after the paper’s initial submission.

A. Visualization of detected relationships (VRD Dataset)

The VRD visualizations illustrate confident correct detections, logically correct relationships penalized because they were unannotated, and several distinct failure modes. Examples span spatial, clothing, and action relationships.

  • Correct detections: The correct-detection examples include spatial, clothing, and action relationships such as above, wear, has, and ride.The examples demonstrate relationship detection across different semantic categories.
  • Annotation limitations: Some predictions are logically correct but scored as negatives because the corresponding relationships were absent from the VRD annotations.Examples include the mouse next to the laptop and the laptop under the sky.
  • Annotation limitations: The visualizations show that annotation incompleteness can produce inconsistent evaluation labels for similar relationships across images.The relationship person has shorts is marked present in one image but treated differently in another example.
  • Failure modes: Incorrect detections arise from implausible relationships, contextually false relationships, and incorrect localization of objects.Examples include hat holding a surfboard, jeans on a table, and wrongly detected sky or phone regions.
Loading 1611.06641v4…