Semantic-Conditional Diffusion Networks for Image Captioning

Jianjie Luo, Yehao Li, Yingwei Pan, Ting Yao, Jianlin Feng +2 more
12/6/2022
144 citations
cs.CVcs.CLcs.MM
diffusion-flowtransformer-attention

Official code: YehLi/xmodaler (972 stars, Python, last commit 2023-02-27).

Abstract

Recent advances on text-to-image generation have witnessed the rise of diffusion models which act as powerful generative models. Nevertheless, it is not trivial to exploit such latent variable models to capture the dependency among discrete words and meanwhile pursue complex visual-language alignment in image captioning.

Show full abstract

In this paper, we break the deeply rooted conventions in learning Transformer-based encoder-decoder, and propose a new diffusion model based paradigm tailored for image captioning, namely Semantic-Conditional Diffusion Networks (SCD-Net). Technically, for each input image, we first search the semantically relevant sentences via cross-modal retrieval model to convey the comprehensive semantic information. The rich semantics are further regarded as semantic prior to trigger the learning of Diffusion Transformer, which produces the output sentence in a diffusion process. In SCD-Net, multiple Diffusion Transformer structures are stacked to progressively strengthen the output sentence with better visional-language alignment and linguistical coherence in a cascaded manner. Furthermore, to stabilize the diffusion process, a new self-critical sequence training strategy is designed to guide the learning of SCD-Net with the knowledge of a standard autoregressive Transformer model. Extensive experiments on COCO dataset demonstrate the promising potential of using diffusion models in the challenging image captioning task. Source code is available at \url{https://github.com/YehLi/xmodaler/tree/master/configs/image_caption/scdnet}.

View on arXivView PDF

Code Implementations(1)

YehLi/xmodalerOfficial100%

X-modaler is a versatile and high-performance codebase for cross-modal analytics(e.g., image captioning, video captioning, vision-language pre-training, visual question answering, visual commonsense reasoning, and cross-modal retrieval).

972104Python, ShellJun 25, 20213 years agoNOASSERTION
cross-modal-retrievalimage-captioningpretrainingtdenvideo-captioning+2 more

Similar Papers

Cite this paper

@article{luo2022semanticconditional,
  title  = {Semantic-Conditional Diffusion Networks for Image Captioning},
  author = {Jianjie Luo and Yehao Li and Yingwei Pan and Ting Yao and Jianlin Feng and Hongyang Chao and Tao Mei},
  year   = {2022},
  eprint = {2212.03099},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.03099}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.03099.svg)](https://codeofpaper.com/paper/2212.03099)

Discussion