[Paper Review] XGPT: Cross-modal Generative Pre-Training for Image Captioning
XGPT introduces a cross-modal generative pre-training framework for image captioning using three novel tasks—Image-conditioned Masked Language Modeling (IMLM), Image-conditioned Denoising Autoencoding (IDA), and Text-conditioned Image Feature Generation (TIFG)—to jointly pre-train a shared encoder-decoder architecture. The method achieves state-of-the-art performance on COCO and Flickr30k benchmarks and enables effective data augmentation for image retrieval.
While many BERT-based cross-modal pre-trained models produce excellent results on downstream understanding tasks like image-text retrieval and VQA, they cannot be applied to generation tasks directly. In this paper, we propose XGPT, a new method of Cross-modal Generative Pre-Training for Image Captioning that is designed to pre-train text-to-image caption generators through three novel generation tasks, including Image-conditioned Masked Language Modeling (IMLM), Image-conditioned Denoising Autoencoding (IDA), and Text-conditioned Image Feature Generation (TIFG). As a result, the pre-trained XGPT can be fine-tuned without any task-specific architecture modifications to create state-of-the-art models for image captioning. Experiments show that XGPT obtains new state-of-the-art results on the benchmark datasets, including COCO Captions and Flickr30k Captions. We also use XGPT to generate new image captions as data augmentation for the image retrieval task and achieve significant improvement on all recall metrics.
Motivation & Objective
- To address the gap in pre-training methods that are not directly applicable to vision-and-language generation tasks like image captioning.
- To design pre-training objectives that support end-to-end text generation from visual inputs, overcoming limitations of understanding-focused models.
- To enable effective knowledge transfer from pre-training to downstream generation tasks without architectural modifications.
- To explore the utility of XGPT as a data generator for vision-and-language understanding tasks, such as image retrieval.
- To provide ablation studies to analyze the contribution and interaction of each pre-training task and architectural choice.
Proposed method
- Proposes a unified cross-modal encoder-decoder architecture with parameter sharing between encoder and decoder, inspired by UniLM, to enhance cross-task knowledge transfer.
- Introduces Image-conditioned Masked Language Modeling (IMLM), where the model predicts masked tokens in a caption given an image context.
- Designs Image-conditioned Denoising Autoencoding (IDA), where corrupted text spans are reconstructed using image context, with optimal performance using a single [MASK] token.
- Develops Text-conditioned Image Feature Generation (TIFG), where the model generates image features conditioned on a text description, enabling bidirectional cross-modal learning.
- Employs a two-stage pre-training strategy—first on out-of-domain data (e.g., Conceptual Captions), then on in-domain data (e.g., COCO)—to improve domain adaptation.
- Uses autoregressive decoding to generate outputs across multiple objectives: words, full sentences, or image features, enabling flexible generation.
Experimental results
Research questions
- RQ1Can a unified pre-training framework effectively support both vision-to-language and language-to-vision generation tasks?
- RQ2How do the three proposed pre-training tasks—IMLM, IDA, and TIFG—contribute individually and collectively to image captioning performance?
- RQ3What masking strategy (single vs. multi [MASK]) maximizes the effectiveness of denoising autoencoding in cross-modal generation?
- RQ4Can XGPT-generated captions serve as high-quality data augmentation to improve vision-and-language understanding tasks like image retrieval?
- RQ5How does the combination of in-domain and out-of-domain pre-training affect downstream generation and retrieval performance?
Key findings
- XGPT achieves state-of-the-art performance on COCO Captions and Flickr30k, outperforming existing methods by a significant margin across all metrics including BLEU, ROUGE, and CIDEr.
- The combination of all three pre-training tasks (IMLM, IDA, TIFG) yields the highest performance, demonstrating their complementary nature and mutual benefit.
- Using a single [MASK] token for IDA outperforms multi-[MASK] masking by 0.3 CIDEr points, indicating that reduced positional information increases generation difficulty and model robustness.
- XGPT-generated captions significantly improve image retrieval performance: fine-tuning a SOTA retrieval model on augmented data yields +2.2% R@1, +1.5% R@5, and +0.4% R@10 gains.
- Generated captions are grammatically and semantically valid, with increased diversity in modifiers (e.g., color, clothing) and verbs (e.g., sleeping vs. hiding), enhancing data quality.
- Negative examples show that XGPT can generate incorrect attributes (e.g., wrong color) or duplicate phrases, indicating room for improvement in factual consistency and diversity control.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.