Towards Unsupervised Image Captioning with Shared Multimodal Embeddings

Iro Laina, Christian Rupprecht, Nassir Navab · DOI

Abstract

This paper introduces a novel framework for image captioning that requires zero paired image-caption data for training. By creating a shared, semantically structured latent space where image features and text embeddings are indistinguishable, the model learns to "translate" visual scenes into natural language using only independent collections of images and text. The approach achieves state-of-the-art results on unsupervised benchmarks, demonstrating the power of visually-aware language representations.

Introduction

Traditional image captioning models are typically "data hungry," requiring massive datasets of images paired with human-written descriptions, such as MS COCO. Collecting these pairs is expensive, time-consuming, and often results in biased or repetitive language. The challenge addressed here is unsupervised image captioning: teaching a machine to describe a scene without ever seeing an example of a "correct" caption for a specific image.

The core difficulty lies in domain alignment—mapping high-level visual features (pixels) to linguistic structures (words and grammar) without a "Rosetta Stone" of paired data to guide the way. The authors propose bridging this gap by aligning the image domain and language domain through a shared embedding space.

Overview of the unsupervised image captioning framework, showing the alignment between visual concepts and language domain co-occurrences through a shared embedding space.

Methods

The proposed architecture utilizes a multi-stage pipeline to align vision and language domains without direct supervision:

  1. Visually-Structured Language Model: First, a language model (encoder-decoder) is trained on a large text corpus. A triplet loss is employed to ensure the embedding space is semantically organized. Sentences describing similar visual concepts (e.g., "a lady walking" and "a woman strolling") are pushed closer together in this space, making the latent representation "visually aware."
  2. Weak Alignment via Object Detection: To connect images to this text space, the model uses an off-the-shelf object detector to identify concepts in images. It then creates "weak pairs" by matching images with sentences from the text corpus that contain the same detected objects.
  3. Adversarial Domain Mapping: A "translator" (a simple MLP) maps image features into the pre-trained text embedding space. To handle noise in the weak assignments, the authors use a Robust Alignment Loss (which selects the best match from a subset) and a Conditional Discriminator. This discriminator forces translated image features to mimic real sentence embeddings while remaining consistent with the objects present in the image.
Detailed architecture of the proposed model, illustrating the two-stage training process: (1) Language Model training with joint embedding space and (2) Domain Alignment using a CNN, translator, and discriminator.

Datasets and Evaluation

The researchers evaluated their approach using several standard and large-scale datasets to test robustness and generalization:

  • MS COCO: Used for the "unpaired" setting and as a primary benchmark.
  • Flickr30k: Used to test generalization across different image sources.
  • Google Conceptual Captions (GCC): A massive, noisy dataset used as an independent source of natural language.
  • VQA-v2: Used to demonstrate that the model can learn different "styles," such as asking questions instead of providing descriptions.
  • OpenImages: Provided labels for the pre-trained object detector.

Key Insights

  • Visually Aware Latent Space: The most critical innovation is forcing the language model's internal representation to cluster based on visual concepts. This makes it significantly easier for a visual model to "plug in" to the language system during the alignment phase.
  • Inference Beyond Labels: The model can describe concepts that the object detector does not explicitly recognize. Because the language model understands co-occurrence (e.g., "boats" often appear with "water"), the system can infer the presence of "water" in a scene even if the detector only identified a "boat."
  • Robustness to Noise: The initial matching between images and text is inherently messy. The use of a "min-loss" (selecting the best candidate from a pool) allows the model to ignore nonsensical weak pairings and focus on the most plausible semantic links.

Results

The proposed model sets a new state-of-the-art for unsupervised captioning. Quantitatively, on the MS COCO benchmark (unpaired), the model achieved a BLEU-4 score of 19.3 and a CIDEr score of 61.8, significantly outperforming previous unsupervised methods (which scored 18.6 and 54.9, respectively).

Qualitatively, the model generates grammatically correct and semantically relevant captions. When trained on the VQA dataset, it successfully shifted its output style from descriptive ("A man riding a bike") to inquisitive ("Is the man riding a bike?"). t-SNE visualizations further confirm that image and text features become well-mixed in the shared space, proving the success of the modality-agnostic representation.

Limitations and Future Work

Despite these advancements, the authors identify several hurdles. The method relies heavily on concept overlap; if the text corpus and image set describe entirely different worlds (e.g., deep-sea creatures vs. desert survival), alignment will fail. Additionally, like many generative models, it can default to generic captions (e.g., "a person on a street") rather than capturing unique details. Future work may involve incorporating attention mechanisms or template-based approaches to handle more complex, novel compositions of objects.

Summary updated

BibTeX
@inproceedings{laina2019towards,
  author = {Iro Laina and Christian Rupprecht and Nassir Navab},
  title = {{Towards Unsupervised Image Captioning with Shared Multimodal Embeddings}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00751},
}
Figure