Retrieval-Augmented Transformer for Image Captioning

Sara Sarto, Marcella Cornia, Lorenzo Baraldi, Rita Cucchiara
7/26/2022
cs.CVcs.AIcs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Image captioning models aim at connecting Vision and Language by providing natural language descriptions of input images. In the past few years, the task has been tackled by learning parametric models and proposing visual feature extraction advancements or by modeling better multi-modal connections. In this paper, we investigate the development of an image captioning approach with a kNN memory, with which knowledge can be retrieved from an external corpus to aid the generation process. Our architecture combines a knowledge retriever based on visual similarities, a differentiable encoder, and a kNN-augmented attention layer to predict tokens based on the past context and on text retrieved from the external memory. Experimental results, conducted on the COCO dataset, demonstrate that employing an explicit external memory can aid the generation process and increase caption quality. Our work opens up new avenues for improving image captioning models at larger scale.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{sarto2022retrievalaugmented,
  title  = {Retrieval-Augmented Transformer for Image Captioning},
  author = {Sara Sarto and Marcella Cornia and Lorenzo Baraldi and Rita Cucchiara},
  year   = {2022},
  eprint = {2207.13162},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.13162v2}
}

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

Discussion