Weakly Supervised Phrase Localization With Multi-Scale Anchored Transformer Network

Fang Zhao, Jianshu Li, Jian Zhao, Jiashi Feng

Introduction

Phrase localization, or "grounding," involves mapping natural language descriptions (e.g., "a small black dog") to specific regions within an image. While fully supervised models achieve high performance, they rely on expensive, manually annotated bounding boxes. Weakly supervised methods aim to learn this mapping using only image-level captions. However, traditional weakly supervised approaches are often "discrete," relying on pre-defined region proposals. This creates a "quality ceiling": if the proposal generator fails to provide an accurate box, the model cannot succeed.

The Multi-Scale Anchored Transformer Network (MATN)

To overcome the limitations of discrete proposal selection, the Multi-scale Anchored Transformer Network (MATN) shifts the paradigm toward continuous refinement. Instead of simply picking a box, MATN uses region proposals as "anchors" to guide a fluid search across the image's feature maps.

Continuous search mechanism over spatial feature maps allows for arbitrary region cropping.

The architecture comprises several key innovations:

  1. Multi-scale Correspondence Network (MCN): MCN computes correlation scores between the text phrase (encoded via LSTM) and image feature maps at multiple resolutions. This allows the model to capture both fine-grained details and broader contextual information.
  2. Continuous Search via Differentiable Sampling: Inspired by Spatial Transformer Networks, MATN predicts affine transformation parameters (scale and translation). This enables the model to "crop" and refine any arbitrary region from the feature map, moving beyond the constraints of initial proposals.
  3. The Anchor Constraint: To ensure the model remains focused on relevant content, region proposals act as anchors. The model is regularized to stay near the most promising proposal, using it as a starting point for refinement rather than a final candidate.

Training and Objectives

MATN is trained using a dual-loss strategy that leverages both intra-image and inter-image information:

  • Contrastive Reconstruction Loss: The model attempts to reconstruct the original phrase from the predicted region. It is penalized if it can reconstruct a different phrase from the same image, ensuring the localized region is semantically specific.
  • Triplet Loss: By comparing phrases across different images, the model learns that similar semantic concepts (e.g., "dog") should map to similar visual features, even without explicit box supervision.

Experimental Results

MATN was evaluated on the Flickr30K Entities and ReferItGame benchmarks, where it significantly outperformed previous weakly supervised state-of-the-art (SOTA) methods.

Dataset MATN Accuracy (IoU > 0.5) Previous SOTA (GroundeR)
Flickr30K Entities 33.10% 28.94%
ReferItGame 13.61% 10.70%
MATN achieves better localization results by refining initial proposals into precise bounding boxes.

Qualitative analysis indicates that MATN is particularly effective at localizing "People" and "Animals." Furthermore, because the model directly predicts box parameters through the MCN, it is more computationally efficient during inference than methods requiring the scoring of hundreds of individual proposals.

Conclusion

By transitioning from discrete selection to continuous refinement, MATN addresses the inherent limitations of proposal-based weakly supervised grounding. While the model currently struggles with complex spatial relationships (e.g., "the guy on the left"), its ability to leverage multi-scale features and cross-image knowledge sets a new benchmark for the field. Future research may focus on incorporating global spatial reasoning to better handle relative positioning cues.

Summary updated

BibTeX
@inproceedings{zhao2018weakly,
  author = {Fang Zhao and Jianshu Li and Jian Zhao and Jiashi Feng},
  title = {{Weakly Supervised Phrase Localization With Multi-Scale Anchored Transformer Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00597},
}
Figure