arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.00437cs.CVcs.CLcs.LGcs.MM
收藏

释放文本到图像扩散先验以实现零样本图像描述生成

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

Sun Yat-sen University(中山大学);HiDream.ai Inc.(HiDream.ai公司)

Jianjie Luo, Jingwen Chen, Yehao Li, Yingwei Pan, Jianlin Feng, Hongyang Chao, Ting Yao

AI总结:

本文提出PCM-Net,通过逐块跨模态特征混合机制和CLIP加权交叉熵损失缓解合成图像-文本语义错位,在零样本图像描述生成中取得域内与跨域领先性能。

摘要:

近年来,零样本图像描述生成受到越来越多的关注,在该任务中训练阶段仅有文本数据可用。文本到图像扩散模型的显著进展为利用这一预训练先验生成的合成图像-文本对来解决该任务提供了可能。然而,合成图像显著区域中的缺陷细节会导致合成图像与文本之间出现语义错位,从而影响最终结果。为应对这一挑战,我们提出了一种新颖的逐块跨模态特征混合(Patch-wise Cross-modal feature Mix-up,PCM)机制,在训练过程中以细粒度方式自适应地缓解不忠实内容,该机制可集成到大多数编码器-解码器框架中,由此构建了我们的PCM-Net。具体而言,对于每张输入图像,首先结合CLIP空间中的图像-文本相似度检测图像中的显著视觉概念。接着,将输入图像的逐块视觉特征与显著视觉概念的文本特征进行选择性融合,从而得到缺陷内容更少的混合特征图。最后,利用一个视觉-语义编码器对所得特征图进行精化,并将其进一步输入到句子解码器中以生成描述。此外,为了促进模型利用合成数据进行训练,我们设计了一种新颖的CLIP加权交叉熵损失,以优先考虑高质量图像-文本对而非低质量对应项。在MSCOCO和Flickr30k数据集上的大量实验表明,与基于最先进视觉语言模型(VLMs)的方法相比,我们的PCM-Net具有优越性。值得注意的是,我们的PCM-Net在域内和跨域零样本图像描述生成中均排名第一。合成数据集SynthImgCap和代码可在https://jianjieluo.github.io/SynthImgCap获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑