SCA-CNN: Spatial and Channel-wise Attention in Convolutional Networks for Image Captioning

Long Chen, Hanwang Zhang, Jun Xiao, Liqiang Nie, Jian Shao +2 more
11/17/2016
cs.CV

Official code: zjuchenlong/sca-cnn.cvpr17 (212 stars, last commit 2018-04-04).

Abstract

Visual attention has been successfully applied in structural prediction tasks such as visual captioning and question answering. Existing visual attention models are generally spatial, i.e., the attention is modeled as spatial probabilities that re-weight the last conv-layer feature map of a CNN encoding an input image. However, we argue that such spatial attention does not necessarily conform to the attention mechanism --- a dynamic feature extractor that combines contextual fixations over time, as CNN features are naturally spatial, channel-wise and multi-layer. In this paper, we introduce a novel convolutional neural network dubbed SCA-CNN that incorporates Spatial and Channel-wise Attentions in a CNN. In the task of image captioning, SCA-CNN dynamically modulates the sentence generation context in multi-layer feature maps, encoding where (i.e., attentive spatial locations at multiple layers) and what (i.e., attentive channels) the visual attention is. We evaluate the proposed SCA-CNN architecture on three benchmark image captioning datasets: Flickr8K, Flickr30K, and MSCOCO. It is consistently observed that SCA-CNN significantly outperforms state-of-the-art visual attention-based image captioning methods.

View on arXivView PDF

Code Implementations(1)

Image Captions Generation with Spatial and Channel-wise Attention

21270PythonJan 13, 20178 years ago
attention-mechanismcococvpr-2017image-captioningresnet+1 more

Similar Papers

Cite this paper

@article{chen2016scacnn,
  title  = {SCA-CNN: Spatial and Channel-wise Attention in Convolutional Networks for Image Captioning},
  author = {Long Chen and Hanwang Zhang and Jun Xiao and Liqiang Nie and Jian Shao and Wei Liu and Tat-Seng Chua},
  year   = {2016},
  eprint = {1611.05594},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1611.05594}
}

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

Discussion