Semi-Autoregressive Transformer for Image Captioning

Yuanen Zhou, Yong Zhang, Zhenzhen Hu, Meng Wang
6/17/2021
cs.CV
transformer-attention

Official code: YuanEZhou/satic (26 stars, Python, last commit 2021-06-25).

Abstract

Current state-of-the-art image captioning models adopt autoregressive decoders, \ie they generate each word by conditioning on previously generated words, which leads to heavy latency during inference. To tackle this issue, non-autoregressive image captioning models have recently been proposed to significantly accelerate the speed of inference by generating all words in parallel.

Show full abstract

However, these non-autoregressive models inevitably suffer from large generation quality degradation since they remove words dependence excessively. To make a better trade-off between speed and quality, we introduce a semi-autoregressive model for image captioning~(dubbed as SATIC), which keeps the autoregressive property in global but generates words parallelly in local . Based on Transformer, there are only a few modifications needed to implement SATIC. Experimental results on the MSCOCO image captioning benchmark show that SATIC can achieve a good trade-off without bells and whistles. Code is available at {\color{magenta}\url{https://github.com/YuanEZhou/satic}}.

View on arXivView PDF

Code Implementations(1)

YuanEZhou/saticOfficial100%
262Python, Jupyter NotebookJun 15, 20215 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhou2021semiautoregressive,
  title  = {Semi-Autoregressive Transformer for Image Captioning},
  author = {Yuanen Zhou and Yong Zhang and Zhenzhen Hu and Meng Wang},
  year   = {2021},
  eprint = {2106.09436},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.09436}
}

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

Discussion