Recurrent Relational Memory Network for Unsupervised Image Captioning

Dan Guo, Yang Wang, Peipei Song, Meng Wang

Abstract

Unsupervised image captioning aims to generate descriptive sentences for images without paired training data. Traditional approaches often rely on Generative Adversarial Networks (GANs), which are notoriously unstable and computationally expensive. This paper introduces the Recurrent Relational Memory Network ($R^2M$), a stable memory-based architecture that treats captioning as a "concepts-to-sentence" translation task. By leveraging relational memory and a dual training strategy, $R^2M$ achieves state-of-the-art performance while reducing training time from 34 hours to just 35 minutes.

Introduction: The Challenge of Unsupervised Captioning

Supervised image captioning requires large-scale datasets of image-description pairs, which are costly to produce. Unsupervised methods attempt to bridge this gap by learning from independent image sets and text corpora. Previous state-of-the-art models utilized GANs, but these suffer from hyperparameter sensitivity, the need for complex reinforcement learning tricks, and difficulties in maintaining long-term sentence coherence.

Conceptual overview of the $R^2M$ framework mapping disjointed image and text sets through common visual concepts.

Methodology: The $R^2M$ Architecture

The $R^2M$ framework replaces adversarial training with a robust memory-based system consisting of three core components:

  1. Encoder: Utilizes a pre-trained Faster R-CNN and a "Visual Dictionary" to extract discrete visual concepts (e.g., "man", "motorcycle") from images.
  2. Decoder: The core innovation, featuring two memory types:
  3. Fusion Memory (FM): Employs multi-head self-attention to relate visual concepts to the current word generation state.
  4. Recurrent Memory (RM): Uses a relational gate to maintain long-range context, ensuring sentence coherence.
  5. Reconstructor: A feedback mechanism that attempts to reconstruct the original visual concepts from the generated sentence, ensuring semantic alignment.
The full $R^2M$ pipeline, showing the encoder-decoder-reconstructor architecture and the dual training objectives (SPL and UPL).

Training Strategy

The model is trained using a two-stage process:

  • Supervised Learning (SPL): Conducted on a text-only corpus to master grammar and sentence structure by converting word lists into coherent sentences.
  • Unsupervised Learning (UPL): Conducted on images using a triplet ranking loss to ensure generated captions are semantically aligned with the source image.

Evaluation and Results

The $R^2M$ model was benchmarked across several configurations, including MSCOCO, Flickr30k, and Google’s Conceptual Captions (GCC).

  • Superior Performance: $R^2M$ consistently outperformed GAN-based models (UC-GAN, SME-GAN) across metrics like BLEU, METEOR, and CIDEr. On the MSCOCO-to-GCC task, CIDEr scores improved from 22.7 to 29.3.
  • Efficiency: The model is approximately 60x faster to train than previous unsupervised methods, reducing training time from 34 hours to 35 minutes.
  • Interpretability: Attention visualizations confirm the model correctly prioritizes relevant visual concepts during the generation process.

Key Insights

  • Stability over Adversity: Memory networks provide a more stable and efficient alternative to GANs for cross-modal translation tasks.
  • Relational Reasoning: Explicitly modeling relationships between visual concepts leads to more logical and descriptive captions.
  • Concept Filtering: The network effectively ignores "noisy" or irrelevant visual tags that do not fit the broader semantic context.

Limitations and Future Work

While $R^2M$ represents a significant leap in efficiency and stability, it remains dependent on the quality of the pre-trained object detector and a fixed visual dictionary. Future research may explore end-to-end training from raw pixels or extending this relational memory architecture to video captioning and complex visual reasoning tasks.

Summary updated

BibTeX
@inproceedings{guo2020recurrent,
  author = {Dan Guo and Yang Wang and Peipei Song and Meng Wang},
  title = {{Recurrent Relational Memory Network for Unsupervised Image Captioning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/128},
}
Figure