Exploring Discrete Diffusion Models for Image Captioning

Zixin Zhu, Yixuan Wei, Jianfeng Wang, Zhe Gan, Zheng Zhang +5 more
11/21/2022
cs.CV
diffusion-flow

Official code: buxiangzhiren/DDCap (85 stars, Jupyter Notebook, MIT, last commit 2022-12-04).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT
8512Jupyter Notebook, PythonNov 21, 20223 years agoMIT

Similar Papers

Cite this paper

@article{zhu2022exploring,
  title  = {Exploring Discrete Diffusion Models for Image Captioning},
  author = {Zixin Zhu and Yixuan Wei and Jianfeng Wang and Zhe Gan and Zheng Zhang and Le Wang and Gang Hua and Lijuan Wang and Zicheng Liu and Han Hu},
  year   = {2022},
  eprint = {2211.11694},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.11694}
}

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/2211.11694.svg)](https://codeofpaper.com/paper/2211.11694)

Discussion