Semantic-Conditional Diffusion Networks for Image Captioning*

Jianjie Luo, Yehao Li, Yingwei Pan, Ting Yao, Jianlin Feng, Hongyang Chao, Tao Mei

2023 · 111 citations · 46 references

Concepts

TL;DR

Diffusion models have become powerful generative models in text‑to‑image synthesis, yet leveraging them for image captioning remains difficult due to the need to model word dependencies and achieve strong visual‑language alignment. This work introduces Semantic‑Conditional Diffusion Networks (SCD‑Net), a diffusion‑based framework that departs from conventional Transformer encoder‑decoders for image captioning. SCD‑Net first retrieves semantically relevant sentences for an image, uses them as priors to drive a cascaded Diffusion Transformer that progressively refines captions, and employs a self‑critical sequence training strategy to stabilize the diffusion process. Experiments on the COCO dataset demonstrate that SCD‑Net achieves competitive captioning performance, highlighting the promise of diffusion models for this task. Source code is available at the authors’ repository.

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. 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

References

46