TL;DR
This paper introduces Grounded TextVideoQA, a novel task that requires AI models to not only answer questions about scene text in videos but also spatio-temporally localize the exact text regions used as evidence. To benchmark this task, the authors present the ViTXT-GQA dataset and propose T2S-QA, a model that leverages a two-stage temporal-to-spatial contrastive learning strategy to significantly improve text grounding and interpretability.
What Problem Does This Paper Address?
Text-based Video Question Answering (TextVideoQA) requires models to read and reason over scene text (like street signs, product labels, or shirt text) embedded within dynamic video environments. However, existing approaches suffer from two major flaws:
- Opaque Decision-Making: Current models act as black boxes. It is difficult to verify if a correct answer stems from actual text comprehension or if the model simply exploited statistical shortcuts within the dataset.
- Confounded Evaluation: Traditional metrics rely on strict string matching. If a model outputs "30" instead of the ground-truth "30 M.P.H.", it is marked completely wrong. Furthermore, when a model fails, it is impossible to tell whether the failure was due to poor video reasoning or a downstream failure in the Optical Character Recognition (OCR) system.
By forcing models to explicitly ground their answers in space and time, this paper decouples question answering from text recognition, paving the way for more interpretable and diagnostic AI systems.
Methods
The authors propose the Temporal-to-Spatial Grounding and QA (T2S-QA) framework, which breaks the problem down into a cascaded, two-stage architecture:
- Feature Representation: The model extracts multimodal features from the question (via BERT), video frames (via ViT), and OCR tokens (combining FastText, PHOC, bounding boxes, and tracking IDs). These are fused using a two-layer transformer to bridge the semantic gap between modalities.
- Contrastive Temporal-Spatial Grounding (TSG):
- Temporal Grounding: The model first identifies the specific video frames relevant to the question using a Gumbel-Softmax distribution to separate positive (relevant) frames from negative ones.
- Spatial Grounding: Within the selected frames, the model pinpoints the exact OCR tokens that contain the answer.
- Answer Decoder & Optimization: The grounded frames and text tokens are fed into a transformer-based decoder to generate the final textual answer. Crucially, the model is optimized using a novel disentangled contrastive loss ($\mathcal{L}_{cons}$) based on InfoNCE, which maximizes the semantic distance between positive and negative frame-text pairs, providing strong self-supervision.
Datasets
Because no benchmark existed for this task, the authors constructed ViTXT-GQA by manually annotating the validation and test splits of the large-scale M4-ViteVQA dataset.
The dataset contains 2,055 QA pairs across 729 videos, encompassing 2,227 annotated temporal segments and 52,494 bounding boxes. The annotations ensure that every question is tied to a specific time span and spatial bounding box where the text evidence resides.
Key Insights and Ideas
- String Matching is Flawed: Human evaluation on the dataset yielded a strict text accuracy of only 64.32%, yet human grounding accuracy was 77.39%. This proves that strict string matching penalizes perfectly reasonable answers (e.g., missing punctuation or slight variations), highlighting the value of evaluating visual answers (grounded bounding boxes) directly.
- MLLMs Struggle with Spatio-Temporal Text: State-of-the-art Multimodal Large Language Models (MLLMs) like Qwen2-VL and GPT-4o-mini achieve decent text QA scores but perform abysmally at localizing the text they claim to read, often dropping to near 0% grounding accuracy under strict settings.
- The OCR Bottleneck: An analysis using "Oracle" (perfect) bounding boxes revealed that even when the model knows exactly where the text is, the final accuracy remains low. This indicates that text recognition in dynamic video environments (plagued by motion blur and occlusions) remains the primary bottleneck for TextVideoQA.
Key Results
The authors evaluated T2S-QA against several adapted VideoQA and TextVQA baselines:
- Grounding Performance: In the relaxed Top 5×5 evaluation setting, T2S-QA achieved a spatial-temporal grounding accuracy of 28.60% [email protected], vastly outperforming standard baselines like M4C (9.13%) and specialized VideoQA models like TranSTR (14.94%).
- Zero-Shot MLLM Comparison: Under the strict Top 1×1 setting, T2S-QA achieved an [email protected] of 3.21%, outperforming Qwen2-VL (2.14%) and GPT-4o-mini (0.19%), demonstrating that specialized architectures still hold an advantage over general large models in fine-grained spatio-temporal text localization.
Limitations and Future Work
Despite outperforming existing models, T2S-QA's absolute performance (28.60% grounding in Top 5x5) leaves a massive gap when compared to human performance (77.39%). The model remains heavily reliant on the initial quality of the video OCR detection system. Future work will need to focus on end-to-end architectures that jointly optimize video text detection, recognition, and reasoning to better handle real-world distortions like motion blur and camera shake.
Summary updated