Video question answering supported by a multi-task learning objective

Alex Falcon, Giuseppe Serra, Oswald LanzMultimedia Tools and Applications 2023 · DOI

Abstract

Video Question Answering (VideoQA) requires sophisticated reasoning over temporal visual sequences to answer natural language queries. While significant progress has been made in visual representation, the role of language embeddings and auxiliary training objectives is less understood. This study investigates the impact of various word embeddings—GloVe, ELMo, BERT, and XLM—integrated into three distinct VideoQA architectures. We further introduce a multi-task learning (MTL) objective focused on question-type classification. Evaluations on the EgoVQA and PororoQA datasets reveal that contextual embeddings like BERT significantly improve accuracy, especially for causal reasoning, and that the MTL objective serves as an effective regularizer across diverse architectures.

Introduction

Video Question Answering (VideoQA) is a complex "vision-plus-language" task where a model must reason over temporal visual data to answer a natural language question. While the computer vision community has rapidly adopted state-of-the-art video encoders, the language component of VideoQA has often relied on older, static word embeddings like GloVe or word2vec. This paper addresses the gap in systematic study regarding how modern, contextual embeddings (like BERT) interact with VideoQA architectures and how specialized embeddings might excel at different question types, such as identifying objects versus understanding causality.

Methodology

The researchers adopted a two-pronged approach to enhance VideoQA performance:

1. Embedding Integration

Four popular word embedding techniques—GloVe (static), ELMo (LSTM-based contextual), BERT, and XLM (Transformer-based)—were integrated into three established VideoQA architectures:

  • ST-VQA: A baseline utilizing spatial-temporal attention.
  • CoMem: A model employing appearance and motion memory banks.
  • HME-VQA: A complex architecture featuring heterogeneous memory and multi-step reasoning.

2. Multi-Task Learning (MTL)

To leverage the observation that question types significantly influence model behavior, the authors proposed an auxiliary task. In addition to the primary task of answer generation ($L_A$), they introduced a secondary "Question Type Classifier" head to the text encoder. This forces the model to explicitly categorize the question (e.g., identifying if a question concerns an action or a color) using a classification loss ($L_C$). The final training objective is a joint loss: $L = L_A + L_C$.

Comparison of standard (a) and augmented (b) VideoQA architectures featuring the multi-task learning classifier.

Experimental Setup

The models were evaluated on two distinct public datasets:

  • EgoVQA: A challenging dataset of egocentric (first-person) videos containing roughly 600 QA pairs across eight categories (e.g., actions, objects, colors).
  • PororoQA: A larger dataset based on the animated series "Pororo the Little Penguin," featuring approximately 8,800 QA pairs. This dataset is particularly rich in complex question types like "Causality" and "Abstract" concepts.

Results and Discussion

The Impact of Contextual Embeddings

Experimental results indicate that there is no single embedding that dominates all tasks. While BERT was the strongest overall performer, simpler GloVe embeddings actually outperformed BERT on the EgoVQA dataset when identifying objects held by the camera wearer. However, for complex "Causality" questions (e.g., "What happened when the egg broke?"), Transformer-based models (BERT/XLM) showed a significant advantage. Their deep, bidirectional architecture helps capture the intricate relationships between sequential events.

Multi-Task Learning as a Regularizer

Adopting the MTL strategy provided an average accuracy boost of 1.0% on PororoQA and up to 1.4% for specific models on EgoVQA. By forcing the model to recognize the question type, the fusion module learns to better align textual cues with relevant visual features, such as focusing on temporal motion for action-oriented questions.

Performance and Inference Trade-offs

On the PororoQA dataset, switching to BERT embeddings improved the ST-VQA baseline from 36.8% to 39.7%. In causality-specific queries, BERT and XLM achieved over 42% accuracy, a substantial margin over ELMo and GloVe (~32-33%). However, these gains come with a computational cost: while GloVe inference takes approximately 5ms per sample, BERT and ELMo increase this to 50-75ms, which may impact real-time application feasibility.

Conclusion

This research highlights that the choice of word embedding is a critical, yet often overlooked, hyperparameter in VideoQA. Furthermore, incorporating question-type classification as an auxiliary task consistently improves performance across various architectures. Future work will explore newer language models like RoBERTa and automated methods for question-type identification to further refine the alignment between visual and textual data.

Summary updated

BibTeX
@article{falcon2023video,
  author = {Alex Falcon and Giuseppe Serra and Oswald Lanz},
  title = {{Video question answering supported by a multi-task learning objective}},
  journal = {Multimedia Tools and Applications},
  year = {2023},
  doi = {10.1007/s11042-023-14333-0},
}
Figure