Skip to main content
QUICK REVIEW

[Paper Review] Revisiting Classifier: Transferring Vision-Language Models for Video Recognition

Wenhao Wu, Zhun Sun|arXiv (Cornell University)|Jul 4, 2022
Domain Adaptation and Few-Shot LearningComputer Science9 citations
TL;DR

This paper proposes a novel video recognition paradigm that replaces the standard linear classifier head with pre-trained textual embeddings from vision-language models like CLIP, enabling faster convergence and state-of-the-art accuracy. By leveraging semantic knowledge from the text encoder to initialize the classifier, the method achieves 87.8% top-1 accuracy on Kinetics-400 and up to 50% absolute accuracy gains in zero-shot and few-shot settings, with minimal model modification and significantly improved training efficiency.

ABSTRACT

Transferring knowledge from task-agnostic pre-trained deep models for downstream tasks is an important topic in computer vision research. Along with the growth of computational capacity, we now have open-source vision-language pre-trained models in large scales of the model architecture and amount of data. In this study, we focus on transferring knowledge for video classification tasks. Conventional methods randomly initialize the linear classifier head for vision classification, but they leave the usage of the text encoder for downstream visual recognition tasks undiscovered. In this paper, we revise the role of the linear classifier and replace the classifier with the different knowledge from pre-trained model. We utilize the well-pretrained language model to generate good semantic target for efficient transferring learning. The empirical study shows that our method improves both the performance and the training speed of video classification, with a negligible change in the model. Our simple yet effective tuning paradigm achieves state-of-the-art performance and efficient training on various video recognition scenarios, i.e., zero-shot, few-shot, general recognition. In particular, our paradigm achieves the state-of-the-art accuracy of 87.8% on Kinetics-400, and also surpasses previous methods by 20~50% absolute top-1 accuracy under zero-shot, few-shot settings on five popular video datasets. Code and models can be found at https://github.com/whwu95/Text4Vis .

Motivation & Objective

  • To improve transferability of vision-language pre-trained models for video classification by leveraging textual encoder knowledge.
  • To address the underutilization of the text encoder in standard fine-tuning pipelines for video recognition.
  • To replace the randomly initialized classifier head with semantic knowledge from pre-trained text embeddings to enhance performance and training speed.
  • To democratize efficient video recognition by enabling strong few-shot and zero-shot performance with minimal computational cost.

Proposed method

  • Replace the standard linear classifier head with fixed, pre-extracted textual embeddings from the vision-language model’s text encoder.
  • Use the CLIP model’s text encoder to generate semantic vectors for each class label, which are then used as the classifier’s weight matrix.
  • Train only the visual encoder end-to-end with cross-entropy loss, while keeping the textual classifier weights frozen.
  • Compare different initialization strategies: random, orthogonal, visual-statistic-based (LDA), and semantic-textual embeddings.
  • Employ a contrastive-based baseline for comparison, which requires batch gathering and updates the text encoder.
  • Use distributed data-parallel training for fair comparison and efficient training across multiple GPUs.

Experimental results

Research questions

  • RQ1Can pre-trained textual embeddings from vision-language models improve the transferability of visual representations in video classification?
  • RQ2How does using semantic textual vectors as classifier weights compare to random or orthogonal initialization in terms of accuracy and convergence speed?
  • RQ3What is the impact of freezing the text encoder while only fine-tuning the visual encoder on downstream video recognition performance?
  • RQ4How does the proposed method perform under zero-shot and few-shot settings compared to existing contrastive-based paradigms?
  • RQ5Can the method achieve state-of-the-art performance with significantly reduced training cost and FLOPs?

Key findings

  • The method achieves 87.8% top-1 accuracy on Kinetics-400, setting a new state-of-the-art for video recognition.
  • It improves zero-shot and few-shot accuracy by 20–50% absolute points across five video datasets compared to prior methods.
  • The approach reduces training time by 2× (10 hours on 8 V100 GPUs) compared to the contrastive-based baseline, which requires batch gathering and longer training.
  • The method achieves 29× higher throughput and 44× fewer FLOPs than ViViT-L/16-320 under the same accuracy, demonstrating superior efficiency.
  • Using ViT-B/16, the method reaches 81.5% top-1 accuracy with only 3.3 V100-days of training, outperforming the contrastive-based method by 0.8% with faster convergence.
  • The multi-view evaluation protocol further boosts performance to 82.9% top-1 accuracy, showing the robustness of the approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.