CapEnrich:通过跨模态预训练知识丰富Web图像的标题语义
CapEnrich: Enriching Caption Semantics for Web Images via Cross-modal Pre-trained Knowledge
摘要:
为Web上的大量未标记图像自动生成文本描述可以极大地有益于现实的Web应用,例如多模式检索和推荐。然而,现有的模型遭受的问题,产生“过度通用”的描述,如他们的倾向,以产生重复的句子与不同的图像的共同概念。这些通用的描述无法为不断变化的Web图像提供足够的文本语义。受视觉语言预训练(VLP)模型最近成功的启发,该模型在预训练期间学习不同的图像-文本概念对齐,我们探索利用其跨模态预训练知识来自动丰富图像描述的文本语义。由于不需要额外的人类注释,我们提出了一个即插即用的框架,即CapEnrich,以补充更多的语义细节的通用图像描述。具体来说,我们首先提出了一种自动数据构建策略来获得所需的训练句子,然后在此基础上采用提示策略,即可学习和模板提示,以激励VLP模型生成更多的文本细节。对于可学习的模板,我们固定整个VLP模型,只调整提示向量,这导致两个优点:1)VLP模型的预训练知识可以尽可能多地保留以描述不同的视觉概念; 2)仅需要轻量级的可训练参数,因此对低数据资源友好。大量的实验表明,我们的方法显着提高了Web图像生成的句子的连续性和多样性。该代码可在https://github.com/yaolinli/CapEnrich上获得。
英文摘要:
Automatically generating textual descriptions for massive unlabeled images on the web can greatly benefit realistic web applications, e.g. multimodal retrieval and recommendation. However, existing models suffer from the problem of generating ``over-generic'' descriptions, such as their tendency to generate repetitive sentences with common concepts for different images. These generic descriptions fail to provide sufficient textual semantics for ever-changing web images. Inspired by the recent success of Vision-Language Pre-training (VLP) models that learn diverse image-text concept alignment during pretraining, we explore leveraging their cross-modal pre-trained knowledge to automatically enrich the textual semantics of image descriptions. With no need for additional human annotations, we propose a plug-and-play framework, i.e CapEnrich, to complement the generic image descriptions with more semantic details. Specifically, we first propose an automatic data-building strategy to get desired training sentences, based on which we then adopt prompting strategies, i.e. learnable and template prompts, to incentivize VLP models to generate more textual details. For learnable templates, we fix the whole VLP model and only tune the prompt vectors, which leads to two advantages: 1) the pre-training knowledge of VLP models can be reserved as much as possible to describe diverse visual concepts; 2) only lightweight trainable parameters are required, so it is friendly to low data resources. Extensive experiments show that our method significantly improves the descriptiveness and diversity of generated sentences for web images. The code is available at https://github.com/yaolinli/CapEnrich.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。