nocaps: novel object captioning at scale

Harsh Agrawal, Peter Anderson, Karan Desai, Yufei Wang, Xinlei Chen, Rishabh Jain, Mark Johnson, Dhruv Batra, Devi Parikh, Stefan LeeICCV 2018 · DOI

Abstract

Image captioning models have achieved impressive results on datasets containing limited visual concepts and large amounts of paired image-caption training data. However, if these models are to ever function in the wild, a much larger variety of visual concepts must be learned, ideally from less supervision. To encourage the development of image captioning models that can learn visual concepts from alternative data sources, such as object detection datasets, we present the first large-scale benchmark for this task. Dubbed 'nocaps', for novel object captioning at scale, our benchmark consists of 166,100 human-generated captions describing 15,100 images from the OpenImages validation and test sets. The associated training data consists of COCO image-caption pairs, plus OpenImages image-level labels and object bounding boxes. Since OpenImages contains many more classes than COCO, nearly 400 object classes seen in test images have no or very few associated training captions (hence, nocaps). We extend existing novel object captioning models to establish strong baselines for this benchmark and provide analysis to guide future work on this task.

Introduction

Current image captioning models are largely constrained by the vocabulary of their training sets, most notably the COCO dataset, which features only 80 object categories. While performance on these categories is high, models often fail to describe "novel" objects—those not present in paired image-caption training data. Collecting human-annotated captions for every possible visual concept is unscalable. However, large-scale object detection datasets like Open Images provide a wealth of visual information through labels and bounding boxes. The "Novel Object Captioning" (NOC) task aims to leverage these detection datasets to enable models to describe objects they have never seen in a captioning context. The nocaps benchmark scales this challenge from previous small-scale efforts to nearly 400 novel classes.

Methodology

To establish baselines for the nocaps benchmark, several state-of-the-art approaches were evaluated and enhanced:

  • Up-Down Captioner: A baseline utilizing "bottom-up" attention mechanisms on object regions.
  • Neural Baby Talk (NBT): A template-based model that generates sentences with slots to be filled by an object detector.
  • Constrained Beam Search (CBS): An architecture-agnostic decoding strategy that enforces the inclusion of specific detected object labels in the output.
  • ELMo Integration: The inclusion of pretrained ELMo embeddings provides a richer linguistic context for novel words absent from the caption training set.
  • Constraint Filtering: To improve fluency, a "blacklist" of 39 classes (e.g., body parts) and a heuristic for resolving overlapping detections were implemented to prevent redundant or nonsensical outputs.

The nocaps Benchmark

Overview of the nocaps benchmark training and evaluation setup.

The nocaps benchmark is designed to test a model's ability to generalize to unseen visual concepts by combining traditional captioning data with large-scale detection data. The benchmark utilizes:

  • Training Data: COCO Captions (118k images, 80 classes) for language modeling and Open Images V4 (1.7M images, 600 classes) for visual object recognition.
  • Evaluation Data: 166,100 human-generated captions for 15,100 images from Open Images.
  • Domain Subsets: Evaluation is split into in-domain (COCO classes only), near-domain (mix of COCO and novel classes), and out-of-domain (novel classes only) to precisely measure generalization.

Analysis and Results

The authors' analysis reveals a significant gap between current AI capabilities and human performance. While models show improvement when using external knowledge, they struggle with the "Out-of-Domain Cliff."

  • Human vs. Model Performance: Humans achieve a CIDEr score of approximately 85.3 overall. The best baseline model (Up-Down + ELMo + CBS) reaches 73.1.
  • The Generalization Gap: While models perform reasonably well in the near-domain by anchoring sentences with familiar COCO objects, performance drops sharply in the out-of-domain subset (66.7 for the model vs. 91.6 for humans).
  • Vision vs. Language: Even with "Ground Truth" object detections, models lag behind humans, suggesting the primary bottleneck is the integration of new concepts into fluent, grammatical language rather than just visual recognition.

Conclusion and Future Work

The nocaps benchmark highlights that while AI is becoming proficient at identifying novel objects, describing them naturally remains a challenge. Current models often produce incoherent phrases when forced to include novel constraints and are heavily dependent on the accuracy of the underlying object detector. Future research should focus on better integration of large-scale external text corpora and more sophisticated methods for selecting and relating visual constraints to improve "in-the-wild" captioning.

Summary updated

BibTeX
@inproceedings{agrawal2018nocaps,
  author = {Harsh Agrawal and Peter Anderson and Karan Desai and Yufei Wang and Xinlei Chen and Rishabh Jain and Mark Johnson and Dhruv Batra and Devi Parikh and Stefan Lee},
  title = {{nocaps: novel object captioning at scale}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2018},
  doi = {10.1109/iccv.2019.00904},
}
Figure