Adaptively Clustering Neighbor Elements for Image-Text Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Zihua, Yang, Xu, Zhang, Hanwang, Xu, Haiyang, Yan, Ming, Huang, Fei, Zhang, Yu
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908491151572992
author Wang, Zihua
Yang, Xu
Zhang, Hanwang
Xu, Haiyang
Yan, Ming
Huang, Fei
Zhang, Yu
author_facet Wang, Zihua
Yang, Xu
Zhang, Hanwang
Xu, Haiyang
Yan, Ming
Huang, Fei
Zhang, Yu
contents 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]}.
format Preprint
id arxiv_https___arxiv_org_abs_2301_01955
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Adaptively Clustering Neighbor Elements for Image-Text Generation
Wang, Zihua
Yang, Xu
Zhang, Hanwang
Xu, Haiyang
Yan, Ming
Huang, Fei
Zhang, Yu
Computer Vision and Pattern Recognition
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]}.
title Adaptively Clustering Neighbor Elements for Image-Text Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2301.01955