Length-Controllable Image Captioning

Chaorui Deng, Ning Ding, Mingkui Tan, Qi Wu
7/19/2020
cs.CVcs.CLcs.LG

Official code: bearcatt/LaBERT (69 stars, Python, last commit 2021-06-10).

Abstract

The last decade has witnessed remarkable progress in the image captioning task; however, most existing methods cannot control their captions, \emph{e.g.}, choosing to describe the image either roughly or in detail. In this paper, we propose to use a simple length level embedding to endow them with this ability.

Show full abstract

Moreover, due to their autoregressive nature, the computational complexity of existing models increases linearly as the length of the generated captions grows. Thus, we further devise a non-autoregressive image captioning approach that can generate captions in a length-irrelevant complexity. We verify the merit of the proposed length level embedding on three models: two state-of-the-art (SOTA) autoregressive models with different types of decoder, as well as our proposed non-autoregressive model, to show its generalization ability. In the experiments, our length-controllable image captioning models not only achieve SOTA performance on the challenging MS COCO dataset but also generate length-controllable and diverse image captions. Specifically, our non-autoregressive model outperforms the autoregressive baselines in terms of controllability and diversity, and also significantly improves the decoding efficiency for long captions. Our code and models are released at \textcolor{magenta}{\texttt{https://github.com/bearcatt/LaBERT}}.

View on arXivView PDF

Code Implementations(1)

bearcatt/LaBERTOfficial100%

A length-controllable and non-autoregressive image captioning model.

6912PythonMar 7, 20205 years ago
controllable-image-captioningeccv2020image-captioningnon-autoregressive

Similar Papers

Cite this paper

@article{deng2020lengthcontrollable,
  title  = {Length-Controllable Image Captioning},
  author = {Chaorui Deng and Ning Ding and Mingkui Tan and Qi Wu},
  year   = {2020},
  eprint = {2007.09580},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.09580}
}

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

Discussion