Beyond a Pre-Trained Object Detector: Cross-Modal Textual and Visual Context for Image Captioning

Chia-Wen Kuo, Zsolt Kira
5/9/2022
cs.CVcs.AIcs.LG

Official code: GT-RIPL/Xmodal-Ctx (61 stars, Python, last commit 2022-10-21).

Abstract

Significant progress has been made on visual captioning, largely relying on pre-trained features and later fixed object detectors that serve as rich inputs to auto-regressive models. A key limitation of such methods, however, is that the output of the model is conditioned only on the object detector's outputs.

Show full abstract

The assumption that such outputs can represent all necessary information is unrealistic, especially when the detector is transferred across datasets. In this work, we reason about the graphical model induced by this assumption, and propose to add an auxiliary input to represent missing information such as object relationships. We specifically propose to mine attributes and relationships from the Visual Genome dataset and condition the captioning model on them. Crucially, we propose (and show to be important) the use of a multi-modal pre-trained model (CLIP) to retrieve such contextual descriptions. Further, object detector models are frozen and do not have sufficient richness to allow the captioning model to properly ground them. As a result, we propose to condition both the detector and description outputs on the image, and show qualitatively and quantitatively that this can improve grounding. We validate our method on image captioning, perform thorough analyses of each component and importance of the pre-trained multi-modal model, and demonstrate significant improvements over the current state of the art, specifically +7.5% in CIDEr and +1.3% in BLEU-4 metrics.

View on arXivView PDF

Code Implementations(1)

GT-RIPL/Xmodal-CtxOfficial100%

Official PyTorch implementation of our CVPR 2022 paper: Beyond a Pre-Trained Object Detector: Cross-Modal Textual and Visual Context for Image Captioning

6110PythonMay 9, 20224 years ago
clipcross-modalimage-captioningvision-and-language

Similar Papers

Cite this paper

@article{kuo2022beyond,
  title  = {Beyond a Pre-Trained Object Detector: Cross-Modal Textual and Visual Context for Image Captioning},
  author = {Chia-Wen Kuo and Zsolt Kira},
  year   = {2022},
  eprint = {2205.04363},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.04363}
}

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/2205.04363.svg)](https://codeofpaper.com/paper/2205.04363)

Discussion