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

Hamza Farach1,3,4,*  ·  Renaud Vandeghen1,*  ·  Fida Mohammad Thoker2,*
Bernard Ghanem2  ·  Anthony Cioppa1
1University of Liège    2KAUST    3Keio University    4École Centrale de Nantes
* Equal contribution
Zero-shot retrieval radar chart
Zero-shot text-to-video retrieval. ViFCLIP-L (blue) vs. video-text dual encoders across coarse-grained, fine-grained and long-context benchmarks.

Abstract

Video-text representation learning has shown promising capabilities in many multi-modal applications. Current methods follow the de-facto vision-text alignment during pre-training, allowing a shared representation. However, video-text alignment methods train on coarse-grained text description, resulting in weak representations for detailed, fine-grained descriptions. While some approaches tried to incorporate long captions for learning fine-grained representations, they only rely on a global video-text alignment, failing to effectively capture such fine-grained details. To address this issue, we propose ViFCLIP, a video-text model trained with fine-grained video-text alignment. Our model integrates learnable frame-tokens, allowing a fine-grained visual representation beyond the global video representation. We also adopt a subcaption sampling strategy that generates diverse and multi-granular fine-grained textual supervision extracted from detailed captions. Finally, our fine-grained alignment method relies on a token-to-token interaction where each subcaption is aligned with its most similar frame-token. Our model shows SOTA results on many zero-shot text-to-video retrieval datasets against prior video-text dual encoders and MLLM models.

Contributions

1

LongViCLIP: a strong baseline

We extend ViCLIP to learn from multiple summary and detailed captions per video, with a global video-text alignment.

2

ViFCLIP: global + fine-grained

We add learnable frame and register tokens, temporal attention blocks and subcaption sampling. Each subcaption is aligned with its most relevant token through MaxSim.

3

SOTA zero-shot retrieval

State-of-the-art results on coarse-grained, fine-grained and long-context benchmarks, against video-text dual encoders and MLLM-based models.

Method

ViFCLIP keeps the global video-text alignment and adds a fine-grained one.

ViFCLIP architecture and token legend
ViFCLIP. The [CLS] token is trained with Lglobal on summary and detailed captions. Frame and register tokens are trained with Lsub on sampled subcaptions.

Frame & register tokens

Learnable frame tokens add a localized representation beyond the global [CLS]. Register tokens capture what doesn't belong to a single frame. Attention masking sets what each token sees.

Subcaption sampling

Detailed captions are split into sentences, then randomly combined into diverse, multi-granular subcaptions, giving rich textual supervision from a single video.

MaxSim alignment

Each subcaption is aligned with its most relevant visual token without requiring explicit temporal supervision. A subcaption spanning several moments goes to a register token.

Attention masks
Attention masking. Each token type ([CLS], patch, frame, register) attends to a different set of keys.
Fine-grained alignment using MaxSim
Fine-grained alignment using MaxSim. Subcaptions describing one moment match a single frame token (s1, s2). One spanning several moments is aligned with a register token (s3). One from another video is a negative (s4).

State-of-the-art results SOTA

ViFCLIP-L sets a new SOTA on 9 of 15 zero-shot text-to-video retrieval benchmarks and is top-2 on 11 of 15, against both video-text dual encoders and MLLM-based models.

56.3
DiDeMo R@1 SOTA
+3.8 vs LongViCLIP-L
91.5
CRB-G R@1 SOTA
+3.4 vs LongViCLIP-L
38.7
DREAM-E R@1 SOTA
+4.6 vs LongViCLIP-L
60.7
LoVR-TH R@10 SOTA
+11.8 vs LongViCLIP-L
MethodMSRVTTDiDeMoANetMSVDLSMDCCRB-G
MLLM-based
GME-2B37.930.235.149.619.873.2
UNITE-2B43.837.343.150.822.379.4
VLM2Vec-V229.030.922.039.116.380.6
BGE-VL40.037.035.349.921.486.5
GVE-3B43.038.941.950.519.485.0
CLIP-style
CLIP4Clip32.829.725.540.316.750.7
ViCLIP-L38.432.825.851.019.145.0
VideoCLIP-XL43.940.447.253.520.782.9
UMT-L32.931.324.046.017.844.8
LanguageBind47.840.144.855.020.471.5
InternVideo2-1B45.142.845.658.224.258.7
Ours
LongViCLIP-B43.350.248.552.919.386.6
ViFCLIP-B43.953.549.555.121.288.6
LongViCLIP-L46.952.555.257.224.388.1
ViFCLIP-L48.856.355.158.125.791.5

Zero-shot text-to-video retrieval, R@1. Bold: best, underline: second best. Same evaluation protocol for all models.

SpatialTemporalPartially rel.Long-context
MethodCRB-SVDC-OCRB-TCMRBDREAM-ELoVR-THPEV-KLoVR-VVDC-D
MLLM-based
GME-2B76.872.742.926.725.240.736.919.085.3
UNITE-2B80.976.347.030.327.649.236.482.083.1
VLM2Vec-V279.876.930.227.523.347.824.063.087.7
BGE-VL86.576.644.831.225.247.930.473.085.8
GVE-3B83.976.547.436.227.756.433.867.091.0
CLIP-style
CLIP4Clip49.662.330.427.619.834.817.932.055.3
ViCLIP-L44.354.035.623.424.121.37.723.038.2
VideoCLIP-XL84.072.948.727.326.743.722.738.081.7
UMT-L44.157.234.032.621.423.34.026.047.0
LanguageBind71.376.846.230.228.842.630.358.066.1
InternVideo2-1B57.464.246.736.024.330.62.726.047.9
Ours
LongViCLIP-B85.676.554.531.129.541.016.242.078.3
ViFCLIP-B89.081.958.432.434.855.310.860.087.1
LongViCLIP-L87.882.360.832.434.148.920.849.076.9
ViFCLIP-L90.983.162.134.238.760.78.465.084.0

Zero-shot text-to-video retrieval, R@1 (R@10 for CMRB and LoVR-TH). Bold: best, underline: second best. Same evaluation protocol for all models.

MethodK400K600K700
CLIP4Clip49.647.038.0
ViCLIP-L59.957.949.9
VideoCLIP-XL63.461.253.5
Ours
LongViCLIP-L65.262.655.2
ViFCLIP-L (CLS only)65.363.656.0

Zero-shot action classification, top-1 accuracy using the [CLS] token. Bold: best, underline: second best.

BibTeX

@article{Farach2026ViFCLIP,
  title   = {{ViFCLIP}: Video-text Representation Learning with Fine-grained Video-text Alignment},
  author  = {Farach, Hamza and Vandeghen, Renaud and Thoker, Fida Mohammad and Ghanem, Bernard and Cioppa, Anthony},
  journal = {arXiv preprint},
  year    = {2026}
}