HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Chia-Wen Kuo Zsolt Kira

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

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

Code Repositories

GT-RIPL/Xmodal-Ctx
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-captioning-on-coco-captionsXmodal-Ctx + OSCAR
BLEU-4: 41.3
CIDER: 142.2
SPICE: 24.9
image-captioning-on-coco-captionsXmodal-Ctx
BLEU-1: 83.4
BLEU-4: 41.4
CIDER: 139.9
METEOR: 30.4
ROUGE-L: 60.4
SPICE: 24.0
image-captioning-on-coco-captionsXmodal-Ctx
BLEU-1: 81.5
BLEU-4: 39.7
CIDER: 135.9
METEOR: 30.0
ROUGE-L: 59.5
SPICE: 23.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp