Abstract
Transferring knowledge from large-scale pre-trained models to downstream tasks is a cornerstone of modern computer vision research. While standard approaches focus on fine-tuning visual backbones with randomly initialized classifiers, this study investigates the potential of leveraging the inherent semantic alignment in vision-language models (VLMs) like CLIP. We propose a paradigm where the linear classifier is initialized with fixed semantic embeddings from a pre-trained text encoder. Our approach demonstrates significant improvements in accuracy and training efficiency across 17 datasets spanning image, video, and 3D domains, particularly in few-shot scenarios.
Introduction
The advent of large-scale vision-language pre-training has revolutionized visual recognition. Models like CLIP, trained on billions of image-text pairs, learn a joint embedding space where visual concepts are aligned with natural language. However, the standard transfer learning pipeline often discards this alignment by appending a randomly initialized linear layer for downstream tasks. This paper argues that such a "classifier-blind" approach is inefficient and proposes a "classifier-centric" perspective to better exploit pre-trained knowledge.
Methodology: The Classifier Perspective
The core of the proposed method is a shift in how the final classification layer is handled. In a typical setup, a visual backbone extracts features, which are then passed to a learnable weight matrix $W$. We replace this with a fixed semantic classifier $\tilde{W}$.
1. Semantic Initialization
For a task with $C$ classes, we use the pre-trained text encoder to generate $d$-dimensional embeddings for each class name (e.g., "drinking beer", "driving car"). These embeddings form the rows of our classifier matrix $\tilde{W} \in \mathbb{R}^{C \times d}$.
2. Modality Alignment and Freezing
Because the VLM was pre-trained to align images and text, the visual features from the backbone are already roughly positioned near their corresponding textual embeddings. By freezing $\tilde{W}$ during training, we force the visual encoder to refine its representations to match these stable semantic targets, preventing the model from overfitting to small-scale downstream data.
3. Efficient Optimization
Unlike contrastive fine-tuning, which requires complex batching and high memory usage, our method uses standard cross-entropy loss. Only the visual backbone is updated, making the process computationally efficient and accessible for researchers with limited hardware.
Insights: The Power of Semantic Alignment
A key discovery in this work is that even standard visual classifiers, when trained from scratch without any textual input, eventually learn weights that correlate with semantic relationships. For instance, the learned weights for "drinking beer" naturally become more similar to "drinking shots" than to "driving car."
By explicitly providing these semantic targets from the start, we bypass the need for the model to "re-discover" these relationships, leading to faster convergence and better generalization.
Experimental Results
We evaluated our approach on 17 datasets across three distinct domains: video recognition (e.g., Kinetics-400, UCF-101), image classification (e.g., ImageNet, OxfordPets), and 3D point cloud recognition (ModelNet40).
Performance and Efficiency
On the Kinetics-400 video benchmark, our method achieved 81.5% Top-1 accuracy using a ViT-B/16 backbone. Notably, it trained 2x faster than state-of-the-art contrastive methods like ActionClip while requiring significantly less GPU memory due to the simplified training objective.
Few-Shot Dominance
The benefits are most pronounced when labeled data is scarce. On the HMDB-51 video dataset with only 2 training samples per class, our method reached 73.5% accuracy, compared to just 20.9% for a standard vision-only baseline—an absolute gain of over 50%. Similar trends were observed in 3D point cloud recognition, where the approach outperformed standard paradigms by 30-40% in few-shot settings.
Conclusion
This study demonstrates that the classifier is not just a final projection layer but a crucial component for effective knowledge transfer. By initializing and freezing the classifier with semantic embeddings, we can effectively leverage the modality alignment of large-scale VLMs. This simple modification leads to more robust, efficient, and accurate visual recognition systems across a wide array of data domains.
Summary updated