Robust Test-time Video-Text Retrieval: Benchmarking and Adapting for Query Shifts

Bingqing Zhang, Zhuo Cao, Heming Du, Yang Li, Xue Li, Jiajun Liu, Sen Wang

TL;DR

Video-Text Retrieval (VTR) models are notoriously fragile when faced with real-world "query shifts" like fog, motion blur, or compression artifacts. This paper introduces MLVP, a comprehensive benchmark for video robustness, and HAT-VTR, a test-time adaptation framework. HAT-VTR restores performance by directly counteracting "hubness"—a phenomenon where a few videos erroneously dominate search results—using a specialized memory module and temporal consistency losses.

The Challenge: Query Shifts and the "Hubness" Problem

Video-Text Retrieval (VTR) is the engine behind searching for videos using text (and vice versa). While modern models perform beautifully on clean, "in-distribution" datasets, they often collapse when encountering real-world "query shifts." These shifts include environmental factors (fog, snow), camera artifacts (motion blur, defocus), or digital issues (H.264 compression).

The authors identify two major gaps in current research:

  1. Lack of Video-Specific Benchmarking: Existing robustness benchmarks primarily focus on static images. They ignore the unique spatio-temporal dynamics of video, such as how an occlusion moves over time or how temporal consistency is maintained across frames.
  2. The Hubness Problem: The authors discovered that query shifts exacerbate "hubness" in high-dimensional embedding spaces. Under distribution shift, a small handful of gallery items (videos) become "hubs" that attract a disproportionate number of queries. These hubs effectively "hog" the top search results, drowning out the correct matches.
Illustration of the hubness problem, where a few items dominate the retrieval results under corrupted conditions.

Introducing HAT-VTR

To address these vulnerabilities, the authors propose HAT-VTR (Hubness Alleviation for Test-time Video-Text Retrieval). This framework adapts a pre-trained model to a new domain on-the-fly during inference, using only the unlabeled test stream.

Key innovations of HAT-VTR include:

  • Hubness Suppression Memory (HSM): A dynamic module that tracks recent retrieval patterns. It performs bilateral normalization on similarity scores to demote overly "popular" gallery items (the hubs) while preserving high-confidence matches.
  • Multi-granular TCR Learning: This extends the "Representation Uniformity" principle to video using two types of losses:
  • Uniformity Loss: Ensures video representations are spread out in the embedding space (inter-video) and maintains diversity across frames within a single video (intra-video).
  • Cross-modal Alignment: Aligns video and text features at both the global (video-level) and local (frame-level) scales.
  • Reliable Memory (RM): A stable history of high-confidence query-gallery pairs that prevents the model from "forgetting" or collapsing during the rapid online adaptation process.

The MLVP Benchmark

To systematically evaluate these models, the paper introduces the MLVP (Multi-Level Video Perturbations) benchmark, featuring 12 types of perturbations across three hierarchical levels:

  • Low-level (Pixel): Gaussian noise, Fog, Snow, H.264 compression.
  • Mid-level (Object/Motion): Motion blur, Video defocus, and a novel "Main Object Occlusion" (using a Vision-Language Model to identify and hide the primary subject).
  • High-level (Semantic/Temporal): Style transfer, Event insertion, and Temporal scrambling.

Key Results and Insights

The framework was evaluated across five standard VTR datasets: MSRVTT, ActivityNet, LSMDC, MSVD, and DiDeMo. The results demonstrate that retrieval failure under shift isn't just random "noise"—it's a geometric collapse that HAT-VTR successfully mitigates.

Bar chart showing HAT-VTR outperforming baseline models and existing test-time adaptation methods in Recall@1.
  • Significant Robustness Gains: On the MSRVTT dataset under severe (Level 5) perturbations, HAT-VTR improved the Recall@1 (R@1) from a baseline of 17.0% to 26.2% (using the CLIP4Clip architecture).
  • Outperforming SOTA: HAT-VTR consistently outperformed existing test-time adaptation (TTA) methods like TCR and EATA across all 12 perturbation types.
  • Efficiency: Despite the added complexity, HAT-VTR is highly efficient. It processes queries in approximately 32ms, which is only a 6ms overhead compared to simpler TTA methods, making it suitable for real-time applications on a single GPU.
  • Generalization: The method proved effective across different model architectures, including both coarse-grained (CLIP4Clip) and fine-grained (X-Pool) alignment models.

Limitations and Future Work

While highly effective, the authors note a few limitations. There is currently a lack of deep theoretical analysis on why specific corruptions trigger hubness more than others. Additionally, the performance gains are most dramatic in severe shift scenarios; the advantage is less pronounced when the data shift is very mild. Future work may focus on integrating hubness-awareness directly into the learning objectives (loss functions) rather than applying it at the similarity score level for even tighter coupling.

Summary updated

BibTeX
@inproceedings{zhang2026robust,
  author = {Bingqing Zhang and Zhuo Cao and Heming Du and Yang Li and Xue Li and Jiajun Liu and Sen Wang},
  title = {{Robust Test-time Video-Text Retrieval: Benchmarking and Adapting for Query Shifts}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FRkJ3ehpNN},
}
Figure