IPO: Interpretable Prompt Optimization for Vision-Language Models

Yingjun Du, Wenfang Sun, Cees G. M. Snoek
10/20/2024
cs.LGcs.CLcs.CV

No official code found. Best implementation: lmsdss/IPO (15 stars, last commit 2025-03-04).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

lmsdss/IPOCommunity100%

IPO: Interpretable Prompt Optimization for Vision-Language Models(NeurIPS 2024)

151Shell, PythonOct 17, 20241 years ago

Similar Papers

Cite this paper

@article{du2024ipo,
  title  = {IPO: Interpretable Prompt Optimization for Vision-Language Models},
  author = {Yingjun Du and Wenfang Sun and Cees G. M. Snoek},
  year   = {2024},
  eprint = {2410.15397},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.15397},
  url    = {http://arxiv.org/abs/2410.15397v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.15397.svg)](https://codeofpaper.com/paper/2410.15397)

Discussion