VisualGPT: Data-efficient Adaptation of Pretrained Language Models for Image Captioning

Jun Chen, Han Guo, Kai Yi, Boyang Li, Mohamed Elhoseiny
2/20/2021
cs.CVcs.AIcs.CL

Official code: Vision-CAIR/VisualGPT (340 stars, Python, MIT, last commit 2023-05-16).

Abstract

The ability to quickly learn from a small quantity oftraining data widens the range of machine learning applications. In this paper, we propose a data-efficient image captioning model, VisualGPT, which leverages the linguistic knowledge from a large pretrained language model(LM).

Show full abstract

A crucial challenge is to balance between the use of visual information in the image and prior linguistic knowledge acquired from pretraining. We designed a novel self-resurrecting encoder-decoder attention mechanism to quickly adapt the pretrained LM as the language decoder ona small amount of in-domain training data. The proposed self-resurrecting activation unit produces sparse activations but has reduced susceptibility to zero gradients. We train the proposed model, VisualGPT, on 0.1%, 0.5% and 1% of MSCOCO and Conceptual Captions training data. Under these conditions, we outperform the best baseline model by up to 10.8% CIDEr on MS COCO and upto 5.4% CIDEr on Conceptual Captions. Further, Visual-GPT achieves the state-of-the-art result on IU X-ray, a medical report generation dataset. To the best of our knowledge, this is the first work that improves data efficiency of image captioning by utilizing LM pretrained on unimodal data. Our code is available at: https://github.com/Vision-CAIR/VisualGPT.

View on arXivView PDF

Code Implementations(1)

MIT

VisualGPT, CVPR 2022 Proceeding, GPT as a decoder for vision-language models

34053PythonFeb 15, 20213 years agoMIT
data-efficient-image-captionimage-captionvisualgpt

Similar Papers

Cite this paper

@article{chen2021visualgpt,
  title  = {VisualGPT: Data-efficient Adaptation of Pretrained Language Models for Image Captioning},
  author = {Jun Chen and Han Guo and Kai Yi and Boyang Li and Mohamed Elhoseiny},
  year   = {2021},
  eprint = {2102.10407},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.10407}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.10407.svg)](https://codeofpaper.com/paper/2102.10407)

Discussion