TimeCraft: Navigate Weakly-Supervised Temporal Grounded Video Question Answering via Bi-directional Reasoning

Huabin Liu, Xiao Ma, Cheng Zhong, Yang Zhang, Weiyao LinECCV 2024

Abstract

Grounded Video Question Answering (GVQA) requires models to provide both an answer and the corresponding video segment as evidence. However, obtaining temporal annotations for training is costly. We present TimeCraft, a framework for weakly-supervised GVQA that leverages bi-directional reasoning. By generating dual question-answer pairs using Large Language Models (LLMs) and enforcing cycle-consistency across forward and inverse reasoning paths, TimeCraft learns to ground answers without explicit timing labels. Our approach achieves state-of-the-art performance on benchmarks like NExT-GQA and Env-QA, demonstrating that improved grounding leads to more accurate and reliable video reasoning.

Introduction

Standard Video Question Answering (VQA) models often achieve high accuracy by exploiting language biases or spurious correlations rather than truly understanding visual temporal dynamics. To address this, Grounded VQA (GVQA) was introduced, requiring models to localize the specific video segment (the "grounding") that supports their answer.

Figure 1: Comparison between standard VQA and the proposed bi-directional GVQA framework, including an example of dual Q&A generation.

While effective, GVQA typically relies on expensive manual temporal annotations. TimeCraft addresses weakly-supervised GVQA, where the model must learn to ground its answers using only video-level Q&A pairs. The core challenge is ensuring the model "watches" the correct part of the video without being told where it is during training.

Methodology

TimeCraft introduces a bi-directional reasoning framework that creates a self-supervised learning loop. The process involves two main components:

1. Dual Q&A Generation

Using an LLM (e.g., Llama-2), the system transforms a standard Q&A pair into its temporal or causal "dual." For instance, a question about what happened after an event is mirrored by a question about what happened before the subsequent event. This forces the model to understand the symmetry of temporal events.

2. Bi-directional Reasoning and Cycle-Consistency

The model processes both the original and dual Q&A pairs through parallel paths:

  • Forward Path: The model takes the original question, predicts a temporal segment using a learnable Gaussian function, generates an answer, and then attempts to reconstruct the dual question from that specific segment.
  • Inverse Path: The model starts with the dual question and attempts to reconstruct the original question from its predicted segment.
Figure 4: The TimeCraft bi-directional training framework, illustrating the forward and inverse paths and the cycle-consistency losses ($L_{recon}$, $L_{ground}$) used for self-guidance.

By enforcing a cycle-consistency loss, the model is penalized if the temporal segments or reconstructed questions from these two paths do not align. This ensures that the grounding is logically tied to the reasoning process, effectively using the dual question as a bridge to verify the evidence.

Experimental Results

TimeCraft was evaluated on two primary benchmarks: NExT-GQA (complex causal/temporal questions) and Env-QA (dynamic environment reasoning).

  • State-of-the-Art Performance: On NExT-GQA, TimeCraft achieved a Grounded Accuracy (Acc@GQA) of 18.5%, significantly outperforming previous weakly-supervised methods.
  • Grounding Quality: The model showed a substantial improvement in temporal overlap (mIoU), particularly in causal reasoning tasks, rising from 9.1% to 11.3%.
  • Generalization: On Env-QA, TimeCraft improved accuracy across nearly all categories, especially for "Event" and "Order" questions, proving that better grounding directly translates to better answering.

Discussion and Limitations

The results indicate a "virtuous cycle" where improved localization of video evidence leads to more accurate answers. However, the bi-directional approach doubles the computational overhead during training due to the dual forward passes. Additionally, the system's performance is sensitive to the quality of the LLM-generated dual questions; the authors found that models like Llama-2 13B provided more focused logical counterparts than some larger models that introduced distracting common-sense information.

Future work will explore adaptive frame sampling to handle longer video sequences and reducing the computational cost of the bi-directional training loop.

Summary updated

BibTeX
@inproceedings{liu2024timecraft,
  author = {Huabin Liu and Xiao Ma and Cheng Zhong and Yang Zhang and Weiyao Lin},
  title = {{TimeCraft: Navigate Weakly-Supervised Temporal Grounded Video Question Answering via Bi-directional Reasoning}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72652-1\_6},
}
Figure