arXiv:2410.20164cs.LGcs.CV2024-10被引 1

用扩散模型动态生成适配样本的提示,提升零样本学习泛化能力。

Prompt Diffusion Robustifies Any-Modality Prompt Learning

  • 通过扩散模型在提示空间中逐步优化每个样本的专属提示。
  • 在15个数据集上显著提升基类到新类、跨数据集和领域泛化性能。
  • 无需标签即可快速生成个性化提示,兼容文本/视觉/多模态任务。

基础模型支持基于提示的零样本与少样本分类器。然而,传统固定提示方法易受分布偏移影响,降低对未见样本的泛化能力。本文提出提示扩散(Prompt Diffusion),利用扩散模型逐步优化提示,为每个样本生成定制化提示。首先针对每个样本优化出过拟合提示;随后在提示空间构建扩散模型,训练从随机提示到过拟合提示的生成过程。推理时,模型仅凭随机提示,在无标签条件下通过训练好的扩散模型五步生成适配提示。该方法通用、灵活且跨模态,可无缝嵌入现有提示学习框架,适用于文本、视觉或跨模态提示学习。实验表明,在15个不同数据集上,所有测试提示学习方法加入提示扩散后,均显著提升基类到新类、跨数据集及领域泛化表现。

原文摘要 · Abstract (English)

Foundation models enable prompt-based classifiers for zero-shot and few-shot learning. Nonetheless, the conventional method of employing fixed prompts suffers from distributional shifts that negatively impact generalizability to unseen samples. This paper introduces prompt diffusion, which uses a diffusion model to gradually refine the prompts to obtain a customized prompt for each sample. Specifically, we first optimize a collection of prompts to obtain over-fitted prompts per sample. Then, we propose a prompt diffusion model within the prompt space, enabling the training of a generative transition process from a random prompt to its overfitted prompt. As we cannot access the label of a test image during inference, our model gradually generates customized prompts solely from random prompts using our trained, prompt diffusion. Our prompt diffusion is generic, flexible, and modality-agnostic, making it a simple plug-and-play module seamlessly embedded into existing prompt learning methods for textual, visual, or multi-modal prompt learning. Our diffusion model uses a fast ODE-based sampling strategy to optimize test sample prompts in just five steps, offering a good trade-off between performance improvement and computational efficiency. For all prompt learning methods tested, adding prompt diffusion yields more robust results for base-to-new generalization, cross-dataset generalization, and domain generalization in classification tasks tested over 15 diverse datasets.

提示学习扩散模型泛化能力跨模态

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