Classifier-guided CLIP Distillation for Unsupervised Multi-label Classification

Dongseob Kim, Hyunjung Shim

TL;DR

This paper introduces Classifier-guided CLIP Distillation (CCD), a novel unsupervised multi-label classification method that tackles CLIP's limitations of view-dependent predictions and inherent bias. By leveraging Class Activation Mapping (CAM) to guide the selection of informative local image views and debiasing CLIP's predictions, CCD significantly improves classification performance without requiring any manual annotations.

What Problem Does This Paper Address?

Multi-label image classification, where an image can belong to multiple categories, is essential for understanding complex visual scenes. However, obtaining accurate annotations for all labels in an image is a costly and time-consuming process. While recent approaches have explored unsupervised multi-label classification using powerful vision-language models like CLIP, these methods often struggle with CLIP's inherent weaknesses. Specifically, CLIP's predictions can vary significantly based on minor changes in input image views (e.g., cropping or scaling) and exhibit a bias towards certain object categories, leading to suboptimal performance. This paper aims to overcome these challenges by developing a more robust and accurate unsupervised multi-label classification system that leverages CLIP's strengths while mitigating its weaknesses.

Methods

The proposed method, Classifier-guided CLIP Distillation (CCD), consists of several key components:

  • Initial Pseudo-Label Generation: Similar to prior work, CCD first generates initial pseudo-labels by computing the cosine similarity between image embeddings and class text embeddings from CLIP. These similarities are then converted into softmax probabilities.
  • Classifier-Guided Local View Selection: To address CLIP's view-dependency, CCD uses a fine-tuned classifier to generate Class Activation Maps (CAMs). These CAMs highlight regions of interest within an image that strongly influence the classifier's predictions. By focusing on these CAM-identified regions, CCD extracts multiple local views around potential objects. This approach is more targeted than simply dividing images into uniform patches.
  • Local Pseudo-Label Generation: CLIP is then used to generate pseudo-labels for these extracted local views. The final local pseudo-label for an image is derived by taking the maximum class-wise probability across all local patches.
  • Pseudo-Label Update: The initial global pseudo-label and the generated local pseudo-label are combined using a weighted sum, allowing the model to leverage both global context and localized object information. This updated pseudo-label is used for training the classifier.
  • CLIP Bias Debasing: To counteract CLIP's inherent prediction bias, CCD analyzes the distribution of CLIP's predictions and calibrates them by applying an inverse transform of the identified bias. This debiasing step is applied to both global and local pseudo-labels.
  • Consistency Loss: To further improve robustness against noisy pseudo-labels (which can be amplified by debiasing), a consistency loss is employed. This loss encourages similar predictions for differently augmented versions of the same image.

Datasets

The proposed method was evaluated on four widely used multi-label classification datasets:

  • PASCAL VOC 2012: 20 classes, 5,717 training images, 5,823 validation images.
  • PASCAL VOC 2007: 20 classes, 5,011 training/validation images, 4,952 test images.
  • MS COCO: 80 classes, 82,081 training images, 40,137 validation images.
  • NUSWIDE: 81 classes, 150,000 training images, 60,200 test images.

The paper does not introduce any new benchmarks.

Key Insights and Ideas

  • CAM as a Guide for Local Views: Using CAM from a trained classifier to identify regions of interest for local view extraction is more effective than random or uniform grid-based patching. This insight highlights the power of leveraging intermediate model representations for data augmentation and pseudo-label refinement.
  • CLIP's View-Dependency is Significant: Even small changes in image cropping and size can drastically alter CLIP's predictions, underscoring the need for methods that are robust to such variations.
  • CLIP's Bias is Transferable and Detrimental: The inherent bias in CLIP's predictions directly transfers to the pseudo-labels, negatively impacting classifier performance, especially for under-represented classes.
  • Debiasing Improves Performance Across the Board: Calibrating CLIP's predictions to account for bias not only boosts performance on the most affected classes but also positively impacts other classes by reducing noise and improving overall model generalization.
  • Synergy Between Debiasing and Consistency Loss: Combining CLIP debiasing with consistency loss yields substantial improvements, suggesting that debiasing can amplify noise, which consistency loss then helps to manage.

Key Results

  • State-of-the-Art Performance: CCD achieved state-of-the-art results among unsupervised multi-label classification methods on PASCAL VOC 2012 and PASCAL VOC 2007 datasets.
  • Comparable to Fully Supervised Methods: On PASCAL VOC 2012 and PASCAL VOC 2007, CCD achieved comparable performance to fully supervised methods, demonstrating the effectiveness of unsupervised learning with CLIP.
  • Significant Gains Over CDUL: CCD consistently outperformed the previous state-of-the-art unsupervised method, CDUL, by significant margins (e.g., 1.5%p on PASCAL VOC 2012, 2%p on PASCAL VOC 2007, and 1.1%p on MS COCO).
  • Debiasing Effectiveness: Per-class analysis showed consistent improvements for biased classes, with gains ranging from 0.6%p to 3.6%p, confirming the effectiveness of the debiasing module.
  • Impact of Local Views: Using CAM-based local view selection improved performance by 2.3%p compared to using only global CLIP predictions.

Limitations and Future Work

  • Distinguishing Co-occurring Objects: The generated local views, guided by CAM, can sometimes struggle to distinguish between co-occurring objects, especially in complex scenes with similar classes (e.g., skies, snowboards, and skateboards often appearing with human feet). This can lead to noisy pseudo-labels.
  • Handling "None Images": For datasets like NUSWIDE, where a significant percentage of images contain "none images" (no relevant objects), the current approach may not optimally handle these cases.
  • Future Work Suggestions:
    • Developing improved local view proposal methods to better handle noisy inferences and focus more precisely on target objects.
  • Investigating ways to better distinguish co-occurring objects.
  • Exploring strategies for more effectively handling "none images," such as filtering out their probabilities or setting their pseudo-labels to zero.
  • Manipulating text embeddings for specific datasets to better align with their characteristics.

Summary updated

BibTeX
@inproceedings{kim2025classifier,
  author = {Dongseob Kim and Hyunjung Shim},
  title = {{Classifier-guided CLIP Distillation for Unsupervised Multi-label Classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00439},
}
Figure