Adaptively Aligned Image Captioning via Adaptive Attention Time

Lun Huang, Wenmin Wang, Yaxian Xia, Jie Chen
9/19/2019
cs.CVcs.CL
transformer-attention

Official code: husthuaan/AAT (50 stars, Python, MIT, last commit 2019-12-18).

Abstract

Recent neural models for image captioning usually employ an encoder-decoder framework with an attention mechanism. However, the attention mechanism in such a framework aligns one single (attended) image feature vector to one caption word, assuming one-to-one mapping from source image regions and target caption words, which is never possible.

Show full abstract

In this paper, we propose a novel attention model, namely Adaptive Attention Time (AAT), to align the source and the target adaptively for image captioning. AAT allows the framework to learn how many attention steps to take to output a caption word at each decoding step. With AAT, an image region can be mapped to an arbitrary number of caption words while a caption word can also attend to an arbitrary number of image regions. AAT is deterministic and differentiable, and doesn't introduce any noise to the parameter gradients. In this paper, we empirically show that AAT improves over state-of-the-art methods on the task of image captioning. Code is available at https://github.com/husthuaan/AAT.

View on arXivView PDF

Code Implementations(1)

husthuaan/AATOfficial100%
MIT

Code for paper "Adaptively Aligned Image Captioning via Adaptive Attention Time". NeurIPS 2019

5012Python, ShellSep 19, 20196 years agoMIT
attention-mechanismimage-captioningneuripsneurips-2019seq2seq

Similar Papers

Cite this paper

@article{huang2019adaptively,
  title  = {Adaptively Aligned Image Captioning via Adaptive Attention Time},
  author = {Lun Huang and Wenmin Wang and Yaxian Xia and Jie Chen},
  year   = {2019},
  eprint = {1909.09060},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.09060}
}

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

Discussion