Feature Augmented Memory with Global Attention Network for VideoQA

Jiayin Cai, Chun Yuan, Cheng Shi, Lei Li, Yangyang Cheng, Ying Shan

Abstract

Video Question Answering (VideoQA) presents a significant challenge in computer vision and natural language processing, requiring the integration of local temporal dynamics with global contextual reasoning. Traditional methods often rely on Recurrent Neural Networks (RNNs) for temporal modeling or Self-Attention (SA) for long-range dependencies, yet both approaches have limitations in balancing precision and context. We present a novel framework that utilizes a Feature Augmented Memory (FAM) combined with a Global Attention Network. By implementing cross-modal guidance—specifically Text-augmented Visual Memory and Video-augmented Textual Memory—our model filters irrelevant noise and focuses on task-relevant information. Evaluated on TGIF-QA, MSVD-QA, and MSRVTT-QA benchmarks, our approach achieves state-of-the-art results, demonstrating the efficacy of hierarchical fusion and hybrid recurrent-attention architectures.

Introduction

The task of VideoQA requires a model to interpret complex visual sequences and reason over them to answer natural language questions. This necessitates understanding both fine-grained local actions and the overarching global context. Current methodologies typically face a trade-off: RNN-based models excel at local temporal ordering but suffer from vanishing gradients over long sequences, while Self-Attention mechanisms capture global dependencies but may overlook precise local temporal cues. Furthermore, standard memory-based models often accumulate irrelevant information, leading to "noisy" representations that hinder reasoning.

Methods

Our proposed architecture adopts a "fine-to-coarse" refinement strategy to address these challenges. The model first employs LSTMs to capture local temporal flow from motion and appearance features. These local representations are then integrated into a Feature Augmented Memory system.

Overall architecture of the Feature Augmented Memory with Global Attention Network.

The system consists of two primary modules:

  1. Text-augmented Visual Memory: The input question serves as a controller, guiding the model to write only relevant video frames into memory.
  2. Video-augmented Textual Memory: Visual features are used to weight the importance of specific words within the question.

Following memory augmentation, the outputs are processed through a Non-local Neural Network comprising Self-Attention and Co-Attention layers. This allows the model to establish global dependencies across the refined features. Finally, a hierarchical fusion approach combines information at multiple granularities before passing it to a classifier.

Key Insights and Ideas

A central finding of this work is that memory efficiency is more critical than raw capacity. Cross-modal guidance allows the model to utilize larger memory buffers effectively by filtering out background noise.

Visualization of memory and self-attention weights demonstrating cross-modal guidance.

As shown in the visualization above, the model successfully aligns specific segments of the video (e.g., the "lifting" and "punching" actions) with the corresponding parts of the query. This targeted attention is essential for answering complex questions about the sequence of events. Additionally, the hybrid design confirms that maintaining local temporal order via RNN-like structures is indispensable for distinguishing between similar actions occurring in different sequences.

Key Results

The model achieved state-of-the-art (SOTA) performance across three major benchmarks:

  • TGIF-QA: On the "Count" task, it achieved an L2 loss of 3.79, significantly outperforming previous models like HME (4.02). It also led in Action (75.4% accuracy) and Transition (79.2% accuracy) tasks.
  • MSVD-QA & MSRVTT-QA: The model reached an overall accuracy of 34.5% and 33.2% respectively, representing the peak of current performance in open-ended video reasoning.
  • Ablation Studies: Removing the "Feature Augmentation" or the "Self-Attention" blocks led to a measurable drop in performance, proving that both the filtered memory and the global attention are necessary for the model's success.

Conclusion

This framework demonstrates that combining local temporal modeling with global attention through cross-modal memory augmentation significantly improves VideoQA performance. While the results are promising, future work will focus on reducing the computational complexity of dual augmented memories to support longer video sequences and exploring deeper symbolic reasoning to improve performance on complex "Why" and "How" questions.

Summary updated

BibTeX
@inproceedings{cai2020feature,
  author = {Jiayin Cai and Chun Yuan and Cheng Shi and Lei Li and Yangyang Cheng and Ying Shan},
  title = {{Feature Augmented Memory with Global Attention Network for VideoQA}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/139},
}
Figure