Image Captioning with Unseen Objects

Berkan Demirel, Ramazan Gokberk Cinbis, Nazli Ikizler-Cinbis

TL;DR

This paper tackles the challenging problem of image captioning for objects that were not seen during training (zero-shot image captioning). They propose a novel approach that combines a zero-shot object detector with a template-based sentence generator, achieving promising results on the COCO dataset. This work is significant because it moves beyond traditional image captioning that relies on pre-trained models covering all possible objects, opening the door for more versatile and adaptable captioning systems.

What Problem Does This Paper Address?

Image captioning, the task of generating a textual description for an image, has seen significant advancements thanks to deep learning. However, most existing methods rely on fully supervised object recognition models. This means they can only generate captions that include objects the model was explicitly trained on. This limitation becomes a bottleneck when dealing with real-world images that often contain objects not present in the training data. The authors identify this gap and propose to address "true zero-shot image captioning," where the system must generate captions for images containing objects it has never encountered during training. This is a crucial step towards creating more robust and generalizable image captioning systems that can handle the vast diversity of objects in the real world.

Methods

The proposed approach consists of two main components:

  • Zero-Shot Object Detector (ZSD): The authors adapt the YOLO object detection architecture for the zero-shot setting. Instead of directly predicting class probabilities, their ZSD model estimates the compatibility between visual features of image regions and learned class embeddings. Crucially, these class embeddings are not just simple word embeddings but are derived from class-to-class similarities in the word embedding space. This allows the model to infer relationships between seen and unseen classes. To handle the generalized zero-shot detection (GZSD) problem (where test images contain both seen and unseen objects), they introduce a scaling coefficient ($\alpha$) to make the scores of seen and unseen classes more comparable.
  • Template-based Image Caption Generator: This component is inspired by the Neural Baby Talk (NBT) approach. It generates sentence templates with empty slots for visual words. The ZSD model's outputs (detected objects and their representations) are then used to fill these visual word slots, creating the final caption. This template-based approach is chosen because it's more suitable for incorporating novel objects compared to retrieval-based methods.

Datasets

  • MS-COCO: This dataset is used for both training and evaluation. The authors carefully split the dataset to create a "true zero-shot" scenario. For training, they use a subset of COCO images that do not contain instances of specific "unseen" classes. For evaluation, they use the validation set, specifically focusing on images that contain these unseen objects. They define 8 classes as unseen (bottle, bus, couch, microwave, pizza, tennis racket, suitcase, and zebra).

Key Insights and Ideas

  • Bridging the Gap with Class Similarities: The core idea of using class-to-class similarities in word embedding space to create class embeddings for the ZSD model is a key innovation. This allows the model to leverage semantic relationships between known and unknown objects, a critical step for zero-shot learning.
  • The Challenge of Generalized Zero-Shot Detection: The introduction of the scaling coefficient ($\alpha$) highlights the practical difficulty of balancing performance between seen and unseen classes in GZSD. Their experiments show that while $\alpha$ boosts unseen class detection, it can slightly degrade seen class performance, a common trade-off.
  • Metric Suitability for Zero-Shot Captioning: The paper raises an important point about evaluation metrics. They observe that standard metrics like BLEU and ROUGE-L show very similar results for their method and a baseline that cannot handle unseen objects. This suggests these metrics might not be sensitive enough to truly evaluate zero-shot captioning performance, pointing towards the need for more specialized evaluation. METEOR and SPICE, which incorporate synonym matching, appear to be more indicative.

Key Results

  • Zero-Shot Object Detection (ZSD): The proposed ZSD model achieves a mean average precision (mAP) of 31.4% on unseen classes.
  • Generalized Zero-Shot Detection (GZSD): With alpha-scaling, the harmonic mean (HM) of seen and unseen class mAP scores increases from 0.7% to 10.6%, indicating the effectiveness of their scaling approach for GZSD.
  • Zero-Shot Image Captioning (ZSC): The complete ZSC system achieves an average F1 score of 29.8%. While lower than upper-bound methods (which use supervised detectors for all classes), this is considered promising for a true zero-shot setting.
  • Comparison to Baselines: The proposed method shows significant improvements over the NBT-baseline (which cannot handle unseen objects) across various metrics, demonstrating the value of their ZSD component.

Limitations and Future Work

  • Performance Gap with Upper-Bounds: The authors acknowledge that their ZSC performance is lower than "upper-bound" methods. This is expected, as these upper-bounds leverage fully supervised detectors trained on all classes, which is precisely what their "true zero-shot" setting aims to avoid.
  • Metric Limitations: As mentioned, standard metrics like BLEU and ROUGE-L may not be ideal for evaluating ZSC. The paper suggests that metrics incorporating synonym matching (like METEOR and SPICE) are more informative.
  • Future Work: The paper implicitly suggests future work could focus on improving the ZSD component to further close the gap with supervised detectors and exploring more robust evaluation metrics for ZSC. They also highlight the need for more research into semantically scalable captioning methods and realistic evaluations for ZSC.

Summary updated

Abstract

Image caption generation is a long standing and challenging problem at the intersection of computer vision and natural language processing. A number of recently proposed approaches utilize a fully supervised object recognition model within the captioning approach. Such models, however, tend to generate sentences which only consist of objects predicted by the recognition models, excluding instances of the classes without labelled training examples. In this paper, we propose a new challenging scenario that targets the image captioning problem in a fully zero-shot learning setting, where the goal is to be able to generate captions of test images containing objects that are not seen during training. The proposed approach jointly uses a novel zero-shot object detection model and a template-based sentence generator. Our experiments show promising results on the COCO dataset.
BibTeX
@inproceedings{demirel2019image,
  author = {Berkan Demirel and Ramazan Gokberk Cinbis and Nazli Ikizler-Cinbis},
  title = {{Image Captioning with Unseen Objects}},
  booktitle = {BMVC},
  year = {2019},
  url = {https://openreview.net/forum?id=whiQnmYCjsy},
}
Figure