VTD-CLIP: Video-to-Text Discretization via Prompting CLIP

Wencheng Zhu, Yuexin Wang, Hongxuan Li, Pengfei Zhu, Qinghua HuarXiv 2025

Abstract

Vision-language models bridge visual and linguistic understanding and have proven to be powerful for video recognition tasks. Existing approaches primarily rely on parameter-efficient fine-tuning of image-text pre-trained models, yet they often suffer from limited interpretability and poor generalization due to inadequate temporal modeling. To address these, we propose a simple yet effective video-to-text discretization framework. Our method repurposes the frozen text encoder to construct a visual codebook from video class labels due to the many-to-one contrastive alignment between visual and textual embeddings in multimodal pretraining. This codebook effectively transforms temporal visual data into textual tokens via feature lookups and offers interpretable video representations through explicit video modeling. Then, to enhance robustness against irrelevant or noisy frames, we introduce a confidence-aware fusion module that dynamically weights keyframes by assessing their semantic relevance via the codebook. Furthermore, our method incorporates learnable text prompts to conduct adaptive codebook updates. Extensive experiments on HMDB-51, UCF-101, SSv2, and Kinetics-400 have validated the superiority of our approach, achieving more competitive improvements over state-of-the-art methods.

Introduction

Adapting large-scale image-text models like CLIP to video is a major challenge in computer vision. Most existing methods fall into two traps: they either use simple average pooling of frame features, which ignores temporal structure and picks up "noise" from irrelevant frames, or they employ heavy, parameter-intensive temporal modeling that often overfits to specific datasets, sacrificing the broad generalization CLIP is famous for.

The authors identify a "many-to-one" alignment problem: many different visual frames might represent a single textual concept. Instead of trying to model every micro-movement, VTD-CLIP treats video as a sequence of discrete semantic events. The goal is to create a bridge that translates continuous visual streams into interpretable, text-aligned "prototypes" without losing the robust cross-modal knowledge inherited from pre-training.

Comparison of VTD-CLIP with existing CLIP adaptation strategies including vanilla, prompt-based, and adapter-based approaches.

Methods

The VTD-CLIP (Video-to-Text Discretization) framework consists of three main components:

Video-to-Text Discretization (VTD)

Instead of learning a visual codebook from scratch, which is prone to "codebook collapse," the framework repurposes the frozen CLIP text encoder. Class labels are used to generate "text-semantic prototypes." Every video frame is then "quantized" or mapped to the nearest prototype in the text-aligned embedding space. This effectively turns a video into a sequence of discrete textual tokens.

Adaptive Codebook via Prompting

To make the system flexible, learnable text prompts are utilized. This allows the textual prototypes to adapt dynamically to the specific nuances of a dataset during training, ensuring better alignment between the visual and textual domains.

Confidence-Aware Fusion (CAF)

Not all frames are equally informative; some are blurry or contain background noise. CAF uses the similarity scores from the VTD module to dynamically weight frames. High-confidence frames—those that clearly match a semantic prototype—are prioritized, while noisy or redundant frames are down-weighted during the final feature fusion.

Detailed architecture of the VTD-CLIP framework, illustrating the Video-to-Text Discretization and Confidence-Aware Fusion modules.

Results and Discussion

VTD-CLIP was evaluated on four major video recognition benchmarks: Kinetics-400 (K-400), UCF-101, HMDB-51, and Something-Something-v2 (SSv2).

Key Insights

  • Text Encoder as a Semantic Anchor: By using the text encoder as a pre-built semantic map and forcing visual features to "snap" to textual concepts, the model becomes much more interpretable.
  • Hard Assignment vs. Soft Weighting: Unlike many attention-based models that use "soft" weights, VTD-CLIP uses "hard" assignment to prototypes. This reduces ambiguity between visually similar classes by enforcing categorical boundaries.
  • Efficiency: The model is significantly faster and lighter than many competing "heavy" temporal models, achieving high accuracy with only 194 GFLOPs compared to over 287 GFLOPs for similar high-performing models.

Performance Highlights

  • Zero-Shot Superiority: VTD-CLIP excels in zero-shot settings, outperforming previous methods by 6.0% on HMDB-51 and 3.2% on UCF-101 for novel classes.
  • Fully-Supervised Accuracy: On Kinetics-400, it achieved 85.1% Top-1 accuracy using a standard ViT-B/16 backbone.
  • Robustness to Noise: Qualitative results demonstrate that the Confidence-Aware Fusion successfully ignores misclassified or irrelevant frames, leading to a cleaner and more accurate final video representation.

Conclusion

VTD-CLIP introduces an effective way to adapt CLIP for video by discretizing visual features into text-aligned semantic tokens. While it performs exceptionally well as a keyframe-based approach, future work may explore "video shots" or short segments to capture even finer-grained temporal dynamics, such as distinguishing between clockwise and counter-clockwise rotations.

Summary updated

BibTeX
@misc{zhu2025vtd,
  author = {Wencheng Zhu and Yuexin Wang and Hongxuan Li and Pengfei Zhu and Qinghua Hu},
  title = {{VTD-CLIP: Video-to-Text Discretization via Prompting CLIP}},
  year = {2025},
  eprint = {2503.18407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.18407},
}
Figure