Video Paragraph Captioning using Hierarchical Recurrent Neural Networks

Haonan Yu, Jiang Wang, Zhiheng Huang, Yi Yang, Wei Xu

Abstract

We present an approach that exploits hierarchical Recurrent Neural Networks (RNNs) to tackle the video captioning problem, i.e., generating one or multiple sentences to describe a realistic video. Our hierarchical framework contains a sentence generator and a paragraph generator. The sentence generator produces one simple short sentence that describes a specific short video interval. It exploits both temporal- and spatial-attention mechanisms to selectively focus on visual elements during generation. The paragraph generator captures the inter-sentence dependency by taking as input the sentential embedding produced by the sentence generator, combining it with the paragraph history, and outputting the new initial state for the sentence generator. We evaluate our approach on two large-scale benchmark datasets: YouTubeClips and TACoS-MultiLevel. The experiments demonstrate that our approach significantly outperforms the current state-of-the-art methods with BLEU@4 scores 0.499 and 0.305 respectively.

Introduction: Beyond Single-Sentence Descriptions

Most video captioning research focuses on "short-form" description: generating a single sentence for a brief clip (e.g., "A person is slicing an orange"). However, real-world videos are often long and contain a sequence of events. Describing a complex video with a single sentence is often uninformative and fails to capture the narrative flow.

Examples of video captioning tasks: single-sentence descriptions for short clips (top) versus multi-step sequences for longer activities (bottom).

The challenge in video paragraph captioning is twofold:

  1. Temporal Dependency: Sentences in a paragraph are not independent. The narrative flow must be logically consistent across the sequence. If the first sentence says, "The person took a pot from the fridge," the next sentence is more likely to be "They put it on the stove" than "They went outside."
  2. Visual Complexity: Long videos contain many objects and actions. A model must determine exactly where and when to look to describe specific sub-steps accurately.

Methodology: Hierarchical RNN Framework

The proposed architecture consists of two main components designed to handle different levels of granularity:

The Sentence Generator (Low-Level)

This component is a Gated Recurrent Unit (GRU) that produces individual words. It employs a dual-attention mechanism:

  • Temporal Attention: Identifies which frames in a video sequence are most relevant at the current word-generation step.
  • Spatial Attention: Focuses on specific regions within a frame (e.g., focusing on a knife or a vegetable) rather than the entire background. This is vital for recognizing small objects in complex scenes.

The Paragraph Generator (High-Level)

This second GRU acts as a "context manager." It takes the "sentential embedding" (a summary of the sentence just generated) and combines it with the overall paragraph history. It then outputs a "paragraph state" that serves as the starting point (initial hidden state) for the next sentence. This hierarchy ensures that the generation of each sentence is informed by the semantic content of all preceding sentences.

Evaluation

Datasets

The model was evaluated on two major benchmarks:

  • YouTubeClips: A collection of 1,967 short open-domain clips. While these usually only have single-sentence captions, they were used to test the model's "short-form" performance.
  • TACoS-MultiLevel: A dataset of 185 long cooking videos (averaging 6 minutes). This dataset is specifically designed for paragraph generation, featuring fine-grained activities and strong temporal dependencies between steps.

Key Results

The hierarchical approach significantly outperformed existing state-of-the-art methods (like S2VT and LRCN) at the time of publication:

  • YouTubeClips: Achieved a BLEU@4 score of 0.499, a notable jump from the previous best of 0.453 (LSTM-E).
  • TACoS-MultiLevel: Achieved a BLEU@4 score of 0.305, outperforming the previous state-of-the-art (LRCN) by 4.45%.
  • Human Evaluation: In side-by-side comparisons on Amazon Mechanical Turk, human evaluators preferred the hierarchical RNN's paragraphs over non-hierarchical baselines, noting improved event sequencing and fewer logical errors.

Discussion and Future Work

Key Insights

  • Contextual Modeling: Treating video captioning as a document modeling problem prevents repetitive or inconsistent descriptions. By passing a hidden state from one sentence to the next, the model avoids logical gaps.
  • Asynchronous Recurrence: The two RNNs operate at different "clocks." The sentence RNN updates at every word, while the paragraph RNN only updates once a full sentence is completed. This hierarchy effectively captures both short-term syntax and long-term narrative flow.

Limitations

Despite its success, the model still struggles to distinguish between very similar small objects (e.g., confusing a cucumber with a carrot). Furthermore, the current unidirectional flow prevents the model from "looking ahead" to plan the narrative structure. Future directions include exploring Bidirectional RNNs and addressing exposure bias through techniques like Scheduled Sampling to bridge the gap between training and inference.

Summary updated

BibTeX
@inproceedings{yu2016video,
  author = {Haonan Yu and Jiang Wang and Zhiheng Huang and Yi Yang and Wei Xu},
  title = {{Video Paragraph Captioning using Hierarchical Recurrent Neural Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  doi = {10.1109/cvpr.2016.496},
}
Figure