Skip to main content
QUICK REVIEW

[Paper Review] DiffCap: Exploring Continuous Diffusion on Image Captioning

Yufeng He, Zefan Cai|arXiv (Cornell University)|May 20, 2023
Multimodal Machine Learning ApplicationsComputer Science3 citations
TL;DR

DiffCap proposes a non-autoregressive image captioning method using continuous diffusion on discrete text tokens by projecting tokens to continuous latent space and employing KNN for discrete reconstruction. It achieves state-of-the-art diversity—demonstrated by 46.61 Inter-Distinct unigram score—while matching performance of prior non-autoregressive models with a simpler architecture, marking the first application of continuous diffusion to image captioning.

ABSTRACT

Current image captioning works usually focus on generating descriptions in an autoregressive manner. However, there are limited works that focus on generating descriptions non-autoregressively, which brings more decoding diversity. Inspired by the success of diffusion models on generating natural-looking images, we propose a novel method DiffCap to apply continuous diffusions on image captioning. Unlike image generation where the output is fixed-size and continuous, image description length varies with discrete tokens. Our method transforms discrete tokens in a natural way and applies continuous diffusion on them to successfully fuse extracted image features for diffusion caption generation. Our experiments on COCO dataset demonstrate that our method uses a much simpler structure to achieve comparable results to the previous non-autoregressive works. Apart from quality, an intriguing property of DiffCap is its high diversity during generation, which is missing from many autoregressive models. We believe our method on fusing multimodal features in diffusion language generation will inspire more researches on multimodal language generation tasks for its simplicity and decoding flexibility.

Motivation & Objective

  • To address the lack of decoding diversity in autoregressive image captioning models.
  • To adapt continuous diffusion models—successful in image generation—to the discrete, variable-length nature of text generation in image captioning.
  • To enable effective fusion of visual features with diffusion-based language generation in a simple and flexible framework.
  • To explore the feasibility and performance of applying continuous diffusion to multimodal language generation tasks.
  • To establish a foundation for future research in multimodal diffusion language generation through simplicity and decoding flexibility.

Proposed method

  • The method projects discrete caption tokens into a continuous latent space using a learned embedding function, enabling application of continuous diffusion.
  • A denoising diffusion process is applied in the continuous latent space, where noise is gradually removed over time steps to generate refined text representations.
  • At inference, the model generates captions by reversing the diffusion process starting from random noise, producing continuous latent sequences.
  • Discrete tokens are recovered from the denoised continuous representations using a k-nearest neighbors (KNN) search to retrieve the most similar tokens from a predefined vocabulary.
  • Visual features from CLIP or ViT are fused with the latent caption representations via prefixing or element-wise addition to condition generation on image content.
  • The model uses a cosine beta scheduler to control noise schedule during diffusion, improving performance over linear or square root schedules.

Experimental results

Research questions

  • RQ1Can continuous diffusion models be successfully adapted to image captioning, a task with discrete, variable-length outputs?
  • RQ2How does the proposed method compare in generation quality and diversity to autoregressive and non-autoregressive baselines?
  • RQ3What is the impact of different visual feature fusion strategies (e.g., prefixing vs. element-wise addition) on captioning performance?
  • RQ4How does the choice of noise schedule (beta scheduler) affect the model’s generation quality and diversity?
  • RQ5To what extent does the model’s architecture enable high decoding diversity while maintaining competitive automatic metrics?

Key findings

  • DiffCap achieves a 46.61 Inter-Distinct unigram score on the COCO Karpathy test set, significantly outperforming VinVL (8.01) and BLIP (6.19), indicating substantially higher decoding diversity.
  • The model achieves a Self-Bleu score of 10.36 for 4-grams, indicating high diversity, compared to 100 for VinVL and BLIP, which exhibit near-identical outputs.
  • With a simpler architecture, DiffCap matches the performance of previous non-autoregressive models on COCO, achieving B@4 of 20.0, M of 16.9, and R of 39.6.
  • The cosine beta scheduler yields the best performance (B@4: 20.0), outperforming linear (18.9) and sqrt (19.5) schedules.
  • Fusing CLIP features via prefixing yields better results (B@4: 18.6) than element-wise addition (17.4), and CLIP outperforms ViT in feature quality.
  • Despite high diversity, the model occasionally generates grammatically incorrect or repetitive captions, a known limitation of non-autoregressive models.

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.