Open-Ended Long-Form Video Question Answering via Hierarchical Convolutional Self-Attention Networks

Zhu Zhang, Zhou Zhao, Zhijie Lin, Jingkuan Song, Xiaofei He · OpenReview

Introduction

Open-ended Video Question Answering (VideoQA) requires a model to interpret video content and generate natural language answers. While existing models perform well on short clips, long-form videos—often lasting several minutes—present significant hurdles in computational efficiency and the capture of long-range dependencies. Traditional Recurrent Neural Networks (RNNs) process frames sequentially, leading to high memory costs and the "vanishing gradient" problem where early information is lost.

The HCSA Framework

To address these issues, researchers proposed the Hierarchical Convolutional Self-Attention (HCSA) network. This architecture moves away from sequential processing in favor of a hierarchical structure that can be processed in parallel.

Hierarchical Encoder

The encoder builds a pyramid-like representation of the video. It utilizes 1D convolution units to capture local temporal patterns. Crucially, it includes an Attentive Segmentation Unit, which acts as a "smart" pooling layer. By using the input question as a guide, the model decides which frames within a segment are most relevant, effectively compressing the video sequence at each layer.

A sequence of frames from a long-form video illustrating a multi-step activity (juicing) that requires temporal reasoning.

Question-Aware Self-Attention

Unlike standard self-attention mechanisms that relate every frame to every other frame, HCSA uses the question to filter context. It calculates correlations between video segments through the "lens" of the question, allowing the model to focus on relevant long-range dependencies while ignoring visual noise.

Multi-Scale Attentive Decoder

Generating an answer from a hierarchical model can be difficult if only the top (most abstract) layer is used. The HCSA decoder employs a multi-scale attention mechanism that looks at the top $K$ layers of the encoder simultaneously. This ensures the model retains access to both high-level semantic summaries and fine-grained visual details.

Close-up frames showing specific interactions with objects, highlighting the need for fine-grained detail in VideoQA.

Experimental Results

The model was tested on a long-form VideoQA dataset derived from ActivityNet Captions, featuring videos with an average length of 180 seconds.

  • Accuracy: HCSA achieved a BLEU-1 score of 28.83, outperforming competitive baselines like AHN (25.81) and STVQA+.
  • Efficiency: The model is significantly faster than RNN-based alternatives. Training time was reduced to approximately 45 seconds per epoch, compared to over 200 seconds for STVQA+. Inference speed saw a 5x to 7x improvement.

Conclusion

The HCSA network demonstrates that hierarchical, attention-based architectures are superior to traditional recurrent models for long-form video understanding. By integrating the question directly into the encoding and pooling process, the model achieves a balance between high-level context and computational efficiency, paving the way for real-time long-form VideoQA applications.

Summary updated

Abstract

Open-ended video question answering aims to automatically generate the natural-language answer from referenced video contents according to the given question. Currently, most existing approaches focus on short-form video question answering with multi-modal recurrent encoder-decoder networks. Although these works have achieved promising performance, they may still be ineffectively applied to long-form video question answering due to the lack of long-range dependency modeling and the suffering from the heavy computational cost. To tackle these problems, we propose a fast hierarchical convolutional self-attention encoder-decoder network. Concretely, we first develop a hierarchical convolutional self-attention encoder to efficiently model long-form video contents, which builds the hierarchical structure for video sequences and captures question-aware long-range dependencies from video context. We then devise a multi-scale attentive decoder to incorporate multi-layer video representations for answer generation, which avoids the information missing of the top encoder layer. The extensive experiments show the effectiveness and efficiency of our method.
BibTeX
@inproceedings{zhang2019open,
  author = {Zhu Zhang and Zhou Zhao and Zhijie Lin and Jingkuan Song and Xiaofei He},
  title = {{Open-Ended Long-Form Video Question Answering via Hierarchical Convolutional Self-Attention Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/609},
}
Figure