Grounding in the Dark: Text-Only Training for Zero-Shot Video Temporal Localization

Divyanshu Mishra, Sabine Sternig, Rakshith Shetty, Erhan Gundogdu

TL;DR

This paper explores training Large Language Models (LLMs) for video temporal grounding using text-only data, completely removing the need for expensive paired video-text annotations during training. By introducing Nearest Entity Replacement (NER)—a technique that maps video frames to their closest textual concepts at inference time—the authors bridge the "modality gap" and achieve state-of-the-art zero-shot transfer from text to video.

What Problem Does This Paper Address?

Video-LLMs are traditionally trained on massive datasets of paired video and text. For tasks like temporal localization (finding the start and end times of a specific event, like "a person drinks water"), this requires frame-level annotations that are incredibly costly and time-consuming to produce.

The authors ask a provocative question: Can a model learn to understand time and events from text alone and then "zero-shot" transfer that knowledge to actual video?

The challenge is twofold:

  1. The Modality Gap: Even though models like CLIP align images and text in a shared space, the actual distributions of visual and textual embeddings are different. A model trained on text embeddings often "breaks" when suddenly fed visual embeddings at test time.
  2. Information Density: Standard text encoders (like CLIP's) struggle to compress detailed, frame-by-frame descriptions into a single vector without losing the fine-grained details necessary for precise localization.
Figure 1: Paired video-text training versus our text-only training and video-inference setting.

Methods

The researchers developed a pipeline to train a temporal grounding model "in the dark":

  1. Synthetic Corpus Generation: They used a powerful LLM (Qwen3-27B) to expand short video captions into Temporal-TextVid, a dataset of 134K examples. Each example contains a sequence of up to 100 detailed "frame-level" textual descriptions and associated grounding questions.
  2. Text-Only Training: They adapted a Qwen3-8B model using LoRA (Low-Rank Adaptation). During training, the model only sees text embeddings from a frozen encoder (CLIP or LLM2CLIP).
  3. Nearest Entity Replacement (NER): To solve the modality gap at inference time, they proposed NER. Instead of feeding the raw visual embedding of a video frame into the LLM, they use that visual embedding to retrieve the $k$ nearest textual "entities" (nouns, verbs, phrases) from a pre-computed memory bank. They then feed the mean of these text embeddings to the model.
Figure 2: (a) Generation of frame-level textual sequences and questions. (b) Training from text embeddings and inference from video frames, with an optional modality-gap reduction step.

Datasets

  • Temporal-TextVid (New): A synthetic dataset of 134K textual sequences with frame-level descriptions and 3.9M generated questions across five categories (localization, ordering, etc.).
  • Charades-STA & QV-Highlights: Standard real-world video benchmarks used exclusively for evaluation to test how well the text-trained model transfers to real video.

Key Insights and Ideas

  • LLM2CLIP is a Game Changer: The authors found that LLM2CLIP, which uses an LLM-based text encoder, handles long, detailed descriptions much better than the standard CLIP encoder. This is crucial for temporal tasks where fine details matter.
  • The "Concept Bleed" Problem: Previous methods tried to map video frames back to whole captions. However, a caption like "a woman sits on a chair and works" contains many concepts. If a frame only shows a "chair," mapping it to the whole caption introduces "bleed" from unrelated concepts (the woman, working).
  • Soft Quantization via NER: NER avoids concept bleed by retrieving fine-grained entities (just "chair" or "sitting") rather than full sentences. This "soft semantic quantization" ensures the LLM receives the exact type of input distribution it saw during its text-only training.
Figure 3: NER vs. Caption Projection. NER avoids "concept bleed" by focusing on specific entities rather than entire, potentially unrelated captions.

Key Results

The results demonstrate that while the modality gap is significant, NER effectively bridges it:

  • Raw Transfer Fails: Simply replacing text embeddings with visual embeddings at inference results in poor performance (e.g., 4.99 mtIoU on Charades-STA).
  • NER Superiority: NER boosts performance significantly, reaching 14.45 mtIoU on Charades-STA and 20.72 mtIoU on QV-Highlights.
  • Outperforming Baselines: NER outperformed the strongest training-side baselines (like Gaussian noise injection or C3 modality centering) by substantial margins (up to 5 points mtIoU).
  • Stable over $k$: The method is robust; performance remains stable across a wide range of neighbor counts ($k$) for entity retrieval.

Limitations and Future Work

  • The Supervised Gap: While impressive for a zero-shot approach, there is still a large performance gap compared to models trained on paired video-text data (which can reach ~36 mtIoU).
  • Boundary Precision: NER is better at finding the "general neighborhood" of an event than pinpointing exact start/end frames.
  • Encoder Dependency: The system's success is heavily dependent on the quality of the underlying frozen contrastive encoders (CLIP/LLM2CLIP).
  • Future Directions: The authors suggest that learning the mapping from frames to text entities (rather than using a training-free retrieval) or using better-aligned encoders could further close the gap.

Summary updated

Abstract

Video-LLMs are typically trained on paired video-text data for temporal tasks, yet collecting precise temporal annotations and training on large-scale video datasets are both costly. We investigate whether a text-only LLM, with no vision-language pretraining, can be trained on textual video descriptions alone to perform temporal grounding and receive video only at inference time. This setting removes paired video data from training altogether and is a step toward training multimodal models without paired annotations. We generate a 134K-example corpus of textual sequences with up to 100 time steps, adapt Qwen3-8B with LoRA on CLIP or LLM2CLIP text embeddings, and evaluate on Charades-STA and QV-Highlights without training on videos from either benchmark. LLM2CLIP, whose text encoder supports longer inputs, represents detailed descriptions better than CLIP (61.54 versus 53.86 mtIoU on Temporal-TextVid) and transfers them better to video. Still, replacing text with frame embeddings at inference yields only 4.99 mtIoU on Charades-STA and 11.12 on QV-Highlights, revealing a large modality gap. To bridge it, we propose Nearest Entity Replacement (NER), a training-free mapping that represents each video frame by the normalized mean of its nearest text-entity embeddings, so that the model receives the kind of input it was trained on. NER reaches 14.45 mtIoU on Charades-STA and 20.72 on QV-Highlights, outperforming the strongest of four families of modality-gap baselines by 5.00 and 1.71 points. NER thus enables partial transfer from text to video, while more reliable grounding will likely require encoders with better-aligned text and visual representations.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Temporal-TextVidQwen3-8B + LoRA (LLM2CLIP, detailed descriptions)mtIoU61.54 0–100 scaletext-only · params=8B
Source quote
L505: LLM2CLIP 61.54
Charades-STANearest Entity Replacement (NER; LLM2CLIP, detailed descriptions)mtIoU14.45 0–100 scale0-shot · params=8B
Source quote
L525: NER outperforms every baseline on both benchmarks. With detailed LLM2CLIP, it reaches 14.45
QV-HighlightsNearest Entity Replacement (NER; LLM2CLIP, detailed descriptions)mtIoU20.72 0–100 scalesplit: val · 0-shot · params=8B
Source quote
L526: mtIoU on Charades-STA and 20.72 on QV-Highlights, 9.46 and 9.60 points above raw visual features
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Charades-STADirect raw visual-feature transfer (text-trained Qwen3-8B; LLM2CLIP, detailed descriptions) baselinemtIoU4.99 0–100 scale0-shot · params=8B
Source quote
L523: raises the detailed LLM2CLIP model from 4.99 to 7.95 mtIoU on Charades-STA and from 11.12 to
Charades-STACaption-memory projection (LLM2CLIP, detailed descriptions) baselinemtIoU7.95 0–100 scale0-shot · params=8B
Source quote
L523: raises the detailed LLM2CLIP model from 4.99 to 7.95 mtIoU on Charades-STA and from 11.12 to
QV-HighlightsCaption-memory projection (LLM2CLIP, detailed descriptions) baselinemtIoU19.01 0–100 scalesplit: val · 0-shot · params=8B
Source quote
L524: 19.01 on QV-Highlights.
BibTeX
@misc{mishra2026grounding,
  author = {Divyanshu Mishra and Sabine Sternig and Rakshith Shetty and Erhan Gundogdu},
  title = {{Grounding in the Dark: Text-Only Training for Zero-Shot Video Temporal Localization}},
  year = {2026},
  eprint = {2611.06149},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06149},
}
Figure