TL;DR
This paper introduces a novel one-stage, top-down framework for weakly-supervised grounded image captioning (WSGIC) that eliminates the need for computationally heavy, pre-trained object detectors. By directly processing raw RGB images with a Vision Transformer and incorporating explicit relation modeling alongside a Recurrent Grounding Module, the proposed method achieves state-of-the-art localization accuracy while delivering a massive 6x speedup and a 13x reduction in computational complexity.
What Problem Does This Paper Address?
Grounded image captioning requires a model to not only generate a natural language description of an image but also to "ground" (localize) the object words it predicts by drawing bounding boxes around them. Doing this under weak supervision means the model must learn to map words to image regions using only image-caption pairs during training, without any expensive bounding box annotations.
Historically, state-of-the-art methods have relied on a two-stage, bottom-up pipeline. First, an off-the-shelf object detector extracts region proposals. Second, a language module uses attention mechanisms to match words to these regions.
However, the authors identify three major flaws in this approach:
- Efficiency Bottlenecks: Running a full object detector is computationally expensive, limiting real-time deployment.
- Loss of Global Context: Detectors chop an image into isolated proposals, making it difficult for the captioner to understand the broader scene structure.
- Neglected Relationships: Object detectors focus heavily on object categories (nouns) while ignoring actions and behaviors (verbs/prepositions), leading to inaccurate captions and fragmented grounding (e.g., localizing just a person's head instead of their entire body).
Methods
To overcome these limitations, the authors propose a one-stage, top-down framework that processes the entire image at once.
1. Top-Down Image Encoder
Instead of an object detector, the framework uses a standard Vision Transformer (ViT/DeiT) backbone to encode the raw RGB image into patch tokens and a standard classification ([CLS]) token to capture object semantics.
2. Visual Relation Semantic Modeling
To capture actions and spatial relationships, the authors introduce a novel, learnable [REL] token. This token is trained via multi-label classification to predict the most frequent verbs and prepositions in the dataset (e.g., "looking through", "standing next to"). The resulting relation features are injected into the caption decoder as contextual cues.
3. Recurrent Grounding Module (RGM)
Within the language decoder, the RGM generates Visual-Language Attention Maps (VLAMs) to localize objects. Crucially, instead of treating each word independently, the RGM operates recurrently: the similarity attention map for the current time step ($s^*_t$) is conditioned on the attention map from the previous time step ($s^*_{t-1}$). This temporal dependency helps smooth out spatial transitions and yields cleaner localization maps.
Datasets
The model was trained and evaluated on two standard benchmarks:
- Flickr30k Entities: Contains 31k images, each annotated with 5 captions. The authors selected the 72 most frequent relation classes for their relation module.
- MSCOCO Captioning: Evaluated using the Karpathy split, utilizing 62 selected relation classes for training and 80 object categories to test grounding performance.
Key Insights and Ideas
- Relations Anchor Objects: Explicitly predicting relationship words (like "playing with" or "inside") acts as a powerful regularizer. It provides the language model with the necessary context to predict the correct subsequent nouns (e.g., predicting "apple" instead of "banana" because the relation "eating" was correctly identified).
- Recurrence Tames Attention Noise: Standard cross-attention maps between words and image patches are notoriously noisy. By feeding the previous step's attention map back into the grounding module, the model maintains spatial continuity, effectively filtering out background noise and focusing tightly on the true object boundaries.
Key Results
- State-of-the-Art Grounding: On the Flickr30k Entities dataset, the model achieved an $F1_{all}$ score of 7.88% and an $F1_{loc}$ score of 19.9%, outperforming existing weakly-supervised two-stage models (like CVAE and Prophet) and even rivaling some fully supervised baselines.
- Massive Efficiency Gains: By ditching the object detector, the model achieved a processing speed of 32.2 FPS (compared to <5 FPS for detector-based methods) and required only 64.2 Gflops of computation (compared to >850 Gflops for traditional pipelines).
Limitations and Future Work
Despite its strong performance, the authors note a few remaining challenges:
- Small Object Localization: The model still struggles to accurately ground very small objects embedded within highly complex scenes (e.g., identifying a specific small tool within heavy machinery).
- Part-to-Whole Ambiguity: When a caption specifically mentions a sub-region or an item of clothing (like "jeans"), the top-down attention map occasionally defaults to localizing the entire salient object (the whole human body) instead of isolating the specific item.
- Reinforcement Learning Disruption: While fine-tuning the model with Self-Critical Sequence Training (SCST) improves captioning scores, it tends to disrupt the visual-language attention maps due to a lack of explicit region-level rewards during the RL phase. The authors plan to explore detector-free RL regularizers to solve this in future work.
Summary updated