With a Little Help from your own Past: Prototypical Memory Networks for Image Captioning

Manuele Barraco, Sara Sarto, Marcella Cornia, L. Baraldi, R. Cucchiara
8/1/2023

No official code found. Best implementation: aimagelab/PMA-Net (19 stars, BSD-3-Clause, last commit 2024-06-07).

Abstract

Image captioning, like many tasks involving vision and language, currently relies on Transformer-based architectures for extracting the semantics in an image and translating it into linguistically coherent descriptions. Although successful, the attention operator only considers a weighted summation of projections of the current input sample, therefore ignoring the relevant semantic information which can come from the joint observation of other samples. In this paper, we devise a network which can perform attention over activations obtained while processing other training samples, through a prototypical memory model. Our memory models the distribution of past keys and values through the definition of prototype vectors which are both discriminative and compact. Experimentally, we assess the performance of the proposed model on the COCO dataset, in comparison with carefully designed baselines and state-of-the-art approaches, and by investigating the role of each of the proposed components. We demonstrate that our proposal can increase the performance of an encoder-decoder Transformer by 3.7 CIDEr points both when training in cross-entropy only and when fine-tuning with self-critical sequence training. Source code and trained models are available at: https://github.com/aimagelab/PMA-Net.

View on arXivView PDF

Code Implementations(1)

aimagelab/PMA-NetCommunity100%
BSD-3-Clause

[ICCV 2023] With a Little Help from your own Past: Prototypical Memory Networks for Image Captioning.

192PythonAug 3, 20232 years agoBSD-3-Clause
captioningcaptioning-imagesiccv2023image-captioningmemory-augmented-neural-networks+3 more

Similar Papers

Cite this paper

@article{barraco2023with,
  title  = {With a Little Help from your own Past: Prototypical Memory Networks for Image Captioning},
  author = {Manuele Barraco and Sara Sarto and Marcella Cornia and L. Baraldi and R. Cucchiara},
  year   = {2023},
  eprint = {2308.12383},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2308.12383},
  journal = {ICCV 2023 2023}
}

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

Discussion