Number it: Temporal Grounding Videos like Flipping Manga

Yongliang Wu, Xinting Hu, Yuyang Sun, Yizhou Zhou, Wenbo Zhu, Fengyun Rao, Bernt Schiele, Xu Yang

Abstract

Video Large Language Models (Vid-LLMs) excel at content description but struggle with temporal grounding—the ability to pinpoint exactly when events occur. This paper introduces Number-Prompt (NumPro), a simple yet effective technique that overlays frame numbers onto video frames. By converting temporal reasoning into a visual recognition task, NumPro achieves state-of-the-art results across major benchmarks without requiring complex architectural modifications.

Introduction

Current Vid-LLMs, such as GPT-4o and Qwen2-VL, demonstrate a significant "grounding gap." While their internal attention mechanisms often identify the correct frames for a given query, the models struggle to translate this visual focus into accurate numerical timestamps, often resulting in illogical or "hallucinated" time ranges (e.g., claiming an event in a 10-frame video lasts 580 frames). Previous attempts to solve this involved specialized "time tokens" or architectural changes that are difficult to generalize across different models.

The NumPro Method

The authors propose Number-Prompt (NumPro), inspired by how readers navigate stories through numbered panels in a manga. By overlaying a unique numerical identifier on every video frame, the model can leverage its existing Optical Character Recognition (OCR) and visual-language alignment capabilities to "read" the timeline directly.

The NumPro concept uses a manga-like numbering system to help models navigate video timelines.

NumPro can be applied in two primary settings:

  1. Training-free: Numbers are added to the video frames, and the text prompt is updated to explain their meaning (e.g., "The red numbers on each frame represent the frame number"). This allows top-tier models like GPT-4o to gain temporal awareness without retraining.
  2. Fine-tuned (NumPro-FT): The model is trained on a massive instruction dataset of 220,000 samples—curated from existing datasets like DiDeMo, ActivityNet Captions, and VTimeLLM—to further align its visual perception with temporal logic.

To ensure the numbers do not obscure critical visual information, the team conducted a CLIP-based optimization study across thousands of images. They sought a "Goldilocks" zone for the visual prompt, eventually settling on red text at font size 40, positioned in the bottom-right corner. This design was found to be easily readable by the AI while remaining minimally disruptive to the underlying scene.

Example of the optimized NumPro visual overlay on a video frame, featuring a red number in the bottom-right corner.

Experimental Results

NumPro-FT established new state-of-the-art (SOTA) benchmarks for Moment Retrieval and Highlight Detection across datasets including Charades-STA, ActivityNet, and QVHighlights. In training-free settings, it significantly boosted the performance of existing models. For example, Qwen2-VL-7B's mean Intersection over Union (mIoU) on ActivityNet jumped from a baseline of 12.5% to 31.3% simply by adding frame numbers. The method proved effective across various architectures, including LLaVA-Video and LongVA, demonstrating its model-agnostic nature.

Conclusion and Future Work

NumPro offers a "free lunch" for video temporal grounding by transforming a complex reasoning problem into a straightforward visual search task. While highly effective, the authors note that performance remains sensitive to sampling density; very sparse sampling may cause models to miss fast-paced events. Future work may extend this "visual prompting" logic to other markers for navigating 3D space or complex multi-object interactions. Ultimately, NumPro bridges the grounding gap with minimal computational overhead and no structural changes to underlying LLMs.

Summary updated

BibTeX
@inproceedings{wu2025number,
  author = {Yongliang Wu and Xinting Hu and Yuyang Sun and Yizhou Zhou and Wenbo Zhu and Fengyun Rao and Bernt Schiele and Xu Yang},
  title = {{Number it: Temporal Grounding Videos like Flipping Manga}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01284},
}
Figure