Introduction
Phrase grounding is a fundamental task in cross-modal understanding, requiring a model to associate specific textual phrases (e.g., "a red rug") with corresponding spatial regions in an image. In a weakly supervised setting, models are trained only on image-caption pairs without explicit bounding-box-to-word annotations. This paper reframes the problem as one of Mutual Information (MI) maximization, leveraging a contrastive learning framework to learn precise alignments between visual and textual representations.
Methodology
Grounding via Attention
The core of the proposed system is a scoring function $\phi_\theta(R, w)$ that measures the compatibility between a set of image region features $R$ and a contextualized word representation $w$. The model employs a pre-trained Faster R-CNN for visual feature extraction and BERT for language modeling.
As shown in the architecture below, the grounding process is treated as an attention mechanism. The word representation acts as a query, while image regions serve as keys and values. This allows the model to dynamically attend to the most relevant visual features for any given word, effectively filtering out "nuisance" regions that do not share information with the text.
Contrastive Training Objective
To optimize the model, the authors utilize the InfoNCE lower bound to maximize mutual information. The training objective consists of two primary contrastive losses:
- Image-level Loss ($L_{img}$): Contrasts the true image regions against regions from other images in the batch for a specific word.
- Language-level Loss ($L_{lang}$): Contrasts the true caption against "hard" negative captions for a specific image.
Context-Preserving Hard Negatives
A key contribution of this work is the generation of "hard" negative captions. Standard contrastive learning often uses random captions as negatives, which are often too easy for the model to distinguish. The authors use BERT to create context-preserving negatives by swapping a single noun in the original caption with a contextually plausible but factually incorrect alternative (e.g., changing "donut" to "cookie"). This forces the model to learn fine-grained visual distinctions to correctly minimize the loss.
Results and Key Insights
The proposed method achieved a new state-of-the-art pointing accuracy of 76.7% on the Flickr30K Entities benchmark, outperforming the previous best method (Align2Ground) by 5.7%.
Key findings include:
- Hard Negatives are Essential: The transition from random negatives to BERT-generated hard negatives resulted in a 10% absolute gain in accuracy, proving that fine-grained linguistic contrasts are vital for grounding.
- Sample Efficiency: The model maintains high performance even with significantly less training data, demonstrating the robustness of the MI-based approach.
- Transfer Learning: Utilizing pre-trained BERT embeddings provided a ~10% performance boost over training embeddings from scratch, highlighting the importance of rich contextual language features.
Conclusion and Future Work
By framing phrase grounding as a mutual information maximization problem, this research demonstrates that contrastive learning with hard negatives can effectively bridge the gap between vision and language without dense supervision. While the current model relies on frozen pre-trained components and focuses primarily on nouns for negative generation, future iterations could involve end-to-end fine-tuning and expanding the negative generation logic to include verbs, adjectives, and spatial relationships.
Summary updated