Skip to main content
QUICK REVIEW

[Paper Review] Improving Weakly Supervised Visual Grounding by Contrastive Knowledge Distillation

Liwei Wang, Jing Huang|arXiv (Cornell University)|Jul 3, 2020
Multimodal Machine Learning ApplicationsComputer Science60 references8 citations
TL;DR

This paper proposes a contrastive knowledge distillation framework for weakly supervised visual grounding that leverages a pre-trained object detector during training to guide region-phrase matching without requiring detection at inference. By jointly optimizing a region-phrase score function via distillation from detector predictions and an image-sentence score function via contrastive learning, the method achieves state-of-the-art performance on Flickr30K Entities (+50.96% accuracy) and ReferItGame (+27.59% accuracy), outperforming methods requiring object detectors at test time.

ABSTRACT

Weakly supervised phrase grounding aims at learning region-phrase correspondences using only image-sentence pairs. A major challenge thus lies in the missing links between image regions and sentence phrases during training. To address this challenge, we leverage a generic object detector at training time, and propose a contrastive learning framework that accounts for both region-phrase and image-sentence matching. Our core innovation is the learning of a region-phrase score function, based on which an image-sentence score function is further constructed. Importantly, our region-phrase score function is learned by distilling from soft matching scores between the detected object names and candidate phrases within an image-sentence pair, while the image-sentence score function is supervised by ground-truth image-sentence pairs. The design of such score functions removes the need of object detection at test time, thereby significantly reducing the inference cost. Without bells and whistles, our approach achieves state-of-the-art results on visual phrase grounding, surpassing previous methods that require expensive object detectors at test time.

Motivation & Objective

  • To address the challenge of learning region-phrase correspondences in weakly supervised visual grounding without ground-truth bounding box annotations.
  • To reduce inference cost by eliminating the need for object detectors at test time while maintaining high localization accuracy.
  • To improve disambiguation of co-occurring visual concepts (e.g., 'dog' vs. 'dog head') using external knowledge from object detectors.
  • To develop a principled, efficient, and effective method that combines contrastive learning and knowledge distillation for visual grounding.

Proposed method

  • The method learns a region-phrase score function by distilling soft matching scores between detected object names and candidate phrases in an image-sentence pair.
  • It introduces a contrastive learning framework using noise-contrastive estimation (NCE) loss to align region-phrase pairs based on their similarity, with supervision from image-sentence matching.
  • The image-sentence score function is supervised by ground-truth image-sentence pairs, enabling joint optimization of both region-phrase and image-sentence matching.
  • The final model uses a learned score function for inference, eliminating the need for object detectors at test time.
  • The method employs a two-stage learning process: first distilling from object detector outputs (e.g., Open Images classes), then jointly optimizing with contrastive image-sentence loss.
  • The model is trained end-to-end with a backbone (e.g., ResNet-101) and a detector (e.g., IRV2-OI), with the score function used at inference to predict the highest-scoring region for each phrase.

Experimental results

Research questions

  • RQ1Can knowledge distillation from object detector predictions improve region-phrase matching in weakly supervised visual grounding without requiring detectors at inference?
  • RQ2How does contrastive learning on image-sentence pairs enhance localization accuracy when combined with distillation from object detection outputs?
  • RQ3What is the relative contribution of distillation and contrastive learning to performance gains in weakly supervised grounding?
  • RQ4Can a unified score function trained via distillation and contrastive learning outperform methods requiring object detectors at test time?
  • RQ5What are the best practices for integrating object detector knowledge into weakly supervised visual grounding models?

Key findings

  • The full model (NCE+Distill) achieves 50.96% accuracy on Flickr30K Entities, surpassing previous state-of-the-art methods by a large margin.
  • On ReferItGame, the method reaches 27.59% accuracy, significantly outperforming prior methods, including those using strong detectors at test time.
  • The NCE loss outperforms the max margin loss by +6.2% on Flickr30K and +3.7% on ReferItGame, demonstrating the effectiveness of contrastive learning.
  • Knowledge distillation improves performance by +2.61% on Flickr30K and +0.96% on ReferItGame when using ResNet-101 with IRV2-OI detector, showing consistent gains across backbones.
  • The ablation study confirms that NCE and distillation provide complementary signals: distillation helps disambiguate co-occurring concepts (e.g., 'person' vs. 'face'), while NCE captures fine-grained attributes (e.g., 'striped shirt').
  • The method generalizes across different backbones and detectors, with consistent improvements even when the visual backbone and detector have varying levels of knowledge alignment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.