Abstract
Image captioning is a longstanding problem in the field of computer vision and natural language processing. To date, researchers have produced impressive state-of-the-art performance in the age of deep learning. Most of these state-of-the-art, however, requires large volume of annotated image-caption pairs in order to train their models. When given an image dataset of interests, practitioner needs to annotate the caption for each image in the training set and this process needs to happen for each newly collected image dataset. In this paper, we explore the task of unsupervised image captioning which utilizes unpaired images and texts to train the model so that the texts can come from different sources than the images. A main school of research on this topic that has been shown to be effective is to construct pairs from the images and texts in the training set according to their overlap of objects. Unlike in the supervised setting, these constructed pairings are however not guaranteed to have fully overlapping set of objects. Our work in this paper overcomes this by harvesting objects corresponding to a given sentence from the training set, even if they don’t belong to the same image. When used as input to a transformer, such mixture of objects enables larger if not full object coverage, and when supervised by the corresponding sentence, produced results that outperform current state of the art unsupervised methods by a significant margin. Building upon this finding, we further show that (1) additional information on relationship between objects and attributes of objects also helps in boosting performance; and (2) our method also extends well to non-English image captioning, which usually suffers from a scarcer level of annotations.
Introduction
Traditional image captioning models rely heavily on supervised learning, requiring massive datasets of human-annotated image-caption pairs like MS COCO. However, the manual annotation process is both time-consuming and expensive, often taking over two minutes per image. This creates a significant barrier when applying captioning to new domains or languages with limited resources.
Unsupervised image captioning offers a solution by training models on unpaired images and text corpora. The primary challenge in this domain is "object coverage." Previous methods attempted to find a single image in a dataset that contained most of the objects mentioned in a specific sentence. Because these datasets are unpaired, a perfect match is rarely found. When a training "pair" only shares a fraction of its objects, the model learns incorrect associations, leading to hallucinations or incomplete descriptions during inference.
The Object-Centric Pipeline
To address the coverage gap, this research introduces an Object-Centric training pipeline. Rather than searching for a single matching image, the system "harvests" individual object regions from across the entire image dataset to reconstruct the visual context of a given sentence.
Methodology
- Object Harvesting: For any sentence in a text corpus (e.g., "A woman is sitting at a table"), the model identifies key visual concepts like "woman" and "table."
- Synthetic Scene Construction: The model mines the entire image dataset for regions containing these specific objects. Crucially, these regions do not need to originate from the same image.
- Transformer Training: These harvested regions, represented by visual features and spatial coordinates, are fed into a Transformer. The model is trained to predict the original sentence using standard Cross-Entropy loss. This "bag of regions" approach ensures 100% object coverage during training.
- Contextual Enhancement: To improve the natural flow and accuracy of generated captions, the authors incorporate relationship detectors (e.g., "person riding bike") and attribute detectors (e.g., "yellow taxi") into the input features.
Experimental Results
The proposed method was evaluated using the MS COCO image dataset against several text corpora, including Shutterstock (SS) and Google Conceptual Captions (GCC).
As shown in the results, the object-centric approach outperforms previous state-of-the-art (SOTA) unsupervised methods by a significant margin. On the SS dataset, the method achieved a BLEU-1 score of 0.056, more than doubling the previous SOTA of 0.022. The researchers demonstrated that "coverage is king"; when object coverage was artificially reduced to 50% in ablation studies, performance dropped significantly, confirming that the ability to synthesize a complete visual context from disjointed images is the primary driver of success.
Cross-Lingual Capabilities
A major advantage of this object-centric approach is its scalability to non-English languages. Because the method relies on object detection, a captioner for a new language (such as Chinese or French) can be built simply by translating the object detector's vocabulary and utilizing a text corpus in the target language. In tests on COCO-CN (Chinese) and Multi30k (French), the model outperformed "baseline-translate" methods, proving that training directly on the target language's text is superior to post-generation translation.
Conclusion and Future Work
This work demonstrates that a captioning model does not require coherent, "real" images during training to learn how to describe them. By harvesting objects from across a dataset, the model achieves superior object coverage and higher-quality captions.
While highly effective, the model is currently limited by the pre-trained object detector's vocabulary. Future research may explore zero-shot object detection to allow the model to describe objects not seen during the initial detector training. Additionally, while the inclusion of relationship and attribute detectors helps, further refinement is needed to capture more fine-grained visual details consistently.
Summary updated