Abstract
Grounding (i.e. localizing) arbitrary, free-form textual phrases in visual content is a challenging problem with many applications for human-computer interaction and image-text reference resolution. Few datasets provide the ground truth spatial localization of phrases, thus it is desirable to learn from data with no or little grounding supervision. We propose a novel approach which learns grounding by reconstructing a given phrase using an attention mechanism, which can be either latent or optimized directly. During training our approach encodes the phrase using a recurrent network language model and then learns to attend to the relevant image region in order to reconstruct the input phrase. At test time, the correct attention, i.e., the grounding, is evaluated. If grounding supervision is available it can be directly applied via a loss over the attention mechanism. We demonstrate the effectiveness of our approach on the Flickr30k Entities and ReferItGame datasets with different levels of supervision, ranging from no supervision over partial supervision to full supervision. Our supervised variant improves by a large margin over the state-of-the-art on both datasets.
Introduction
"Language grounding" is the task of connecting natural language phrases to specific regions in a visual scene. For instance, given a phrase like "a yellow toy tunnel," a grounding system must identify the corresponding bounding box in an image. While humans perform this task intuitively, it remains a significant challenge for artificial intelligence due to the complexity of free-form language and visual variety.
The primary obstacle in developing robust grounding models is the scarcity of annotated data. Most large-scale image-text datasets provide captions for entire images but lack fine-grained bounding box annotations for individual phrases. Manually creating these annotations is labor-intensive and expensive. To address this, we introduce GroundeR, a model designed to learn localization in unsupervised, semi-supervised, or fully supervised settings.
The GroundeR Approach
The core innovation of GroundeR is treating grounding as a reconstruction task. The model is built on a bi-directional mapping principle consisting of two main components:
- Grounding (Attention): The model encodes an input phrase using a Long Short-Term Memory (LSTM) network. Simultaneously, it processes a set of candidate bounding box proposals using a Convolutional Neural Network (CNN). A soft attention mechanism then assigns weights to these regions based on their relevance to the encoded phrase.
- Reconstruction: The visual features from the attended regions are passed to a decoder LSTM, which attempts to reconstruct the original input phrase.
The underlying logic is that if the model attends to an incorrect region (e.g., focusing on the grass instead of a dog), it will lack the necessary visual information to successfully decode the phrase. By minimizing reconstruction error, the model implicitly learns to identify the correct image regions.
Training Paradigms
GroundeR is highly flexible and can be trained under various levels of supervision, as shown in the architectural diagrams below:
- Unsupervised: The model relies solely on the reconstruction loss ($LOSS_{REC}$). No ground-truth bounding boxes are used.
- Semi-supervised: The model uses a small amount of labeled data to optimize the attention mechanism directly ($LOSS_{ATT}$) while still benefiting from the reconstruction task on unlabeled data.
- Fully supervised: The model is trained primarily using ground-truth boxes to optimize the attention mechanism.
Interestingly, the semi-supervised approach often outperforms purely supervised methods. The reconstruction task acts as a powerful regularizer, forcing the model to learn more robust and generalizable visual-linguistic features.
Experimental Results
We evaluated GroundeR on two benchmark datasets: Flickr30k Entities and ReferItGame.
On Flickr30k Entities, the supervised GroundeR achieved an accuracy of 47.81%, significantly surpassing previous state-of-the-art models like DSPE (43.89%) and SCRC (27.80%). Even in the unsupervised setting, GroundeR reached 28.94% accuracy, outperforming some older supervised techniques. On the ReferItGame dataset, GroundeR achieved 26.93%, a substantial improvement over the SCRC baseline of 17.93%.
Conclusion and Future Work
GroundeR demonstrates that reconstruction is a powerful proxy for explicit supervision in language grounding. By learning to describe what it sees, the model learns where to look. Future work will focus on improving spatial reasoning for complex relative phrases and incorporating sentence-level context to resolve ambiguities between multiple objects in a scene. Additionally, moving toward end-to-end region proposal generation would remove the dependency on pre-computed bounding boxes.
Summary updated