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.
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.
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