Hierarchically Structured Reinforcement Learning for Topically Coherent Visual Story Generation

Qiuyuan Huang, Zhe Gan, Asli Celikyilmaz, Dapeng Oliver Wu, Jianfeng Wang, Xiaodong He

Abstract

Visual storytelling requires generating a sequence of sentences that are both locally grounded in images and globally coherent across a narrative. Traditional flat models often struggle with long-term planning, leading to repetitive or disjointed text. This paper introduces a Hierarchically Structured Reinforcement Learning (HSRL) framework that decomposes the task into a two-level hierarchy: a high-level "Manager" that plans semantic topics and a low-level "Worker" that generates sentences. By employing joint training and sentence-level credit assignment, the HSRL model achieves superior narrative flow and expressiveness compared to state-of-the-art baselines on the VIST dataset.

Introduction

Visual storytelling represents a significant advancement in complexity over standard image captioning. While a caption describes a single image in isolation, a story requires a sequence of sentences that maintain thematic consistency and narrative progression. Standard neural encoder-decoder models trained with Maximum Likelihood Estimation (MLE) often suffer from exposure bias and a lack of global planning, resulting in generic or repetitive narratives. To address these challenges, this work proposes a hierarchical approach that explicitly models the narrative structure through semantic subgoals.

Methodology

The proposed Hierarchically Structured Reinforcement Learning (HSRL) model consists of two primary components designed to separate planning from execution:

  1. The Manager (High-Level Decoder): An LSTM network that acts as a global planner. For each image in a sequence, it generates a semantic "topic" (a subgoal distribution). This ensures the overall theme is logically distributed across the narrative.
  2. The Worker (Low-Level Decoder): A Semantic Compositional Network (SCN) that takes the topic provided by the Manager and specific image features to generate the actual words. The SCN is specifically designed to ground the generated text in the provided semantic topic.
The HSRL architecture featuring the LSTM Manager for topic planning and the SCN Worker for sentence generation.

Training Strategy

The model is optimized using a combination of MLE and Reinforcement Learning (RL). The authors utilize a "self-critical" training approach, comparing the model's current output against its own best greedy output to calculate a reward signal. Crucially, the framework employs Joint Training, where the Manager and Worker are optimized simultaneously. This avoids the instability of alternating training methods. Furthermore, Sentence-Level Credit Assignment provides rewards after each sentence, helping the model learn which specific parts of the narrative contribute to overall quality.

Experimental Results

The model was evaluated on the VIST (Visual Storytelling) dataset. Since VIST lacks explicit topic labels, the authors used k-means clustering on ResNet-152 image features to derive latent topics for the Manager.

Quantitative Performance

The HSRL model outperformed strong baselines across all major automated metrics. On a 64-topic configuration, the HSRL (Joint Training) model achieved a BLEU-4 score of 12.32, significantly higher than the 8.16 achieved by a flat RL baseline. Similar gains were observed in METEOR and CIDEr scores, indicating improved relevance and diversity.

Qualitative Analysis

Human evaluators preferred HSRL stories for their relevance, expressiveness, and concreteness. As shown in the qualitative comparisons, the HSRL model naturally learns to use more vibrant and emotional language (e.g., "excited," "intense," "happy") compared to the repetitive outputs of MLE or flat RL baselines.

Qualitative comparison of stories generated by MLE, RL, and HSRL models, highlighting HSRL's superior use of descriptive and emotional language.

Conclusion

The HSRL framework demonstrates that explicit hierarchical planning is essential for coherent visual storytelling. By using interpretable topics as subgoals and optimizing via joint reinforcement learning, the model reduces repetition and enhances narrative flow. Future work may explore more sophisticated topic modeling or adversarial reward functions to further capture the nuances of human creativity and narrative arcs.

Summary updated

BibTeX
@inproceedings{huang2019hierarchically,
  author = {Qiuyuan Huang and Zhe Gan and Asli Celikyilmaz and Dapeng Oliver Wu and Jianfeng Wang and Xiaodong He},
  title = {{Hierarchically Structured Reinforcement Learning for Topically Coherent Visual Story Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33018465},
}
Figure