ViFCLIP: Video-text Representation Learning with Fine-grained Video-text Alignment

Hamza Farach, Renaud Vandeghen, Fida Mohammad Thoker, Bernard Ghanem, Anthony CioppaarXiv 2026

TL;DR

Standard video-text models compress an entire video into a single global summary vector, losing the fleeting, localized details—like a brief hand gesture or a background object—that happen in individual frames. ViFCLIP fixes this by introducing frame-specific visual tokens and matching them directly to bite-sized "subcaptions" using a simple maximum-similarity search, achieving state-of-the-art video retrieval without needing expensive timestamp annotations.

What Problem Does This Paper Address?

Models like CLIP revolutionized AI by mapping images and text into a shared mathematical space. Adapting this "dual-encoder" setup to video, however, hits a bottleneck: time. Typically, a video encoder squashes all frames into one global representation (a [CLS] token) and aligns it with a short, broad caption.

Even when researchers train models on rich, multi-sentence descriptions, squeezing a complex sequence of events into a single vector blurs the details. If a long caption mentions a yellow jacket in the first second and a dimly lit bar ten seconds later, global alignment can't tell which visual moment corresponds to which phrase. How do you teach a model fine-grained, frame-level understanding without manually labeling timestamps for millions of videos?

Methods

The authors build upon a standard spatiotemporal ViT/CLIP architecture (ViCLIP) in two stages:

  1. LongViCLIP (The Strong Baseline): First, they extend the text context window and train the standard global [CLS] token simultaneously on both short summary captions and long detailed captions.
  2. ViFCLIP (The Fine-Grained Upgrade): To capture local details alongside global meaning, they introduce three novel components:
  3. Frame-Tokens & Attention Masking: Every sampled video frame gets its own learnable frame-token. Using an attention mask, each frame-token is strictly restricted to looking only at patches within its own frame, preserving local spatial info. Temporal attention blocks at the end let these frame-tokens talk to each other.
  4. Subcaption Sampling: Detailed captions are chopped into a pool of individual sentences. The model randomly concatenates 1 to 3 sentences from across a video's caption pool to create $K=12$ diverse "subcaptions."
  5. MaxSim Alignment & Register Tokens: Since the model doesn't know which frame matches a subcaption, it computes the cosine similarity between a subcaption and all visual tokens, aligning it with the single highest-scoring one (MaxSim). Crucially, they also add timeless register tokens that attend everywhere—acting as "catch-alls" for multi-moment or background descriptions.
Figure 2. Overview of ViFCLIP. (a) Interaction between different tokens in the vision encoder. (b) Subcaption generation and MaxSim operation for the fine-grained alignment. (c) The vision encoder processes sampled frames of a video to produce global [CLS], local frame- tokens and register tokens. The text encoder processes one summary caption, one detailed caption, and K subcaptions to produce their relative [EOS] representations. Global vision and text representations are aligned together, while registers and frame-tokens are aligned to subcaptions in a single joint vision-text embedding space. (d) Legend relative to the different tokens.

At inference, a video's retrieval score is simply the average of the global [CLS] similarity and the best-matching frame-token similarity.

Datasets

  • Training: Models are trained on InternVid-10M-FLT (10 million videos), paired with existing multi-view synthetic captions from MVC (4 short and 4 detailed captions per video). Ablations use a 1M-video subset. No new datasets are introduced.
  • Evaluation: Zero-shot text-to-video retrieval is tested across coarse-grained benchmarks (MSR-VTT, DiDeMo, ActivityNet, MSVD, LSMDC, CaReBench-General) and fine-grained / long-context benchmarks from UVRB (CaReBench Spatial/Temporal, VDC, DREAM-1K, LoVR, CMRB, PEV-K).

Key Insights and Ideas

  • Alignment is a one-way street: Matching each subcaption to its closest frame-token works vastly better than matching each frame-token to its closest subcaption (+2.6% R@1 on CRB-T). Why? Every subcaption describes something that actually happened in the video, whereas many video frames contain mundane filler that nobody bothered to write about.
  • Register tokens act as semantic sponges: What happens if a randomly combined subcaption spans two separate scenes, or comes from a negative video pair? Register tokens—which lack temporal coordinates—naturally absorb these unassignable or global descriptions, sparing individual frame-tokens from noisy, confusing supervision.
Qualitative example showing frame-specific subcaptions matching frame-tokens, while multi-frame and negative subcaptions route to register tokens.
  • Global and local features are true teammates: Using frame-tokens alone tanks performance on broad benchmarks (dropping 6.8 points on MSR-VTT), while [CLS] alone misses fine details. Averaging them at test time beats either representation on its own.

Key Results

ViFCLIP-L (using a ViT-L/14 backbone) sets state-of-the-art results across coarse, fine-grained, and long-context zero-shot retrieval—frequently outperforming much larger 1B–3B parameter Multimodal LLM (MLLM) embedders:

  • Coarse-grained R@1: Hits 48.8% on MSR-VTT, 56.3% on DiDeMo (+13.5 points over InternVideo2-1B), and 91.5% on CRB-G.
  • Fine-grained R@1: Reaches 90.9% on spatial queries (CRB-S), 62.1% on temporal queries (CRB-T, +13.4 points over VideoCLIP-XL), and 38.7% on partial event queries (DREAM-E, +9.9 points over LanguageBind).
  • Long-context R@1: Jumps from 49.0% (LongViCLIP-L) to 65.0% on LoVR-V, beating all prior CLIP-style models.
Figure 1. ViFCLIP is a strong video-text model. Against prior methods, our method shows state-of-the-art results on most zero- shot text-to-video retrieval benchmarks.

Limitations and Future Work

  • Keyword Blindspot: ViFCLIP struggles noticeably on the PEV-K benchmark, where R@1 drops from 20.8% (LongViCLIP-L) down to 8.4%. Because PEV-K queries are awkward concatenations of isolated single-word concepts rather than natural sentences, ViFCLIP's sentence-based subcaption training is caught off guard.
  • MLLM Long-Context Gap: While ViFCLIP dominates CLIP-style dual encoders on long-context tasks, massive 3B-parameter MLLM models (like GVE-3B) still hold an edge on ultra-long video descriptions (e.g., 91.0% vs. 84.0% on VDC-D).
  • Future Work: The authors suggest moving beyond purely contrastive objectives to even more deeply exploit the rich supervision hidden inside detailed captions.

Summary updated

BibTeX
@misc{farach2026vifclip,
  author = {Hamza Farach and Renaud Vandeghen and Fida Mohammad Thoker and Bernard Ghanem and Anthony Cioppa},
  title = {{ViFCLIP: Video-text Representation Learning with Fine-grained Video-text Alignment}},
  year = {2026},
  eprint = {2611.37688},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37688},
}
Figure