Skip to main content
QUICK REVIEW

[Paper Review] VisualGPT: Data-efficient Adaptation of Pretrained Language Models for Image Captioning

Jun Chen, Han Guo|arXiv (Cornell University)|Feb 20, 2021
Multimodal Machine Learning ApplicationsComputer Science76 references14 citations
TL;DR

VisualGPT proposes a data-efficient image captioning framework that fine-tunes a pretrained language model (PLM) decoder using a novel self-resurrecting encoder-decoder attention mechanism to balance visual and linguistic inputs. Trained on just 0.1% of MS COCO and 1% of Conceptual Captions, it achieves state-of-the-art performance, outperforming baselines by up to 10.0% CIDEr on MS COCO and 17.9% on Conceptual Captions, while also setting a new SOTA on the medical IU X-ray dataset.

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). 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.

Motivation & Objective

  • To address the challenge of limited annotated image caption data in real-world applications, especially in specialized domains like medical imaging.
  • To improve data efficiency in image captioning by leveraging pre-trained language models (PLMs) without requiring large-scale in-domain training data.
  • To bridge the domain gap between unimodal PLMs and multimodal image captioning by balancing visual features and linguistic priors.
  • To reduce catastrophic forgetting of pretrained linguistic knowledge during fine-tuning on small amounts of in-domain data.
  • To minimize object hallucination and improve factual consistency in generated captions using PLM priors.

Proposed method

  • VisualGPT initializes the caption decoder with weights from a pre-trained language model (e.g., GPT-2), preserving rich linguistic and semantic knowledge.
  • It introduces a self-resurrecting encoder-decoder attention mechanism that dynamically balances visual features from a CNN encoder and contextualized decoder hidden states.
  • The self-resurrecting activation unit (SRAU) uses an unsaturated rectified gating function to produce sparse activations and prevent gradient collapse, allowing gates to recover after being zeroed out.
  • The SRAU mechanism ensures that prior linguistic knowledge from the PLM is preserved during fine-tuning, even when visual signals are weak or sparse.
  • Visual features from multiple levels of the visual encoder are fused with decoder states through learnable attention weights modulated by the SRAU.
  • The model is fine-tuned end-to-end on small in-domain image-text pairs, with no need for additional pre-training or architectural redesign.

Experimental results

Research questions

  • RQ1Can a pre-trained language model be effectively adapted to image captioning with only a small fraction of in-domain training data?
  • RQ2How can the linguistic knowledge from a PLM be preserved during fine-tuning on multimodal data without catastrophic forgetting?
  • RQ3Does the proposed self-resurrecting attention mechanism improve the balance between visual and linguistic modality signals in low-data regimes?
  • RQ4To what extent does VisualGPT reduce object hallucination compared to baseline models in low-resource settings?
  • RQ5Can the model generalize to specialized domains like medical report generation with minimal data?

Key findings

  • On 0.1% of MS COCO, VisualGPT achieves a CIDEr score 10.0% higher than the best baseline, demonstrating strong data efficiency.
  • On 1% of Conceptual Captions, VisualGPT improves CIDEr by 17.9% over the strongest baseline, highlighting its effectiveness in low-resource settings.
  • VisualGPT sets a new state-of-the-art result on the IU X-ray medical report generation dataset, outperforming existing models.
  • Human evaluation shows that VisualGPT-generated captions are preferred by 39.2% of Turkers on the 0.1% split, with statistically significant preference (p < 0.05).
  • The model exhibits lower object hallucination and higher object coverage than baselines, with 250 sampled images showing improved factual consistency.
  • Visualization confirms that the SRAU mechanism assigns high visual attention to meaningful nouns (e.g., 'desk', 'snowy surface') and low attention to function words, aligning with human intuition.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.