Litcius/Paper detail

ArCo: Attention-reinforced transformer with contrastive learning for image captioning

Zhongan Wang, Shuai Shi, Zirong Zhai, Yingna Wu, Rui Yang

2022Image and Vision Computing17 citationsDOIOpen Access PDF

Abstract

Image captioning is a significant step toward achieving automatic interactions between humans and computers, in which a textual sequence of the content of an image is generated. Recently, the transformer-based encoder–decoder paradigm has made great achievements in image captioning. This method is usually trained with a cross-entropy loss function. However, for various captions of images with the same meaning, the computed losses may be different. The result is that the descriptions of images tend to be consistent, which limits the diversity of image captioning. In this paper, we present an attention-reinforced transformer, a transformer-based architecture for image captioning. The architecture improves the image encoding stage, which exploits the relationships between image regions by integrating a feature attention block (FAB). During the training phase, we trained the model with a combination of cross-entropy loss and contrastive loss. We experimentally explored the performance of ArCo and other fully attentive models. We also validated the baseline of the transformer for image captioning with different pre-trained models. Our proposed approach was demonstrated to achieve a new state-of-the-art performance on the offline ‘Karpathy’ test split and online test server.

Topics & Concepts

Closed captioningTransformerComputer scienceArtificial intelligenceEncoderCross entropyImage (mathematics)Natural language processingSpeech recognitionPattern recognition (psychology)EngineeringVoltageElectrical engineeringOperating systemMultimodal Machine Learning ApplicationsAdvanced Image and Video Retrieval TechniquesDomain Adaptation and Few-Shot Learning
ArCo: Attention-reinforced transformer with contrastive learning for image captioning | Litcius