Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

SmallCap: Lightweight Image Captioning Prompted with Retrieval Augmentation

About

Recent advances in image captioning have focused on scaling the data and model size, substantially increasing the cost of pre-training and finetuning. As an alternative to large models, we present SmallCap, which generates a caption conditioned on an input image and related captions retrieved from a datastore. Our model is lightweight and fast to train, as the only learned parameters are in newly introduced cross-attention layers between a pre-trained CLIP encoder and GPT-2 decoder. SmallCap can transfer to new domains without additional finetuning and can exploit large-scale data in a training-free fashion since the contents of the datastore can be readily replaced. Our experiments show that SmallCap, trained only on COCO, has competitive performance on this benchmark, and also transfers to other domains without retraining, solely through retrieval from target-domain data. Further improvement is achieved through the training-free exploitation of diverse human-labeled and web data, which proves to be effective for a range of domains, including the nocaps benchmark, designed to test generalization to unseen visual concepts.

Rita Ramos, Bruno Martins, Desmond Elliott, Yova Kementchedjhieva• 2022

Related benchmarks

TaskDatasetResultRank
Image CaptioningMS COCO Karpathy (test)
CIDEr121.8
682
Video CaptioningMSR-VTT (test)
CIDEr28.4
121
Image CaptioningFlickr30k (test)
CIDEr60.6
103
Image Captioningnocaps (val)
CIDEr (Overall)87.5
93
Image CaptioningNoCaps (test)
CIDEr (overall)85
61
Image CaptioningNoCaps
CIDEr (in-domain)94.2
36
Image CaptioningCOCO (test)
CIDEr119.7
15
Image CaptioningVizWiz (test)
CIDEr55
10
Image CaptioningCOCO 2014 (val)
CIDEr (top-k)120.1
9
Image CaptioningVizWiz
CIDEr35.5
9
Showing 10 of 14 rows

Other info

Code

Follow for update