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

用于视觉-语言模型适配的级联提示学习

Cascade Prompt Learning for Vision-Language Model Adaptation

Nankai University(南开大学);Megvii Technology(旷视科技);NKIARI(深圳南科人工智能研究院)

Ge Wu, Xin Zhang, Zheng Li, Zhaowei Chen, Jiajun Liang, Jian Yang, Xiang Li

AI总结:

提出级联提示学习框架CasPL,通过两阶段提示(提升和适配)从大模型提取通用知识并适配下游任务,缓解过拟合,在11个数据集上性能显著提升且保持推理速度。

摘要:

提示学习已成为一种有效方法,用于提升像CLIP这样的视觉-语言模型(VLMs)在下游任务中的性能。然而,当前可学习的提示词token主要用于适配任务的单个阶段(即适配提示),这容易导致过拟合风险。在本研究中,我们提出了一种新颖的级联提示学习CasPL框架,使提示学习能够同时服务于通用和特定专业知识(即提升和适配提示)。具体而言,CasPL是一种新的学习范式,包含两个不同阶段的可学习提示:第一阶段提升提示旨在通过使用大量无标签领域图像对齐其预测的logits,从一个更大的高级CLIP教师模型中提取领域通用知识。第二阶段适配提示随后与冻结的第一组提示级联,按照先前研究中采用的方法对下游任务进行微调。通过这种方式,CasPL能够有效地将领域通用和任务特定的表示捕获到明确不同的渐进式提示组中,从而潜在地缓解目标领域的过拟合问题。值得注意的是,CasPL作为一个即插即用模块,可以无缝集成到任何现有的提示学习方法中。CasPL在性能和推理速度之间取得了显著更好的平衡,这对于在资源受限环境中部署较小的VLM模型特别有利。与之前的最先进方法PromptSRC相比,CasPL在11个图像分类数据集上,基础类平均提升1.85%,新类提升3.44%,调和平均值提升2.72%。代码公开于:https://github.com/megvii-research/CasPL。

英文摘要:

Prompt learning has surfaced as an effective approach to enhance the performance of Vision-Language Models (VLMs) like CLIP when applied to downstream tasks. However, current learnable prompt tokens are primarily used for the single phase of adapting to tasks (i.e., adapting prompt), easily leading to overfitting risks. In this work, we propose a novel Cascade Prompt Learning CasPL framework to enable prompt learning to serve both generic and specific expertise (i.e., boosting and adapting prompt) simultaneously. Specifically, CasPL is a new learning paradigm comprising two distinct phases of learnable prompts: the first boosting prompt is crafted to extract domain-general knowledge from a senior larger CLIP teacher model by aligning their predicted logits using extensive unlabeled domain images. The second adapting prompt is then cascaded with the frozen first set to fine-tune the downstream tasks, following the approaches employed in prior research. In this manner, CasPL can effectively capture both domain-general and task-specific representations into explicitly different gradual groups of prompts, thus potentially alleviating overfitting issues in the target domain. It's worth noting that CasPL serves as a plug-and-play module that can seamlessly integrate into any existing prompt learning approach. CasPL achieves a significantly better balance between performance and inference speed, which is especially beneficial for deploying smaller VLM models in resource-constrained environments. Compared to the previous state-of-the-art method PromptSRC, CasPL shows an average improvement of 1.85% for base classes, 3.44% for novel classes, and 2.72% for the harmonic mean over 11 image classification datasets. Code is publicly available at: https://github.com/megvii-research/CasPL.

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

↑