A bilingual analysis of multi-head attention mechanism for image captioning based on morphosyntactic information
Open Access
- 17 January 2025
- journal article
- Published by Sociedade Brasileira de Computação in Journal of the Brazilian Computer Society
- Vol. 31 (1)
Abstract
Image Captioning is the task of describing the information conveyed by an image, i.e., its visual content in a natural language. Most of the current researches make use of the encoder-decoder architecture to create relations between images (the inputs) and text (the output). These relations are originated from the attention mechanisms, present on the Transformer model, and can be leveraged to understand how the image-text relationship is encoded during training and inference times. This work investigates the hypothesis that the attention mechanism behaves analogously for words that share morphosyntactic labels within texts. To this matter, the attention weights for each predicted word --- posed as the "focus" given in the image at each step --- are gathered, averaged and inspected; also, the analysis are performed taking into account one model trained with English captions and another trained with Portuguese captions, therefore comparing two languages with different morphological organization. Our results show that words with the same functioning in the sentence,e.g., being prone to similar inflections, usually have the same focal point in the image. Our work sheds light to the importance of linguistic studies for the vision-language area, reinforcing the benefits of including language-aware knowledge during training.Keywords
This publication has 40 references indexed in Scilit:
- A Survey on Automatic Image Captioning Approaches: Contemporary Trends and Future PerspectivesArchives of Computational Methods in Engineering, 2024
- From vision to text: A comprehensive review of natural image captioning in medical diagnosis and radiology report generationMedical Image Analysis, 2024
- NPoSC-A3: A novel part of speech clues-aware adaptive attention mechanism for image captioningEngineering Applications of Artificial Intelligence, 2024
- A comprehensive survey on image captioning: from handcrafted to deep learning-based techniques, a taxonomy and open research issuesArtificial Intelligence Review, 2023
- Vision to Language: Methods, Metrics and Datasets2020
- Image Caption Generation with Part of Speech GuidancePattern Recognition Letters, 2019
- Knowing When to Look: Adaptive Attention via a Visual Sentinel for Image Captioning2017
- Show and tell: A neural image caption generator2015
- Every Picture Tells a Story: Generating Sentences from Images2010
- The Symbiotics of Semiotics and Visual CommunicationJournal of Visual Literacy, 2002