Weakly-Supervised Visual-Textual Grounding with Semantic Prior Refinement

Davide Rigoni, Luca Parolari, Luciano Serafini, Alessandro Sperduti, Lamberto Ballan

TL;DR

The Semantic Prior Refinement Model (SPRM) achieves state-of-the-art results in weakly-supervised visual grounding by combining "free" prior knowledge from pre-trained models with a learnable refinement module. By leveraging an untrained "Concept Branch" to provide rough initial alignments, the model remains remarkably robust and high-performing even when training data is extremely scarce.

What Problem Does This Paper Address?

Visual-Textual Grounding (VG) is the task of locating specific objects in an image based on a natural language query (e.g., finding the "brown dog on the left"). While fully supervised models perform well, they require expensive, manually-annotated bounding box-to-phrase mappings.

Weakly-supervised VG attempts to learn these mappings using only image-sentence pairs. This is significantly harder because the model is never explicitly told which part of the image corresponds to which phrase. Existing methods often struggle to bridge this semantic gap, frequently getting lost in the noise of weak supervision. The authors of this paper aim to solve this by injecting "prior knowledge"—information we already have about how words relate to objects—into the learning process.

Methods

The core of the SPRM architecture is the division of labor between two main modules:

  1. Concept Branch (CB): This is an untrained module that provides a "rough alignment." It uses an off-the-shelf object detector to label regions in an image and an NLP parser to find the "head" of a noun phrase. It then calculates the similarity between these two using pre-trained word embeddings (GloVe). To resolve ambiguity (e.g., if there are two dogs), it incorporates a positional heuristic that matches spatial words in the text (like "top" or "left") to the relative coordinates of the bounding boxes.
  2. Trained Sub-Components: This module consists of Visual and Textual branches that learn a shared multimodal embedding space. Unlike the CB, these are trained on the specific dataset to refine the rough alignments.

The final prediction is a weighted combination (controlled by a hyper-parameter $\omega$) of the rough scores from the CB and the refined scores from the trained branches.

Architecture overview showing the Concept Branch and Trained Sub-Components.

Training Strategy: The model uses a contrastive loss, maximizing similarity for correct image-sentence pairs. Crucially, they employ a "hard negative" strategy: for every positive example, they select a negative sentence from the batch that is semantically very similar to the positive one. This forces the model to learn fine-grained distinctions rather than relying on coarse global features.

Datasets

The authors evaluated SPRM on two primary benchmarks:

  • Flickr30k Entities: A large-scale dataset containing 32K images and 360K queries.
  • ReferIt: A dataset with 20K images and 120K queries, often considered more challenging due to its diverse referring expressions.

Key Insights and Ideas

  • Prior Knowledge as a Stabilizer: The untrained Concept Branch acts as a powerful anchor. Because it doesn't need to be learned from scratch, it prevents the model from collapsing during the early stages of weak supervision.
  • The Power of Heuristics: Simply adding a positional heuristic to the Concept Branch provided a noticeable boost, especially on the ReferIt dataset, which relies heavily on spatial relationships.
  • Data Efficiency: One of the most striking findings is the model's performance in low-data regimes. Because the CB provides a strong baseline for "free," the model can achieve competitive results using only 5-10% of the available training data.
  • Fine-Grained vs. Coarse-Grained: The authors compared their approach to CLIP-based embeddings. They found that while CLIP is excellent at global image-text matching, SPRM's specialized branches are better at the fine-grained task of region-phrase alignment.

Key Results

SPRM set new state-of-the-art (SOTA) benchmarks for weakly-supervised grounding:

  • Flickr30k Entities: Achieved 62.20% accuracy, an absolute improvement of 0.8% over the previous SOTA.
  • ReferIt: Achieved 48.04% accuracy, representing a massive 9.65% absolute improvement.
  • Pointing Game Accuracy: The model also outperformed competitors in this metric, reaching 80.68% on Flickr30k and 62.40% on ReferIt.
Comparison of SPRM against various SOTA models on Flickr30k and ReferIt.

Ablation studies confirmed that the Concept Branch is the primary driver of performance, but the trained refinement module and positional heuristics are essential for reaching peak accuracy.

Limitations and Future Work

The authors identify a few key areas for improvement:

  • Detector Dependency: The model's performance is inherently capped by the quality of the underlying object detector. If the detector fails to propose a box or mislabels an object, the Concept Branch cannot recover.
  • Modernizing the NLP: The current architecture relies on GloVe embeddings and LSTMs. The authors suggest that integrating Large Language Models (LLMs) like BERT could improve contextual understanding, though they note this integration isn't straightforward for the Concept Branch's label-matching logic.
  • Future Directions: The team plans to explore adding a bounding box regression component to further refine localizations and incorporating structured knowledge graphs to enhance the semantic priors.

Summary updated

BibTeX
@inproceedings{rigoni2023weakly,
  author = {Davide Rigoni and Luca Parolari and Luciano Serafini and Alessandro Sperduti and Lamberto Ballan},
  title = {{Weakly-Supervised Visual-Textual Grounding with Semantic Prior Refinement}},
  booktitle = {BMVC},
  year = {2023},
}
Figure