Abstract
Nowadays, there is an abundance of data involving images and surrounding free-form text weakly corresponding to those images. Weakly Supervised phrase-Grounding (WSG) deals with the task of using this data to learn to localize (or to ground) arbitrary text phrases in images without any additional annotations. However, most recent state-of-the-art (SotA) methods for WSG assume the existence of a pre-trained object detector, relying on it to produce the Regions of Interest (ROIs) for localization. In this work, we focus on the task of Detector-Free WSG (DF-WSG) to solve WSG without relying on a pre-trained detector. We directly learn everything from the images and associated free-form text pairs, thus potentially gaining an advantage on the categories unsupported by the detector. The key idea behind our proposed Grounding by Separation (GbS) method is synthesizing 'text to image-regions' associations by random alpha-blending of arbitrary image pairs and using the corresponding texts of the pair as conditions to recover the alpha map from the blended image via a segmentation network. At test time, this allows using the query phrase as a condition for a non-blended query image, thus interpreting the test image as a composition of a region corresponding to the phrase and the complement region. Using this approach we demonstrate a significant accuracy improvement, of up to 8.5% over previous DF-WSG SotA, for a range of benchmarks including Flickr30K, Visual Genome, and ReferIt, as well as a significant complementary improvement (above 7%) over the detector-based approaches for WSG.
Introduction
Weakly Supervised phrase-Grounding (WSG) is a critical task in computer vision and natural language processing, requiring models to localize text phrases within an image using only image-caption pairs for training. Traditionally, the best-performing models have relied on pre-trained object detectors (e.g., Faster R-CNN) to generate candidate regions. However, this dependency creates a "closed-vocabulary" bottleneck: the model can only ground objects that the detector was originally trained to recognize.
To overcome this, the Grounding by Separation (GbS) framework introduces a detector-free approach. By learning directly from raw pixels and text, GbS can ground open-vocabulary phrases, including "stuff" categories like "water" or "sky" that traditional detectors often ignore.
Methodology: Grounding as Source Separation
The core innovation of GbS is treating the grounding task as a source separation problem. During training, the model learns to "un-blend" composite images based on linguistic cues.
Synthetic Composition and Training
- Blending: Two random image-text pairs $(I_1, T_1)$ and $(I_2, T_2)$ are selected. A random alpha map ($\alpha$) is used to create a composite image: $I_b = \alpha I_1 + (1-\alpha) I_2$.
- Separation Task: The model is tasked with recovering the original alpha map $\alpha$ given the blended image $I_b$ and one of the captions (e.g., $T_1$) as a condition. To succeed, the model must identify which pixels in the blend correspond to the provided text.
- Architecture: The system uses a standard CNN encoder (like VGG or PNASNet) to extract multi-scale features. These features are conditioned by text embeddings from BERT and then processed by a U-Net-like decoder to produce the final heatmap.
Regularization and Losses
To ensure the model generalizes to real-world (non-blended) images, several losses are employed:
- Separation Loss ($L_{sep}$): Minimizes the difference between the predicted and ground-truth alpha maps.
- Adversarial Loss ($L_{adv}$): Prevents the model from over-relying on low-level blending artifacts.
- Negative Text Loss ($L_{neg}$): Ensures the model produces an empty heatmap when the text does not match the image content.
Experimental Results
The GbS method was evaluated on three major benchmarks: Flickr30K Entities, Visual Genome (VG), and ReferIt.
Quantitative Performance
GbS established a new state-of-the-art for detector-free methods, achieving an absolute improvement of up to 8.5% on Flickr30K. More importantly, it proved highly complementary to detector-based models. When ensembled with models like InfoGround, GbS provided a boost of over 7%, pushing the final accuracy on Flickr30K to 85.9%.
Qualitative Analysis
One of the primary advantages of GbS is its ability to ground non-object regions. While detector-based models struggle with phrases like "the water" or "footprints," GbS produces accurate pixel-level heatmaps for these categories.
Conclusion
Grounding by Separation offers a robust, detector-free alternative for weakly supervised phrase grounding. By reframing grounding as a decomposition task, the model learns a more flexible and granular understanding of the relationship between pixels and text. This approach not only outperforms existing detector-free methods but also serves as a powerful complement to traditional detector-based systems, enabling the localization of a much broader range of visual concepts.
Summary updated