Unleashing Text-to-Image Diffusion Prior for Zero-Shot Image Captioning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Luo, Jianjie, Chen, Jingwen, Li, Yehao, Pan, Yingwei, Feng, Jianlin, Chao, Hongyang, Yao, Ting
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917882143703040
author Luo, Jianjie
Chen, Jingwen
Li, Yehao
Pan, Yingwei
Feng, Jianlin
Chao, Hongyang
Yao, Ting
author_facet Luo, Jianjie
Chen, Jingwen
Li, Yehao
Pan, Yingwei
Feng, Jianlin
Chao, Hongyang
Yao, Ting
contents Recently, zero-shot image captioning has gained increasing attention, where only text data is available for training. The remarkable progress in text-to-image diffusion model presents the potential to resolve this task by employing synthetic image-caption pairs generated by this pre-trained prior. Nonetheless, the defective details in the salient regions of the synthetic images introduce semantic misalignment between the synthetic image and text, leading to compromised results. To address this challenge, we propose a novel Patch-wise Cross-modal feature Mix-up (PCM) mechanism to adaptively mitigate the unfaithful contents in a fine-grained manner during training, which can be integrated into most of encoder-decoder frameworks, introducing our PCM-Net. Specifically, for each input image, salient visual concepts in the image are first detected considering the image-text similarity in CLIP space. Next, the patch-wise visual features of the input image are selectively fused with the textual features of the salient visual concepts, leading to a mixed-up feature map with less defective content. Finally, a visual-semantic encoder is exploited to refine the derived feature map, which is further incorporated into the sentence decoder for caption generation. Additionally, to facilitate the model training with synthetic data, a novel CLIP-weighted cross-entropy loss is devised to prioritize the high-quality image-text pairs over the low-quality counterparts. Extensive experiments on MSCOCO and Flickr30k datasets demonstrate the superiority of our PCM-Net compared with state-of-the-art VLMs-based approaches. It is noteworthy that our PCM-Net ranks first in both in-domain and cross-domain zero-shot image captioning. The synthetic dataset SynthImgCap and code are available at https://jianjieluo.github.io/SynthImgCap.
format Preprint
id arxiv_https___arxiv_org_abs_2501_00437
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unleashing Text-to-Image Diffusion Prior for Zero-Shot Image Captioning
Luo, Jianjie
Chen, Jingwen
Li, Yehao
Pan, Yingwei
Feng, Jianlin
Chao, Hongyang
Yao, Ting
Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
Multimedia
Recently, zero-shot image captioning has gained increasing attention, where only text data is available for training. The remarkable progress in text-to-image diffusion model presents the potential to resolve this task by employing synthetic image-caption pairs generated by this pre-trained prior. Nonetheless, the defective details in the salient regions of the synthetic images introduce semantic misalignment between the synthetic image and text, leading to compromised results. To address this challenge, we propose a novel Patch-wise Cross-modal feature Mix-up (PCM) mechanism to adaptively mitigate the unfaithful contents in a fine-grained manner during training, which can be integrated into most of encoder-decoder frameworks, introducing our PCM-Net. Specifically, for each input image, salient visual concepts in the image are first detected considering the image-text similarity in CLIP space. Next, the patch-wise visual features of the input image are selectively fused with the textual features of the salient visual concepts, leading to a mixed-up feature map with less defective content. Finally, a visual-semantic encoder is exploited to refine the derived feature map, which is further incorporated into the sentence decoder for caption generation. Additionally, to facilitate the model training with synthetic data, a novel CLIP-weighted cross-entropy loss is devised to prioritize the high-quality image-text pairs over the low-quality counterparts. Extensive experiments on MSCOCO and Flickr30k datasets demonstrate the superiority of our PCM-Net compared with state-of-the-art VLMs-based approaches. It is noteworthy that our PCM-Net ranks first in both in-domain and cross-domain zero-shot image captioning. The synthetic dataset SynthImgCap and code are available at https://jianjieluo.github.io/SynthImgCap.
title Unleashing Text-to-Image Diffusion Prior for Zero-Shot Image Captioning
topic Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
Multimedia
url https://arxiv.org/abs/2501.00437