arXiv:2410.15397cs.LGcs.CL2024-10NeurIPS被引 13

用大模型动态生成可理解的提示词,提升视觉语言模型性能与可解释性。

IPO: Interpretable Prompt Optimization for Vision-Language Models

  • 利用大语言模型动态生成提示词,结合历史表现数据优化
  • 在11个数据集上显著提升准确率,优于传统梯度优化方法
  • 生成的提示词人类可读,适合需要透明性的实际应用

预训练视觉语言模型如CLIP在下游任务中表现优异,但其性能高度依赖输入文本提示的精确性,需精心设计提示模板。现有提示优化方法通过梯度下降学习提示,将提示视为可调参数,但易导致对训练类别过拟合,且生成的提示难以被人类理解。本文提出一种简单而可解释的提示优化方法(IPO),利用大语言模型(LLM)动态生成文本提示。我们设计了提示优化提示(Prompt Optimization Prompt),不仅引导LLM生成有效提示,还存储历史提示及其性能指标,提供丰富的上下文信息。此外,引入大多模态模型(LMM)根据图像内容生成描述,增强文本与视觉模态的交互,从而生成针对数据集特性的提示,提升泛化能力,同时保持人类可读性。在11个数据集上的大量测试表明,IPO不仅提升了现有基于梯度的提示学习方法的准确率,还显著增强了生成提示的可解释性。通过发挥LLM优势,该方法确保提示始终为人可理解,有助于提升视觉语言模型的透明度与可控性。

原文摘要 · Abstract (English)

Pre-trained vision-language models like CLIP have remarkably adapted to various downstream tasks. Nonetheless, their performance heavily depends on the specificity of the input text prompts, which requires skillful prompt template engineering. Instead, current approaches to prompt optimization learn the prompts through gradient descent, where the prompts are treated as adjustable parameters. However, these methods tend to lead to overfitting of the base classes seen during training and produce prompts that are no longer understandable by humans. This paper introduces a simple but interpretable prompt optimizer (IPO), that utilizes large language models (LLMs) to generate textual prompts dynamically. We introduce a Prompt Optimization Prompt that not only guides LLMs in creating effective prompts but also stores past prompts with their performance metrics, providing rich in-context information. Additionally, we incorporate a large multimodal model (LMM) to condition on visual content by generating image descriptions, which enhance the interaction between textual and visual modalities. This allows for thae creation of dataset-specific prompts that improve generalization performance, while maintaining human comprehension. Extensive testing across 11 datasets reveals that IPO not only improves the accuracy of existing gradient-descent-based prompt learning methods but also considerably enhances the interpretability of the generated prompts. By leveraging the strengths of LLMs, our approach ensures that the prompts remain human-understandable, thereby facilitating better transparency and oversight for vision-language models.

提示工程可解释性大模型多模态

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