Structured Two-Stream Attention Network for Video Question Answering

Lianli Gao, Pengpeng Zeng, Jingkuan Song, Yuan-Fang Li, Wu Liu, Tao Mei, Heng Tao Shen

Abstract

Video Question Answering (VideoQA) requires understanding both spatial details and temporal dynamics. We present the Structured Two-Stream Attention (STA) network, which decomposes videos into segments and employs a symmetric attention mechanism to jointly localize relevant visual regions and textual keywords. Evaluated on the TGIF-QA dataset, STA achieves state-of-the-art performance using only appearance-based features, demonstrating the efficacy of structured temporal modeling and cross-modal attention.

Introduction

Visual Question Answering (VQA) has seen significant success in static images, but video QA presents a steeper challenge due to long-range temporal structures and irrelevant "background noise"—frames or actions that do not pertain to the specific query. Existing models often compress an entire video into a single global feature vector, a "whole-video" approach that ignores fine-grained frame-level information and struggles to localize specific actions. To provide accurate answers, a model must jointly reason across spatial details and temporal progression while filtering out irrelevant segments.

Methodology

The STA framework addresses these challenges through three main components:

  1. Structured Segment Component: Instead of treating the video as one long sequence, the model divides LSTM-encoded video features into $N$ distinct segments. This allows the model to maintain high-resolution temporal information without losing detail in a single massive sequence.
  2. Structured Two-Stream Attention: This component uses a shared affinity matrix to calculate two types of attention simultaneously: Visual Attention, which determines relevant frames within a segment, and Text Attention, which identifies key words in the question. This symmetric approach ensures that visual and textual representations mutually inform each other before fusion.
  3. Structured Two-Stream Fusion: Attended features from all segments are pooled and combined using element-wise multiplication. Task-specific decoders (classifiers for word-based answers or regressors for counting) then generate the final output.
The architecture of the Structured Two-Stream Attention (STA) network, illustrating the segmentation and symmetric attention flow.

Experiments and Results

The model was evaluated on the TGIF-QA dataset, a large-scale benchmark containing 165,000 QA pairs across four tasks: Action, State Transition (Trans.), FrameQA, and Count.

Key Insights

  • Segmentation Prevents Information Loss: By splitting the video into segments ($N=4$ yielded optimal results), the model avoids the "vanishing" effect common in long-sequence compression.
  • The Power of Symmetry: Most models attend to the video based on text. STA's two-stream approach treats both modalities as equally important, allowing visual cues to refine text representations as much as text refines visual ones.
  • Appearance vs. Motion: Surprisingly, STA achieved state-of-the-art results using only ResNet-152 appearance features. It outperformed many "multi-feature" models that used both appearance and motion (Optical Flow/C3D) features, suggesting that a superior attention structure is more critical than feature variety.

Quantitative Performance

STA significantly outperformed previous benchmarks:

  • Vs. Single-Feature Models: STA surpassed the best competitor (ST) by 13.0% in Action, 13.5% in Trans., and 11.0% in FrameQA.
  • Vs. Multi-Feature Models: Even against models using motion features (like Co-memory), STA (using only appearance) performed better in Action (72.3% vs 68.2%) and State Transition (79.0% vs 74.3%).
  • Counting: For the "Count" task, STA reduced the Mean Square Error (MSE) to 4.25, an improvement over the 4.55 baseline.

Qualitative Analysis

Qualitative results highlight the benefit of the two-stream approach. As shown in the comparison between visual-only attention (STA-V) and the full two-stream model (STA-V-T), the integration of text attention allows the model to more accurately identify specific actions, such as distinguishing "raising a right arm" from general "body movement."

Qualitative comparison of STA variants against ground truth (GT), demonstrating the precision gained through two-stream attention.

Conclusion

The STA network demonstrates that structured temporal modeling and symmetric cross-modal attention are highly effective for VideoQA. While the performance gains from increasing segments were minor on short GIFs, future work will involve testing the architecture on longer, uncurated videos where segmentation is expected to play a more critical role. Additionally, integrating motion features like C3D may provide further boosts for complex counting tasks.

Summary updated

BibTeX
@inproceedings{gao2019structured,
  author = {Lianli Gao and Pengpeng Zeng and Jingkuan Song and Yuan-Fang Li and Wu Liu and Tao Mei and Heng Tao Shen},
  title = {{Structured Two-Stream Attention Network for Video Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016391},
}
Figure