HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Meshed-Memory Transformer for Image Captioning

Marcella Cornia Matteo Stefanini Lorenzo Baraldi Rita Cucchiara

Meshed-Memory Transformer for Image Captioning

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.

Code Repositories

aimagelab/meshed-memory-transformer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-captioning-on-cocoM2 Transformer
CIDEr: 131.2
image-captioning-on-coco-captionsMeshed-Memory Transformer
BLEU-1: 80.8
BLEU-4: 39.1
CIDER: 131.2
METEOR: 29.2
ROUGE-L: 58.6
SPICE: 22.6

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
Meshed-Memory Transformer for Image Captioning | Papers | HyperAI