Video Question Answering Using Clip-Guided Visual-Text Attention

Shuhong Ye, Weikai Kong, Chenglin Yao, Jianfeng Ren, Xudong Jiang

Abstract

Video Question Answering (VideoQA) requires sophisticated alignment between temporal visual cues and complex linguistic semantics. A major challenge in this field is the knowledge discrepancy between limited task-specific datasets and the vast general-world knowledge required for open-ended questions. This paper introduces CCVQA (CLIP-guided Cross-domain Video Question Answering), a framework that leverages the pre-trained knowledge of CLIP to bridge this gap. By employing a specialized cross-domain visual-text attention mechanism, CCVQA achieves new state-of-the-art performance on the MSVD-QA and MSRVTT-QA benchmarks.

Introduction

The primary bottleneck in VideoQA is the scarcity of training data. Models often encounter linguistic concepts in questions or answers that were never seen during training on specific video datasets. While large-scale models like CLIP possess extensive general knowledge, simply integrating their features is often insufficient due to the representation misalignment between the general domain (Internet-scale images/text) and the target domain (specific VideoQA tasks). CCVQA addresses this "knowledge discrepancy" by explicitly modeling the interactions between target and general domain features.

Methods

The CCVQA framework operates in two primary stages: Domain-Specific Learning and Cross-Domain Learning.

Domain-Specific Learning

The model extracts features from two distinct domains:

  1. Target Domain: Spatial-temporal features are extracted from the raw video using a TimeSformer, while the question is encoded using BERT.
  2. General Domain: To maintain computational efficiency, the model extracts keyframes using color histogram contrast. These keyframes, along with "prompt-style" versions of questions and answers (e.g., "A child find [answer label]"), are processed by CLIP to obtain general-world visual and linguistic representations.
The CCVQA architecture, illustrating the two-stage process of domain-specific and cross-domain learning.

Cross-Domain Learning

The core innovation lies in four specialized CLIP-guided visual-text encoders. These encoders use attention mechanisms to facilitate interactions across four pathways:

  • Target Questions & Target Video features
  • Target Questions & CLIP Keyframe features
  • CLIP Prompts & Target Video features
  • CLIP Prompts & CLIP Keyframe features

This four-way alignment allows the general knowledge from CLIP to guide the interpretation of task-specific video content. A weighted multi-head fusion layer then combines these cross-domain insights to predict the final answer.

Results and Discussion

The model was evaluated on two challenging open-ended benchmarks: MSVD-QA (~1.9K videos) and MSRVTT-QA (~10K videos). These datasets are particularly difficult as they require open-ended noun or verb answers rather than multiple-choice selections.

Comparison of CCVQA (Ours) against existing state-of-the-art methods on MSVD-QA and MSRVTT-QA datasets.

CCVQA established new state-of-the-art results, achieving 46.6% accuracy on MSVD-QA and 42.4% on MSRVTT-QA. It notably outperformed SSRea, the previous leader, and showed a significant improvement (over 5%) compared to high-performing models that do not utilize general pre-training, such as HQGA. These results underscore the importance of effectively importing and aligning external knowledge for complex video understanding tasks.

Conclusion

CCVQA demonstrates that bridging the gap between general-purpose pre-trained models and domain-specific tasks is key to advancing VideoQA. By using prompts as a bridge and an efficient keyframe-based attention mechanism, the model captures salient content while managing computational overhead. Future research may focus on reducing the training resource requirements and exploring temporal CLIP variants to better capture motion-centric answers.

Summary updated

BibTeX
@inproceedings{ye2023video,
  author = {Shuhong Ye and Weikai Kong and Chenglin Yao and Jianfeng Ren and Xudong Jiang},
  title = {{Video Question Answering Using Clip-Guided Visual-Text Attention}},
  booktitle = {ICIP},
  year = {2023},
  doi = {10.1109/icip49359.2023.10222286},
}
Figure