Bounding and Filling: A Fast and Flexible Framework for Image Captioning

Zheng Ma, Changxin Wang, Bo Huang, Zixuan Zhu, Jianbing Zhang
10/15/2023
4 citations
cs.CVcs.CL

Official code: ChangxinWang/BoFiCap (9 stars, Python, last commit 2024-04-25).

Abstract

Most image captioning models following an autoregressive manner suffer from significant inference latency. Several models adopted a non-autoregressive manner to speed up the process.

Show full abstract

However, the vanilla non-autoregressive manner results in subpar performance, since it generates all words simultaneously, which fails to capture the relationships between words in a description. The semi-autoregressive manner employs a partially parallel method to preserve performance, but it sacrifices inference speed. In this paper, we introduce a fast and flexible framework for image captioning called BoFiCap based on bounding and filling techniques. The BoFiCap model leverages the inherent characteristics of image captioning tasks to pre-define bounding boxes for image regions and their relationships. Subsequently, the BoFiCap model fills corresponding words in each box using two-generation manners. Leveraging the box hints, our filling process allows each word to better perceive other words. Additionally, our model offers flexible image description generation: 1) by employing different generation manners based on speed or performance requirements, 2) producing varied sentences based on user-specified boxes. Experimental evaluations on the MS-COCO benchmark dataset demonstrate that our framework in a non-autoregressive manner achieves the state-of-the-art on task-specific metric CIDEr (125.6) while speeding up 9.22x than the baseline model with an autoregressive manner; in a semi-autoregressive manner, our method reaches 128.4 on CIDEr while a 3.69x speedup. Our code and data is available at https://github.com/ChangxinWang/BoFiCap.

View on arXivView PDF

Code Implementations(1)

Bounding and Filling: A Fast and Flexible Framework for Image Captioning

92PythonAug 7, 20232 years ago

Similar Papers

Cite this paper

@article{ma2023bounding,
  title  = {Bounding and Filling: A Fast and Flexible Framework for Image Captioning},
  author = {Zheng Ma and Changxin Wang and Bo Huang and Zixuan Zhu and Jianbing Zhang},
  year   = {2023},
  eprint = {2310.09876},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.09876v1}
}

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

Discussion