arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.01955cs.CV
收藏

自适应聚类邻居元素用于图像-文本生成

Adaptively Clustering Neighbor Elements for Image-Text Generation

School of Computer Science and Engineering, Nanyang Technological University(计算机科学与工程学院,南洋理工大学);DAMO Academy, Alibaba Group(达摩院,阿里巴巴集团)

Zihua Wang, Xu Yang, Hanwang Zhang, Haiyang Xu, Ming Yan, Fei Huang, Yu Zhang

AI总结:

本文提出ACF模型,通过自适应聚类视觉图像块和语言单词,在Transformer中隐式学习层次化对象-短语对齐,在图像描述和视觉问答任务上优于大多数SOTA模型。

摘要:

我们提出了一种新颖的基于Transformer的图像到文本生成模型,称为ACF,该模型自适应地将视觉图像块聚类为对象区域,并将语言单词聚类为短语,以隐式学习对象-短语对齐,从而获得更好的视觉-文本一致性。为了实现这一目标,我们设计了一种新颖的自注意力层,该层在局部聚类窗口内的元素上应用自注意力,而不是在整个序列上应用。窗口大小由当前输入数据计算得到的聚类矩阵软性决定,因此该过程是自适应的。通过堆叠这些改进的自注意力层来构建ACF,较低层中的小聚类可以被分组为更大的聚类,例如视觉/语言。ACF将小对象/短语聚类为更大的对象/短语。在这个逐步聚类过程中,生成了一棵解析树,其中嵌入了输入序列的层次知识。因此,通过使用ACF构建视觉编码器和语言解码器,层次化的对象-短语对齐被嵌入,并在两个流行的图像到文本任务中从视觉领域转移到语言领域:图像描述和视觉问答。实验结果证明了ACF的有效性,它优于大多数最先进的图像描述和VQA模型,并且与一些大规模预训练模型相比取得了可比的分数。我们的代码可在https://github.com/ZihuaEvan/ACFModel/获取。

英文摘要:

We propose a novel Transformer-based image-to-text generation model termed as \textbf{ACF} that adaptively clusters vision patches into object regions and language words into phrases to implicitly learn object-phrase alignments for better visual-text coherence. To achieve this, we design a novel self-attention layer that applies self-attention over the elements in a local cluster window instead of the whole sequence. The window size is softly decided by a clustering matrix that is calculated by the current input data and thus this process is adaptive. By stacking these revised self-attention layers to construct ACF, the small clusters in the lower layers can be grouped into a bigger cluster, \eg vision/language. ACF clusters small objects/phrases into bigger ones. In this gradual clustering process, a parsing tree is generated which embeds the hierarchical knowledge of the input sequence. As a result, by using ACF to build the vision encoder and language decoder, the hierarchical object-phrase alignments are embedded and then transferred from vision to language domains in two popular image-to-text tasks: Image captioning and Visual Question Answering. The experiment results demonstrate the effectiveness of ACF, which outperforms most SOTA captioning and VQA models and achieves comparable scores compared with some large-scale pre-trained models. Our code is available \href{https://github.com/ZihuaEvan/ACFModel/}{[here]}.

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

↑