MarioQA: Answering Questions by Watching Gameplay Videos

Jonghwan Mun, Paul Hongsuck Seo, Ilchae Jung, Bohyung Han

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 adhoc 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.

1. Introduction

Video Question Answering (VideoQA) represents a significant advancement over ImageQA by introducing the temporal dimension. However, current benchmarks often fail to isolate a model's true temporal reasoning capabilities. Many datasets either require high-level "common sense" knowledge external to the video (e.g., character motivations in movies) or suffer from temporal redundancy, where questions can be answered by analyzing a single static frame.

To address these shortcomings, we introduce MarioQA, a synthetic VideoQA dataset built from Super Mario Bros. gameplay. MarioQA serves as a controlled testbed where visual information is unambiguous, allowing researchers to focus strictly on measuring and diagnosing a model's ability to perform temporal logic and sequence analysis.

2. Methodology

2.1 Automatic QA Generation

The core of our framework is the automated generation of video clips and corresponding QA pairs from the Infinite Mario Bros. game engine. By leveraging internal game logs, we can extract ground-truth events with perfect accuracy, eliminating human annotator bias.

The MarioQA generation pipeline: from target event selection to final QA pair.

As illustrated in the pipeline above, the process involves four stages: (a) selecting a target event from the gameplay log, (b) creating a semantic chunk representing the question's core logic, (c) sampling a natural language template, and (d) generating the final QA pair. This structured approach allows us to vary the complexity of the questions systematically.

2.2 Model Architecture

We evaluate several baseline neural network configurations to establish performance benchmarks. These models share a common backbone:

  • Video Encoding: A 3D Fully Convolutional Network (3DFCN) extracts spatio-temporal features from video volumes.
  • Question Encoding: A pre-trained Gated Recurrent Unit (GRU) using Skip-thought vectors converts questions into embeddings.
  • Fusion & Attention: We explore three integration strategies: Temporal Attention (weighting specific frames), Spatio-temporal Attention (attending to regions within frames), and Global Context (GC) Embedding (compressing the video volume via fully connected layers).

3. The MarioQA Dataset

The MarioQA dataset consists of 187,757 QA pairs derived from 13 hours of gameplay. To facilitate diagnostic testing, the dataset is categorized into three subsets based on temporal difficulty:

  • No Temporal (NT): Questions regarding unique events that do not require timing (e.g., "What state is Mario in?").
  • Easy Temporal (ET): Questions involving temporal phrases (e.g., "What happened before X?") where the events are globally unique within the clip.
  • Hard Temporal (HT): The most challenging subset, containing "distractor" events. For instance, if Mario jumps three times, the model must precisely locate the correct jump in the sequence to answer accurately. This subset explicitly prevents models from "cheating" via single-frame inference.

4. Results and Discussion

Our experiments confirm that MarioQA successfully requires multimodal integration; "Video Only" and "Question Only" baselines performed poorly (~21% and ~40% respectively).

Key findings include:

  • Temporal Training Impact: Models trained exclusively on the NT subset failed significantly on HT tasks (scoring as low as 25.24%). However, when trained on the full combined dataset (NT+ET+HT), accuracy on the HT subset improved to nearly 69%.
  • Cross-Pollination: Training on harder temporal tasks (HT) improved performance on simpler, non-temporal tasks (NT), suggesting that learning temporal structure builds a more robust overall video representation.
  • Attention vs. Global Context: For short clips (3-6 seconds), the Global Context (GC) model was highly competitive with complex attention mechanisms, achieving roughly 70% overall accuracy across all subsets.

5. Conclusion

MarioQA provides a rigorous framework for evaluating temporal reasoning in VideoQA models. By using synthetic gameplay data, we isolate the challenges of temporal logic from the noise of real-world visual complexity. Future work will extend this framework to explore causal reasoning and long-term memory tasks in even more complex gameplay scenarios.

Summary updated

BibTeX
@inproceedings{mun2017marioqa,
  author = {Jonghwan Mun and Paul Hongsuck Seo and Ilchae Jung and Bohyung Han},
  title = {{MarioQA: Answering Questions by Watching Gameplay Videos}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=B1WbM-MdWB},
}
Figure