arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.09876cs.CVcs.CL
收藏

边界框定与填充:一种快速灵活的图像描述生成框架

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

Nanjing University(南京大学);University of Glasgow(格拉斯哥大学)

Zheng Ma, Changxin Wang, Bo Huang, Zixuan Zhu, Jianbing Zhang

AI总结:

提出BoFiCap框架,利用边界框定与填充技术,在非自回归和半自回归方式下实现快速灵活的图像描述生成,在MS-COCO上达到最先进性能并显著加速。

摘要:

大多数采用自回归方式的图像描述模型存在显著的推理延迟。一些模型采用非自回归方式来加速过程。然而,原始的非自回归方式由于同时生成所有词,无法捕捉描述中词与词之间的关系,导致性能欠佳。半自回归方式采用部分并行的方法来保持性能,但牺牲了推理速度。在本文中,我们提出了一种基于边界框定与填充技术的快速灵活的图像描述框架,称为BoFiCap。BoFiCap模型利用图像描述任务的内在特性,为图像区域及其关系预定义边界框。随后,BoFiCap模型使用两种生成方式在每个框中填充相应的词。利用框的提示,我们的填充过程使每个词能够更好地感知其他词。此外,我们的模型提供灵活的图像描述生成:1) 根据速度或性能要求采用不同的生成方式;2) 根据用户指定的框生成不同的句子。在MS-COCO基准数据集上的实验评估表明,我们的框架在非自回归方式下,在任务特定指标CIDEr上达到了最先进水平(125.6),同时比采用自回归方式的基线模型加速9.22倍;在半自回归方式下,我们的方法在CIDEr上达到128.4,同时加速3.69倍。我们的代码和数据可在https://github.com/ChangxinWang/BoFiCap获取。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑