Abstract
We present a framework to analyze various aspects of models for video question answering (VideoQA) using customizable synthetic datasets, which are constructed automatically from gameplay videos. Our work is motivated by the fact that existing models are often tested only on datasets that require excessively high-level reasoning or mostly contain instances accessible through single frame inferences. Hence, it is difficult to measure capacity and flexibility of trained models, and existing techniques often rely on ad-hoc implementations of deep neural networks without clear insight into datasets and models. We are particularly interested in understanding temporal relationships between video events to solve VideoQA problems; this is because reasoning temporal dependency is one of the most distinct components in videos from images. To address this objective, we automatically generate a customized synthetic VideoQA dataset using Super Mario Bros. gameplay videos so that it contains events with different levels of reasoning complexity. Using the dataset, we show that properly constructed datasets with events in various complexity levels are critical to learn effective models and improve overall performance.
Introduction
Video Question Answering (VideoQA) extends ImageQA by introducing the dimension of time. To truly understand a video, a model must grasp dynamics, sequences, and causal relationships between events. However, existing VideoQA datasets often fail to isolate this capability. Many datasets either require high-level external knowledge (e.g., plot synopses) or contain questions answerable via a single static frame, bypassing the need for temporal reasoning.
MarioQA addresses this gap by providing a controlled, diagnostic framework. By using a synthetic environment, we can isolate and evaluate how well models understand temporal relationships between multiple events in a video sequence.
The MarioQA Dataset
To solve the dataset problem, we built a synthetic dataset generator using an open-source clone of Super Mario Bros.. Because the game engine logs every event (e.g., Mario jumping, killing a Goomba, eating a coin), we can automatically generate perfectly accurate, unambiguous question-answer pairs using predefined linguistic templates.
The dataset contains 187,757 QA pairs generated from 13 hours of gameplay. To test temporal reasoning, the dataset is split into three distinct subsets based on difficulty:
- NT (No Temporal relationship): Questions about unique events without temporal constraints (e.g., "What enemy did Mario kill?").
- ET (Easy Temporal relationship): Questions involving temporal phrases where the target event is globally unique in the clip.
- HT (Hard Temporal relationship): The most challenging subset. The video contains multiple identical events (e.g., Mario kills several Goombas), and the model must use temporal reasoning to identify the specific one asked about (e.g., "What did Mario hit before killing the Goomba?").
Experimental Setup
We established a standard VideoQA neural pipeline to evaluate model performance:
- Question Embedding: A pretrained SkipThought GRU network processes the text.
- Video Embedding: A 3D Fully Convolutional Network (3DFCN) extracts spatio-temporal visual features.
- Fusion Mechanisms: We tested several architectures, including Single-step Temporal Attention (1-T), Multi-step Temporal Attention (2-T), Spatio-Temporal Attention (ST), Average Pooling (AP), and a Global Context (GC) model using a simple multi-layer perceptron.
Key Results and Insights
Our experiments reveal that data composition dictates model capability. A model's ability to reason about time is heavily dependent on the training data rather than just its architecture.
- The Importance of Temporal Training: When the Global Context (GC) model was trained only on NT data, it scored a dismal 25.24% on the HT test set. However, when ET and HT data were added to the training mix, its HT accuracy skyrocketed to 61.35%.
- Harder Training Data Improves Baselines: Training on temporally complex subsets (ET and HT) improved accuracy even on simple, non-temporal (NT) questions.
- Top Performers: When trained on all data, the Spatio-Temporal (ST) attention model achieved the highest accuracy on the hardest task (HT) at 69.27%, closely followed by the GC model at 68.89%.
Conclusion
While Super Mario Bros. is visually simpler than real-world video, the MarioQA framework serves as a powerful diagnostic tool. It demonstrates that powerful general architectures can learn temporal relations implicitly if the dataset forces them to do so. Future work will involve expanding these templates to analyze other specific blind spots in VideoQA models, providing a continuous diagnostic testbed for the field.
Summary updated