Skip to main content
QUICK REVIEW

[Paper Review] Exploring Discrete Diffusion Models for Image Captioning

Zixin Zhu, Yixuan Wei|arXiv (Cornell University)|Nov 21, 2022
Multimodal Machine Learning ApplicationsComputer Science12 citations
TL;DR

This paper introduces DDCap, a discrete diffusion model for image captioning that addresses the limitations of auto-regressive methods by incorporating length prediction, concentrated attention masking, best-first inference, and image-free training. It achieves a SOTA CIDEr score of 125.1 on COCO without CIDEr optimization, outperforming auto-regressive baselines by +26.8 in a caption infilling task and demonstrating strong generalization and holistic context modeling capabilities.

ABSTRACT

The image captioning task is typically realized by an auto-regressive method that decodes the text tokens one by one. We present a diffusion-based captioning model, dubbed the name DDCap, to allow more decoding flexibility. Unlike image generation, where the output is continuous and redundant with a fixed length, texts in image captions are categorical and short with varied lengths. Therefore, naively applying the discrete diffusion model to text decoding does not work well, as shown in our experiments. To address the performance gap, we propose several key techniques including best-first inference, concentrated attention mask, text length prediction, and image-free training. On COCO without additional caption pre-training, it achieves a CIDEr score of 117.8, which is +5.0 higher than the auto-regressive baseline with the same architecture in the controlled setting. It also performs +26.8 higher CIDEr score than the auto-regressive baseline (230.3 v.s.203.5) on a caption infilling task. With 4M vision-language pre-training images and the base-sized model, we reach a CIDEr score of 125.1 on COCO, which is competitive to the best well-developed auto-regressive frameworks. The code is available at https://github.com/buxiangzhiren/DDCap.

Motivation & Objective

  • To explore the feasibility of applying discrete diffusion models to image captioning, where text generation is categorical, short, and variable in length.
  • To address the performance gap between discrete diffusion models and auto-regressive models in text generation, especially in image captioning.
  • To design novel components that adapt diffusion modeling to the unique characteristics of natural language, such as variable length and discrete token space.
  • To evaluate the model’s robustness and flexibility through a caption infilling task, highlighting advantages in context modeling and error resilience.

Proposed method

  • A length prediction head is introduced to estimate the total number of tokens in the caption, enabling flexible handling of variable-length outputs.
  • A concentrated attention mask dynamically focuses on informative tokens by suppressing attention to noisy or less relevant tokens during diffusion steps.
  • Best-first inference selectively fixes the top-K most confident tokens at each step, preventing previously correct tokens from being corrupted by noise in later steps.
  • Image-free training is employed to learn text prior knowledge by masking image conditions during pre-training, balancing prior and image-conditioned generation.
  • The model is pre-trained on 4M image-text pairs using a CLIP image encoder, with all components jointly optimized in a diffusion framework.
  • Inference uses a denoising process that iteratively refines the caption, starting with masked tokens and progressively recovering them in a non-autoregressive, context-aware manner.

Experimental results

Research questions

  • RQ1Can discrete diffusion models effectively generate accurate, coherent image captions despite the discrete and variable-length nature of text?
  • RQ2How do key architectural components like length prediction and concentrated attention improve performance in text-based diffusion models?
  • RQ3Does best-first inference reduce error accumulation compared to standard autoregressive or full-denoising approaches in captioning?
  • RQ4To what extent does image-free pre-training enhance the model’s ability to generate semantically grounded captions without relying solely on image signals?
  • RQ5Can the non-autoregressive, flexible generation order of diffusion models outperform autoregressive models in context-sensitive tasks like caption infilling?

Key findings

  • DDCap achieves a CIDEr score of 125.1 on the COCO dataset with 4M pre-training images, which is competitive with state-of-the-art auto-regressive models.
  • On a caption infilling task, DDCap outperforms the auto-regressive baseline by +26.8 CIDEr points (230.3 vs. 203.5), demonstrating superior context modeling and robustness.
  • The model achieves a CLIP score of 76.4 on the infilling task, slightly higher than the auto-regressive baseline (75.7), indicating better semantic alignment.
  • Ablation studies confirm that each proposed component—length prediction, concentrated attention, best-first inference, and image-free training—contributes significantly to performance.
  • Qualitative analysis shows that DDCap generates captions in a logical, object-first order (e.g., objects before relations), suggesting better structural understanding.
  • Despite improvements, the model occasionally generates repeated words, which can be mitigated by post-processing or re-generation with updated length prediction.

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.