Skip to main content
QUICK REVIEW

[Paper Review] Semantic-Conditional Diffusion Networks for Image Captioning

Jianjie Luo, Yehao Li|arXiv (Cornell University)|Dec 6, 2022
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper proposes Semantic-Conditional Diffusion Networks (SCD-Net), a non-autoregressive image captioning framework that leverages semantic priors from cross-modal retrieval to guide a diffusion process in a cascaded Transformer architecture. By integrating guided self-critical sequence training, SCD-Net achieves state-of-the-art performance on COCO, outperforming both non-autoregressive and competitive autoregressive methods with a CIDEr score of 131.7.

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 \url{https://github.com/YehLi/xmodaler/tree/master/configs/image_caption/scdnet}.

Motivation & Objective

  • Address the limitations of autoregressive and non-autoregressive image captioning models, particularly word repetition and omission issues.
  • Overcome the difficulty of applying self-critical sequence training (SCST) to non-autoregressive models due to low-quality generated sentences.
  • Improve visual-language alignment and linguistic coherence in diffusion-based image captioning by incorporating semantic priors from cross-modal retrieval.
  • Develop a scalable, non-autoregressive paradigm that leverages the parallel generation capability of diffusion models while maintaining high-quality outputs.

Proposed method

  • Use a cross-modal retrieval model to extract semantically relevant words from a large-scale caption corpus for each input image, serving as semantic priors.
  • Integrate these semantic priors into a continuous diffusion process to condition the reverse denoising steps of a Diffusion Transformer.
  • Stack multiple Diffusion Transformers in a cascaded manner to progressively refine the generated sentence with improved visual-language alignment.
  • Design a guided self-critical sequence training (GSCST) strategy that transfers knowledge from a pre-trained autoregressive Transformer teacher model via sentence-level rewards.
  • Train the diffusion model end-to-end using a combination of cross-entropy loss and reinforcement learning with GSCST to stabilize training and improve fluency.
  • Employ a Markov chain-based denoising process where each reverse step generates a more coherent and semantically aligned sentence from noise.

Experimental results

Research questions

  • RQ1Can a diffusion-based non-autoregressive framework achieve competitive performance in image captioning while avoiding the drawbacks of autoregressive models?
  • RQ2How can semantic priors from cross-modal retrieval improve visual-language alignment in diffusion-based captioning?
  • RQ3Can guided self-critical sequence training be effectively adapted to non-autoregressive diffusion models to improve sentence fluency and reduce repetition?
  • RQ4Does cascading multiple diffusion-based decoders enhance the quality and coherence of generated captions?
  • RQ5Can a diffusion model outperform a standard autoregressive Transformer with the same encoder-decoder architecture in image captioning?

Key findings

  • SCD-Net achieves a CIDEr score of 131.7 on the COCO Karpathy test split, outperforming the base diffusion model (114.5) and the strongest non-autoregressive baseline.
  • The addition of semantic priors (Semantic) improves performance over the base diffusion model, increasing CIDEr from 114.5 to 120.8.
  • Guided self-critical sequence training (GSCST) significantly boosts performance, raising CIDEr from 120.8 to 131.7 and improving all metrics including B@4, M, R, and S.
  • Cascading two Diffusion Transformers yields the best performance (CIDEr: 131.6), with marginal gains when increasing to three, indicating diminishing returns beyond two stages.
  • Using three Transformer blocks per Diffusion Transformer yields optimal performance, as deeper models (five or more blocks) lead to slight performance degradation due to overfitting or noise in context modeling.
  • SCD-Net outperforms competitive autoregressive models using the same Transformer encoder-decoder structure, demonstrating the potential of diffusion models in image captioning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.