Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning

Jiasen Lu, Caiming Xiong, Devi Parikh, Richard Socher
12/6/2016
cs.CVcs.AI

Official code: jiasenlu/AdaptiveAttention (337 stars, last commit 2017-12-26).

Abstract

Attention-based neural encoder-decoder frameworks have been widely adopted for image captioning. Most methods force visual attention to be active for every generated word. However, the decoder likely requires little to no visual information from the image to predict non-visual words such as "the" and "of". Other words that may seem visual can often be predicted reliably just from the language model e.g., "sign" after "behind a red stop" or "phone" following "talking on a cell". In this paper, we propose a novel adaptive attention model with a visual sentinel. At each time step, our model decides whether to attend to the image (and if so, to which regions) or to the visual sentinel. The model decides whether to attend to the image and where, in order to extract meaningful information for sequential word generation. We test our method on the COCO image captioning 2015 challenge dataset and Flickr30K. Our approach sets the new state-of-the-art by a significant margin.

View on arXivView PDF

Code Implementations(1)

Implementation of "Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning"

33774Lua, ShellFeb 23, 20178 years agoNOASSERTION
attention-mechanismimage-captioningtorch

Similar Papers

Cite this paper

@article{lu2016knowing,
  title  = {Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning},
  author = {Jiasen Lu and Caiming Xiong and Devi Parikh and Richard Socher},
  year   = {2016},
  eprint = {1612.01887},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1612.01887}
}

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

Discussion