NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unsupervised Image Captioning

Yang Feng, Lin Ma, Wei Liu, Jiebo Luo

Abstract

Traditional image captioning models rely heavily on large-scale datasets of images paired with human-written descriptions, which are expensive and labor-intensive to produce. This paper presents the first successful unsupervised image captioning framework that requires zero paired image-sentence examples. By leveraging an independent image set, a large text corpus, and a pre-trained visual concept detector, the proposed model achieves semantic alignment through adversarial training, visual concept distillation, and bi-directional reconstruction. Experimental results on the MSCOCO dataset demonstrate that the model can generate fluent and relevant descriptions, significantly outperforming previous "pivoting" baselines and marking a significant step toward generalizable vision-language models.

Introduction

Standard image captioning models are typically supervised, requiring massive datasets like MSCOCO where every image is paired with multiple human-written descriptions. These models often struggle to generalize to "in the wild" images containing objects or scenes absent from their training pairs. The fundamental challenge addressed here is: How can a model learn to describe an image if it has never seen an example of a caption paired with a picture?

Comparison of different image captioning training settings, from supervised (a) to the proposed unsupervised setting (f).

Bridging the gap between visual pixels and natural language without a "Rosetta Stone" requires a shift in paradigm. While previous attempts used unpaired data (c) or cross-modal pivoting (d), this work focuses on a purely unsupervised setting (f) where images and text come from entirely different sources.

Methodology

The proposed framework relies on three distinct sources of information: an image set, a large corpus of natural sentences, and a pre-trained visual concept detector. The approach integrates three key training objectives:

1. Adversarial Caption Generation

To ensure the model generates fluent, human-like sentences, a Generative Adversarial Network (GAN) setup is employed. A discriminator attempts to distinguish between sentences from the external text corpus and those generated by the model. The generator (the captioning model) learns to adopt the linguistic style of the corpus to "fool" the discriminator.

2. Visual Concept Distillation

To ensure captions are semantically relevant to the image, the model utilizes a pre-trained object detector. When the model generates a word matching an object detected in the image (e.g., "dog"), it receives a "concept reward." This process distills object-recognition knowledge into the language generation process.

The proposed unsupervised setting (f) utilizing an image set, a visual concept detector, and a text corpus.

3. Bi-directional Reconstruction

To enforce deep semantic alignment, both images and sentences are projected into a shared latent space. The model is trained to reconstruct an image's features from its generated caption and, conversely, to reconstruct a sentence from its latent representation. This ensures the generated text preserves the core visual information.

Crucially, the authors found that training from scratch is unstable. They developed an initialization pipeline where a "concept-to-sentence" model creates "pseudo-captions," providing a warm start for the unsupervised training process.

Experimental Setup

  • MSCOCO: Used for the image set (captions were excluded during training) and final evaluation.
  • Shutterstock Corpus: 2.3 million natural sentences crawled from Shutterstock served as the unpaired text corpus to teach linguistic style.
  • OpenImages: A large-scale detection dataset used to train the visual concept detector providing the concept rewards.

Key Results and Discussion

  • Performance Milestones: On the MSCOCO test split, the unsupervised model achieved a CIDEr score of 28.6. While lower than supervised state-of-the-art, it represents a massive leap for a model that never saw a training pair. In an "unpaired" setting (using COCO captions but not matched to images), the model achieved a CIDEr of 54.9, significantly outperforming the "Pivoting" baseline (17.7).
  • Qualitative Success: The model demonstrated an ability to recognize attributes beyond the detector's explicit labels. For instance, it correctly identified a "black and white cat" even when the detector only signaled "cat," suggesting successful latent space alignment of visual attributes.
  • Limitations: The model's descriptive power is bounded by the quality of the pre-trained detector. Additionally, linguistic mismatches between the training corpus (Shutterstock) and evaluation set (MSCOCO) can impact automated metrics despite caption accuracy.

Conclusion

This work proves that machines can learn to describe the visual world without explicit supervision. By combining adversarial training with cross-modal reconstruction and concept distillation, the model bridges the gap between vision and language. Future work will focus on expanding the detector's vocabulary and exploring human evaluations to better capture the plausibility of generated captions.

Summary updated

BibTeX
@inproceedings{feng2019unsupervised,
  author = {Yang Feng and Lin Ma and Wei Liu and Jiebo Luo},
  title = {{Unsupervised Image Captioning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00425},
}
Figure