MultiCapCLIP: Auto-Encoding Prompts for Zero-Shot Multilingual Visual Captioning

Bang Yang, Fenglin Liu, Xian Wu, Yaowei Wang, Xu Sun, Yuexian Zou · DOI

Abstract

Supervised visual captioning models typically require a large scale of images or videos paired with descriptions in a specific language for training. However, collecting and labeling large-scale datasets is time-consuming and expensive for many scenarios and languages. To deal with the label shortage problem, we present MultiCapCLIP, a simple yet effective zero-shot approach that can generate visual captions for different scenarios and languages without any labeled vision-caption pairs. In the training stage, MultiCapCLIP only requires text data for input. It conducts two main steps: 1) retrieving concept prompts that preserve the corresponding domain knowledge; and 2) auto-encoding the prompts to learn writing styles to output captions in a desired language. In the testing stage, MultiCapCLIP takes visual data as input to retrieve concept prompts and generate final descriptions. Extensive experiments on image and video captioning across four benchmarks and four languages (English, Chinese, German, and French) confirm the effectiveness of our approach, achieving absolute improvements of 4.8% in BLEU@4 and 21.5% in CIDEr over state-of-the-art methods.

Introduction

Visual captioning—the task of generating natural language descriptions for images and videos—has traditionally relied on massive, human-annotated datasets. These datasets consist of vision-caption pairs that are expensive and time-consuming to produce. This "data hunger" creates a significant barrier for low-resource languages and specialized domains where paired data is scarce.

To address this, we introduce MultiCapCLIP, a framework designed for zero-shot, multilingual visual captioning. Unlike traditional models, MultiCapCLIP does not require a single image-text pair during training. Instead, it learns to describe visual content by training exclusively on text data, leveraging the shared embedding space of CLIP (Contrastive Language-Image Pre-training) to bridge the gap between modalities.

Methodology: The S → P → S Framework

The fundamental challenge in zero-shot captioning is teaching a model to generate descriptive sentences without showing it what those descriptions refer to visually. MultiCapCLIP solves this through a "Sentence to Prompts to Sentence" (S → P → S) pipeline. The architecture relies on a frozen CLIP backbone and a trainable Multilingual Language Model (MLM).

1. Concept Retrieval

The model first identifies a vocabulary of "visual concepts"—the 1,000 most frequent noun phrases (e.g., "young girl," "baseball bat") extracted from a text corpus. These concepts act as anchors that connect abstract visual features to concrete linguistic terms. These are embedded using CLIP’s text encoder to ensure they exist within the shared latent space.

2. Text-Only Training

During the training phase, the model operates entirely in the text domain. It takes a sentence ($S$), encodes it into a global feature using the frozen CLIP text encoder, and retrieves the top-$K$ most similar visual concepts ($P$) from its concept bank. The MLM is then trained to reconstruct the original sentence ($S$) using these retrieved concept prompts and the global feature. By doing this, the MLM learns the specific writing style and grammatical structure required for captions.

3. Zero-Shot Inference

The transition to visual input is made possible by CLIP’s dual-encoder architecture, which maps images and text into a shared latent space. During inference, the model is presented with an image or video ($V$). It uses the CLIP vision encoder to extract features, retrieves the relevant concept prompts, and passes them to the pre-trained MLM. Because the MLM was trained to turn CLIP-space features into captions, it can "reconstruct" a description for the image as if it were text.

Bridging the Modality Gap

While CLIP aligns images and text, a "modality gap" still exists—the distribution of image features is not perfectly identical to the distribution of text features. MultiCapCLIP employs two denoising strategies to make the model robust to this gap:

  • Input Augmentation (IA): Replacing words in the training text with semantically similar synonyms.
  • Feature Augmentation (FA): Adding Gaussian noise to the CLIP text features during training.

These techniques treat the modality gap as a form of noise, forcing the decoder to become resilient to variations. This ensures that the slight shift from text features to visual features during inference does not degrade performance.

Experimental Results

The researchers evaluated MultiCapCLIP across four major benchmarks: MS-COCO (image), MSR-VTT (video), VATEX (multilingual video), and Multi30K (multilingual image).

Performance Breakthroughs

MultiCapCLIP set a new state-of-the-art for zero-shot visual captioning. On the MS-COCO benchmark, the model achieved a BLEU@4 of 9.7 and a CIDEr score of 30.2 in out-of-domain settings, nearly doubling the performance of previous zero-shot methods like MAGIC. When trained on the text of the target dataset (in-domain), it reached a CIDEr of 96.2, a 21.5% absolute improvement over prior weakly-supervised competitors.

Multilingual Success

The model successfully generated captions in English, Chinese, German, and French. This confirms that the S → P → S approach is language-agnostic, provided a suitable multilingual language model is used. It allows the model to adapt to different linguistic structures without requiring translated image-text pairs.

Discussion and Future Work

The success of MultiCapCLIP highlights two critical insights. First, using discrete concepts as anchors provides the model with explicit semantic clues, which is more effective than mapping abstract vectors directly to syntax. Second, the auto-encoding strategy effectively captures the "style" of captioning using only text.

However, the model is currently dependent on the quality of the pre-trained CLIP model. Qualitative analysis also showed that the model occasionally retrieves "noisy" or irrelevant concepts, leading to hallucinations. Future directions include exploring more advanced vision-language models and incorporating more complex prompt types, such as verbs or relational attributes, to improve the richness of the generated descriptions.

Conclusion

MultiCapCLIP offers a scalable, effective solution to the label shortage problem in visual captioning. By training on text alone and leveraging cross-modal embeddings, it enables high-quality captioning across multiple languages and domains without the need for expensive manual annotation.

Summary updated

BibTeX
@inproceedings{yang2023multicapclip,
  author = {Bang Yang and Fenglin Liu and Xian Wu and Yaowei Wang and Xu Sun and Yuexian Zou},
  title = {{MultiCapCLIP: Auto-Encoding Prompts for Zero-Shot Multilingual Visual Captioning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.664},
}
Figure