arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02781cs.CV
收藏

PromptKD:面向视觉-语言模型的无监督提示蒸馏

PromptKD: Unsupervised Prompt Distillation for Vision-Language Models

College of Computer Science, Nankai University(南开大学计算机学院);NKIARI;Tiansuan Lab, Ant Group(蚂蚁集团天算实验室);RIKEN(理化学研究所)

Zheng Li, Xiang Li, Xinyi Fu, Xin Zhang, Weiqiang Wang, Shuo Chen, Jian Yang

AI总结:

该研究提出PromptKD无监督提示蒸馏框架,通过两阶段流程将大模型CLIP的知识迁移到轻量模型,无需标注数据,在11个数据集上验证了有效性。

摘要:

提示学习已成为增强CLIP等视觉-语言模型(VLM)在特定领域下游任务表现的一项重要技术。现有研究主要聚焦于设计各类提示学习形式,却忽略了提示作为从更大规模教师模型中学习的有效蒸馏器的潜力。本文提出一种无监督领域提示蒸馏框架,旨在利用无标注领域图像,通过提示驱动的模仿将大规模教师模型的知识迁移到轻量级目标模型中。具体而言,该框架包含两个不同阶段。在第一阶段,我们使用领域(少样本)标签预训练一个大型CLIP教师模型。预训练完成后,我们利用CLIP独特的模态解耦特性,通过教师文本编码器仅预计算并存储一次文本特征,将其作为类别向量。在第二阶段,存储的类别向量在教师与学生图像编码器间共享,用于计算预测logits。此外,我们通过KL散度对齐教师模型与学生模型的logits,促使学生图像编码器借助可学习提示生成与教师模型相似的概率分布。所提出的提示蒸馏过程消除了对标注数据的依赖,使算法能够利用领域内大量无标注图像。最后,将训练好的学生图像编码器与预存储的文本特征(类别向量)用于推理。据我们所知,我们首次(1)针对CLIP开展无监督领域特定的提示驱动知识蒸馏,且(2)建立了一种实用的文本特征预存储机制,将文本特征作为教师与学生之间的共享类别向量。在11个数据集上开展的大量实验证明了我们方法的有效性。

英文摘要:

Prompt learning has emerged as a valuable technique in enhancing vision-language models (VLMs) such as CLIP for downstream tasks in specific domains. Existing work mainly focuses on designing various learning forms of prompts, neglecting the potential of prompts as effective distillers for learning from larger teacher models. In this paper, we introduce an unsupervised domain prompt distillation framework, which aims to transfer the knowledge of a larger teacher model to a lightweight target model through prompt-driven imitation using unlabeled domain images. Specifically, our framework consists of two distinct stages. In the initial stage, we pre-train a large CLIP teacher model using domain (few-shot) labels. After pre-training, we leverage the unique decoupled-modality characteristics of CLIP by pre-computing and storing the text features as class vectors only once through the teacher text encoder. In the subsequent stage, the stored class vectors are shared across teacher and student image encoders for calculating the predicted logits. Further, we align the logits of both the teacher and student models via KL divergence, encouraging the student image encoder to generate similar probability distributions to the teacher through the learnable prompts. The proposed prompt distillation process eliminates the reliance on labeled data, enabling the algorithm to leverage a vast amount of unlabeled images within the domain. Finally, the well-trained student image encoders and pre-stored text features (class vectors) are utilized for inference. To our best knowledge, we are the first to (1) perform unsupervised domain-specific prompt-driven knowledge distillation for CLIP, and (2) establish a practical pre-storing mechanism of text features as shared class vectors between teacher and student. Extensive experiments on 11 datasets demonstrate the effectiveness of our method.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑