arXiv:2409.17805cs.CV2024-09ECCV被引 29

分阶段提示学习提升视觉语言模型性能与效率

Cascade Prompt Learning for Vision-Language Model Adaptation

  • 设计两级提示机制:先提取通用知识,再适配具体任务
  • 在11个数据集上平均提升2.72%,小类识别提升3.44%
  • 可插即用,适合资源受限场景下的小型模型部署

提示学习已成为提升视觉语言模型(如CLIP)在下游任务中表现的有效方法。然而,现有可学习提示令牌多仅用于单一适应阶段(即适配提示),易引发过拟合风险。本文提出一种新型级联提示学习框架CasPL,使提示学习能同时服务于通用知识提取与特定任务适配。具体而言,CasPL包含两个阶段:第一阶段的增强提示通过大量未标注领域图像对齐师生模型输出逻辑值,从较大的CLIP教师模型中提取领域通用知识;第二阶段的适配提示与冻结的第一阶段提示级联,用于微调下游任务。该方法可将领域通用与任务特定表征显式分层,有效缓解目标域过拟合问题。此外,CasPL为即插即用模块,可无缝集成至任意现有提示学习方法。相比先前最优方法PromptSRC,CasPL在11个图像分类数据集上实现基类平均提升1.85%、新类提升3.44%、调和均值提升2.72%。代码已公开于https://github.com/megvii-research/CasPL。

原文摘要 · Abstract (English)

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.

提示学习视觉语言模型模型压缩多阶段学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。