Scene-Text Grounding for Text-Based Video Question Answering

Sheng Zhou, Junbin Xiao, Xun Yang, Peipei Song, Dan Guo, Angela Yao, Meng Wang, Tat-Seng Chua

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:

  1. 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.
  2. 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.
Fig. 1: Comparison between existing research and our work for TextVideoQA. (a) Existing research has two major problems: 1) Opaque decision-making; they hardly tell if their answers (e.g., “30”) are originated from the relevant scene texts in the videos, or attributed to other short-cuts. 2) Heavy reliance on scene-text recognition; their low QA accuracy could be due to a failure in decoding the textual answer (e.g., “30 M.P.H.”) from the corresponding scene text region. (b) We establish a novel pipeline by temporal-spatially localizing the scene text region and then decoding them into textual answers. We also enable direct evaluation on the grounded scene-text region.

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:

  1. 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.
  2. Contrastive Temporal-Spatial Grounding (TSG):
  3. 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.
  4. Spatial Grounding: Within the selected frames, the model pinpoints the exact OCR tokens that contain the answer.
  5. 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.
Fig. 1: Comparison between existing research and our work for TextVideoQA. (a) Existing research has two major problems: 1) Opaque decision-making; they hardly tell if their answers (e.g., “30”) are originated from the relevant scene texts in the videos, or attributed to other short-cuts. 2) Heavy reliance on scene-text recognition; their low QA accuracy could be due to a failure in decoding the textual answer (e.g., “30 M.P.H.”) from the corresponding scene text region. (b) We establish a novel pipeline by temporal-spatially localizing the scene text region and then decoding them into textual answers. We also enable direct evaluation on the grounded scene-text region.

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.

TABLE I: Statistics of ViTXT-GQA 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

Abstract

Existing efforts in text-based video question answering (TextVideoQA) are criticized for their opaque decisionmaking and heavy reliance on scene-text recognition. In this paper, we propose to study Grounded TextVideoQA by forcing models to answer questions and spatio-temporally localize the relevant scene-text regions, thus decoupling QA from scenetext recognition and promoting research towards interpretable QA. The task has three-fold significance. First, it encourages scene-text evidence versus other short-cuts for answer predictions. Second, it directly accepts scene-text regions as visual answers, thus circumventing the problem of ineffective answer evaluation by stringent string matching. Third, it isolates the challenges inherited in VideoQA and scene-text recognition. This enables the diagnosis of the root causes for failure predictions, e.g., wrong QA or wrong scene-text recognition? To achieve Grounded TextVideoQA, we propose the T2S-QA model that highlights a disentangled temporal-to-spatial contrastive learning strategy for weakly-supervised scene-text grounding and grounded TextVideoQA. To facilitate evaluation, we construct a new dataset ViTXT-GQA which features 52K scene-text bounding boxes within 2.2K temporal segments related to 2K questions and 729 videos. With ViTXT-GQA, we perform extensive experiments and demonstrate the severe limitations of existing techniques in Grounded TextVideoQA. While T2S-QA achieves superior results, the large performance gap with human leaves ample space for improvement. Our further analysis of oracle scene-text inputs posits that the major challenge is scene-text recognition. To advance the research of Grounded TextVideoQA, our dataset and code are at https://github.com/zhousheng97/ViTXT-GQA.git
BibTeX
@article{zhou2026scene,
  author = {Sheng Zhou and Junbin Xiao and Xun Yang and Peipei Song and Dan Guo and Angela Yao and Meng Wang and Tat-Seng Chua},
  title = {{Scene-Text Grounding for Text-Based Video Question Answering}},
  journal = {IEEE Trans. Multimedia},
  year = {2026},
  doi = {10.1109/tmm.2025.3639956},
}
Figure