The application provides a prompt learning method based on unsupervised knowledge
distillation, comprising: a supervised fine-tuning stage, taking a first visual
language model as a teacher model, freezing first pre-training parameters of the teacher model, and performing supervised fine-tuning on the teacher model through labeled samples to optimize first learnable prompt parameters of the teacher model; an unsupervised
distillation stage, taking a second visual
language model as a student model, freezing second pre-training parameters of the student model, aligning
inference results of the student model and the teacher model on unlabeled samples, and migrating discriminative knowledge of the teacher model to second learnable prompt parameters of the student model. The application also provides a prompt learning device based on unsupervised knowledge
distillation, a storage medium and an electronic device. Therefore, the application significantly improves the
adaptation effect of the visual
language model on downstream tasks, improves the generalization performance of the visual language model, and has low training and
inference costs.