Skip to main content
QUICK REVIEW

[Paper Review] Gated Hierarchical Attention for Image Captioning

Qingzhong Wang, Antoni B. Chan|arXiv (Cornell University)|Oct 30, 2018
Multimodal Machine Learning ApplicationsComputer Science43 references8 citations
TL;DR

This paper proposes a gated hierarchical attention (GHA) mechanism that enhances image captioning by fusing low-level and high-level visual features through a convolutional decoder, enabling multi-level attention and dynamic feature gating. The method boosts CIDEr scores to 0.999 on MSCOCO, matching state-of-the-art models without relying on reinforcement learning or attribute boosting.

ABSTRACT

Attention modules connecting encoder and decoders have been widely applied in the field of object recognition, image captioning, visual question answering and neural machine translation, and significantly improves the performance. In this paper, we propose a bottom-up gated hierarchical attention (GHA) mechanism for image captioning. Our proposed model employs a CNN as the decoder which is able to learn different concepts at different layers, and apparently, different concepts correspond to different areas of an image. Therefore, we develop the GHA in which low-level concepts are merged into high-level concepts and simultaneously low-level attended features pass to the top to make predictions. Our GHA significantly improves the performance of the model that only applies one level attention, for example, the CIDEr score increases from 0.923 to 0.999, which is comparable to the state-of-the-art models that employ attributes boosting and reinforcement learning (RL). We also conduct extensive experiments to analyze the CNN decoder and our proposed GHA, and we find that deeper decoders cannot obtain better performance, and when the convolutional decoder becomes deeper the model is likely to collapse during training.

Motivation & Objective

  • To improve image captioning performance by enabling multi-level attention between visual features and language generation.
  • To address the limitation of single-level attention mechanisms that fail to capture fine-grained visual context.
  • To explore the effectiveness of convolutional decoders in modeling sequential language generation with parallel computation.
  • To analyze the stability and performance trade-offs of deeper convolutional decoders in image captioning.
  • To develop a gating mechanism that selectively passes low-level visual features to higher-level representations based on relevance.

Proposed method

  • Proposes a gated hierarchical attention (GHA) mechanism that integrates visual features from multiple levels of a convolutional decoder.
  • Uses a bottom-up approach where low-level features are merged into high-level features, with gates controlling the flow of information.
  • Applies visual gates to filter out irrelevant image regions (e.g., corners) and concept gates to emphasize context-dependent words.
  • Employs a Word-CNN-based decoder with kernel size 3 and 6 layers, capable of modeling 13 words in parallel, to improve inference speed and performance.
  • Introduces a dual-gating mechanism: visual gates for spatial attention and concept gates for contextual dependency, both dynamically learned during training.
  • Uses feature maps from a pre-trained Image-CNN as input, with attention computed per decoder layer to enable hierarchical interaction.

Experimental results

Research questions

  • RQ1Can a hierarchical attention mechanism that fuses multi-level visual features improve image captioning performance?
  • RQ2How does the use of a convolutional decoder compare to recurrent models like LSTMs in terms of performance and training stability?
  • RQ3Does the introduction of visual and concept gates enhance feature selection and improve attention interpretability?
  • RQ4What is the optimal depth and kernel size for a convolutional decoder in image captioning, and does deeper architecture always improve performance?
  • RQ5Can a gated hierarchical attention mechanism achieve performance comparable to state-of-the-art models without reinforcement learning or attribute boosting?

Key findings

  • The proposed GHA mechanism increases the CIDEr score from 0.923 to 0.999 on the MSCOCO dataset, achieving performance comparable to models using reinforcement learning or attribute boosting.
  • The model achieves an 8.2% relative improvement in CIDEr and 8.6% in SPICE, demonstrating significant gains in caption quality and alignment.
  • Deeper convolutional decoders (e.g., more than 6 layers) lead to training instability and model collapse, despite higher theoretical receptive fields.
  • Increasing kernel size beyond 3 (e.g., to 5 or 7) marginally reduces performance, with CIDEr dropping from 0.923 to 0.914 and 0.913, respectively.
  • Visual gates are predominantly off when attention focuses on non-object regions (e.g., image corners), while concept gates are more active for function words like 'a' or 'of', indicating context dependence.
  • The gating mechanism enables hierarchical switching: visual gates filter local features, while concept gates promote contextual understanding, especially at lower decoder layers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.