Dense-Caption Matching and Frame-Selection Gating for Temporal Localization in VideoQA

Hyounghun Kim, Zineng Tang, Mohit Bansal

Abstract

Hyounghun Kim, Zineng Tang, Mohit Bansal. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

2020.

Introduction

Video Question Answering (VideoQA) presents a significantly more complex challenge than standard ImageQA. To answer a question such as "What was Sheldon holding when he walked into the kitchen?", a model must navigate a multimodal stream of video frames and subtitles. The primary hurdle is temporal localization: in a typical 60-second clip, the relevant information might occupy only a 3-second window. Most existing models struggle to filter out the "noise" of irrelevant frames. Furthermore, mapping raw visual pixels directly to abstract natural language concepts is difficult. This research addresses these gaps by making the frame-filtering process explicit and enriching the model with text-based descriptions of visual scenes.

Methodology

The proposed architecture rests on three innovative pillars designed to enhance temporal reasoning and multimodal alignment.

Overview of the proposed model architecture, highlighting the integration of dense captions and frame-selection gating.

1. Dense-Caption Integration

Instead of relying solely on raw video features, the model incorporates "dense captions"—detailed textual descriptions of specific regions and actions within each frame generated by a pre-trained system. This transforms visual data into a "semi-symbolic" format, facilitating easier matching against the text of a question.

2. Dual-Level Attention

The model employs a two-stage attention mechanism. First, it aligns words in the question with specific objects or words in the subtitles and dense captions (word/object level). Second, it aggregates this information across the timeline to identify relationships between different moments (frame level).

3. Frame-Selection Gating and Novel Losses

Frame selection is cast as a supervised multi-label classification task. The model uses "gates" to determine which frames should proceed to the final classifier. To train these gates effectively against human-annotated importance spans, two new loss functions were introduced:

  • In-and-Out Frame Score Margin (IOFSM): This encourages the model to maximize the score gap between relevant "in-frames" and irrelevant "out-frames."
  • Balanced Binary Cross-Entropy (BBCE): Since most frames are irrelevant, BBCE balances the loss calculation to prevent the model from developing a bias toward ignoring all frames.

Experimental Setup

The model was evaluated on the TVQA dataset, which contains over 152,000 QA pairs from six popular TV shows (The Big Bang Theory, Friends, How I Met Your Mother, Grey's Anatomy, House, and Castle). This dataset is particularly demanding as it requires localized reasoning across both visual and dialogue-based cues.

Results and Discussion

The full model achieved a state-of-the-art 74.09% accuracy on the TVQA test-public leaderboard, a 3.57% improvement over the previous best of 70.52%. Ablation studies confirmed that every component added value: the combination of dual-attention and gating improved the baseline significantly, while the addition of RoBERTa embeddings and dense captions provided the final performance boost.

Attention saliency mapping showing the alignment between Question-Answer pairs and dense captions.

A key insight from this work is that text serves as an excellent intermediate representation. By converting visual regions into dense captions, the model can perform "keyword matching" between the question and the video. As shown in the saliency mapping, it is much easier for a model to connect the word "holding" in a question to the caption "man holding a glass" than to raw pixel clusters.

Furthermore, the results suggest that explicit supervision for temporal localization outperforms latent attention. By training the model on human-annotated spans, it learns to more effectively filter irrelevant content. The architecture also demonstrated robustness across different TV genres, showing lower performance variance compared to previous models.

Conclusion

While the model sets a new benchmark, challenges remain regarding the computational cost of generating dense captions for long videos. Future work could focus on more efficient, end-to-end extraction methods. Additionally, the novel loss functions (IOFSM and BBCE) developed here have potential applications in broader fields such as video summarization and action detection.

Summary updated

BibTeX
@inproceedings{kim2020dense,
  author = {Hyounghun Kim and Zineng Tang and Mohit Bansal},
  title = {{Dense-Caption Matching and Frame-Selection Gating for Temporal Localization in VideoQA}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=enYBgLqrECy},
}
Figure