Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical LSTMs with Adaptive Attention for Visual Captioning

Jingkuan Song, Xiangpeng Li|arXiv (Cornell University)|Dec 26, 2018
Multimodal Machine Learning ApplicationsComputer Science57 references17 citations
TL;DR

This paper proposes a hierarchical LSTM with adaptive attention (hLSTMat) for visual captioning that separates visual and non-visual word generation by using adaptive attention to decide when to rely on visual features or language context. The model uses hierarchical LSTMs to jointly model low-level visual features and high-level language context, achieving state-of-the-art performance on both image and video captioning benchmarks, with significant gains in CIDEr and BLEU scores.

ABSTRACT

Recent progress has been made in using attention based encoder-decoder framework for image and video captioning. Most existing decoders apply the attention mechanism to every generated word including both visual words (e.g., "gun" and "shooting") and non-visual words (e.g. "the", "a"). However, these non-visual words can be easily predicted using natural language model without considering visual signals or attention. Imposing attention mechanism on non-visual words could mislead and decrease the overall performance of visual captioning. Furthermore, the hierarchy of LSTMs enables more complex representation of visual data, capturing information at different scales. To address these issues, we propose a hierarchical LSTM with adaptive attention (hLSTMat) approach for image and video captioning. Specifically, the proposed framework utilizes the spatial or temporal attention for selecting specific regions or frames to predict the related words, while the adaptive attention is for deciding whether to depend on the visual information or the language context information. Also, a hierarchical LSTMs is designed to simultaneously consider both low-level visual information and high-level language context information to support the caption generation. We initially design our hLSTMat for video captioning task. Then, we further refine it and apply it to image captioning task. To demonstrate the effectiveness of our proposed framework, we test our method on both video and image captioning tasks. Experimental results show that our approach achieves the state-of-the-art performance for most of the evaluation metrics on both tasks. The effect of important components is also well exploited in the ablation study.

Motivation & Objective

  • To address the inefficiency of applying attention mechanisms uniformly to all words in visual captioning, including non-visual words like 'the' and 'a' that do not require visual signals.
  • To improve captioning performance by modeling both low-level visual features and high-level language context simultaneously through a hierarchical LSTM structure.
  • To develop an adaptive attention mechanism that dynamically selects between visual and language context based on the semantic type of the target word.
  • To enhance discriminability in caption generation, especially for complex scenes with subtle differences, using contrastive loss in a reinforcement learning framework.
  • To achieve state-of-the-art performance on standard image and video captioning benchmarks, including Flickr30K and COCO.

Proposed method

  • The framework employs a two-layer hierarchical LSTM: the lower layer processes local visual features (e.g., region or frame-level CNN features), while the upper layer models sentence-level language context.
  • Adaptive temporal attention is introduced to determine whether to attend to visual features or rely on language context, based on the predicted word’s semantic type (visual vs. non-visual).
  • Spatial and temporal attention mechanisms are used to focus on salient image regions or video frames at each decoding step.
  • A reinforcement learning strategy with contrastive loss is applied to improve discriminability in captioning, especially for distinguishing similar but different scenes.
  • The model is first trained on video captioning (MSVD, MSR-VTT), then refined and applied to image captioning (Flickr30K, COCO).
  • The framework uses a dual-stream architecture (ParA and Two-stream) to further enhance feature representation in video captioning.

Experimental results

Research questions

  • RQ1Can adaptive attention improve visual captioning by selectively attending to visual features only when necessary, avoiding unnecessary attention on non-visual words?
  • RQ2How does a hierarchical LSTM structure enhance the modeling of both local visual features and global sentence context in caption generation?
  • RQ3To what extent does the integration of contrastive loss in a reinforcement learning framework improve the model’s ability to distinguish between semantically similar but visually distinct scenes?
  • RQ4Does the proposed hLSTMat framework achieve state-of-the-art performance on both image and video captioning benchmarks?
  • RQ5How do the individual components of the model—adaptive attention, hierarchical LSTMs, and contrastive learning—contribute to the overall performance gain?

Key findings

  • On the Flickr30K dataset, the proposed hLSTMat model outperforms Adaptive-Attention [66] by 6.1% in BLEU-1, 5.7% in BLEU-2, 4.9% in BLEU-3, 4.3% in BLEU-4, 2.6% in METEOR, and 13.5% in CIDEr.
  • On the COCO dataset, the model achieves the highest scores among single-model approaches on all standard metrics, including 28.2% METEOR on c5 and 37.0% on c40, outperforming models using more complex visual features like ResNet-152.
  • The ablation study confirms that both adaptive attention and the hierarchical LSTM structure significantly contribute to performance gains, with ablation of either component leading to notable drops in CIDEr and BLEU scores.
  • Qualitative analysis shows that hLSTMat generates more accurate descriptions of object relationships and scene differences than Up-Down and Adaptive-Attention, especially in complex scenes with subtle distinctions.
  • The model with contrastive loss in the reinforcement learning stage improves discriminability, correctly describing different locations (e.g., 'on a street' vs. 'on a park') where other models fail.
  • The framework achieves state-of-the-art performance on both video (MSVD, MSR-VTT) and image (Flickr30K, COCO) captioning benchmarks, demonstrating strong generalization across tasks.

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.