Meshed-Memory Transformer for Image Captioning

Marcella Cornia, Matteo Stefanini, Lorenzo Baraldi, Rita Cucchiara
12/17/2019
cs.CVcs.CL

Official code: aimagelab/meshed-memory-transformer (547 stars, BSD-3-Clause, PyTorch, last commit 2022-12-21).

Abstract

Transformer-based architectures represent the state of the art in sequence modeling tasks like machine translation and language understanding. Their applicability to multi-modal contexts like image captioning, however, is still largely under-explored. With the aim of filling this gap, we present M$^2$ - a Meshed Transformer with Memory for Image Captioning. The architecture improves both the image encoding and the language generation steps: it learns a multi-level representation of the relationships between image regions integrating learned a priori knowledge, and uses a mesh-like connectivity at decoding stage to exploit low- and high-level features. Experimentally, we investigate the performance of the M$^2$ Transformer and different fully-attentive models in comparison with recurrent ones. When tested on COCO, our proposal achieves a new state of the art in single-model and ensemble configurations on the "Karpathy" test split and on the online test server. We also assess its performances when describing objects unseen in the training set. Trained models and code for reproducing the experiments are publicly available at: https://github.com/aimagelab/meshed-memory-transformer.

View on arXivView PDF

Code Implementations(1)

PyTorchBSD-3-Clause

[CVPR 2020] Meshed-Memory Transformer for Image Captioning

547134PythonDec 12, 20193 years agoBSD-3-Clause
caption-generationcaptioning-imagescvpr2020image-captioningpytorch+2 more

Similar Papers

Cite this paper

@article{cornia2019meshedmemory,
  title  = {Meshed-Memory Transformer for Image Captioning},
  author = {Marcella Cornia and Matteo Stefanini and Lorenzo Baraldi and Rita Cucchiara},
  year   = {2019},
  eprint = {1912.08226},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.08226}
}

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

Discussion