NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

IPO: Interpretable Prompt Optimization for Vision-Language Models

Yingjun Du, Wenfang Sun, Cees G. M. Snoek

Introduction

Vision-Language Models (VLMs) such as CLIP have revolutionized computer vision by enabling zero-shot classification through natural language prompts. However, these models are notoriously "prompt-sensitive"—minor changes in phrasing can lead to significant fluctuations in accuracy. To mitigate this, researchers have traditionally employed Prompt Learning, using gradient descent to optimize "soft prompts"—sequences of learnable vectors that are processed by the model but remain unintelligible to humans.

While effective on training data, soft prompts suffer from two critical drawbacks: they frequently overfit to specific training categories, failing to generalize to "novel" (unseen) classes, and they lack interpretability, making it impossible for humans to audit or manually refine the model's logic.

The Problem: Soft Prompting vs. Interpretability

Traditional optimization methods treat the prompt as a set of continuous parameters in a high-dimensional space. This approach often captures dataset-specific noise rather than generalizable semantic concepts.

Comparison between traditional gradient-based soft prompt optimization (left) and the proposed Interpretable Prompt Optimization (right).

To address these issues, the authors propose Interpretable Prompt Optimization (IPO). IPO shifts the optimization target from abstract vectors back to natural language, using Large Language Models (LLMs) to iteratively evolve human-readable "hard prompts."

Methodology: LLMs as Parameter-Free Optimizers

The IPO framework treats prompt engineering as an iterative dialogue between an LLM optimizer and the VLM. The architecture is built upon three primary pillars:

  1. LLM as Optimizer: Instead of calculating gradients, the system leverages the reasoning capabilities of LLMs (such as GPT-3.5 or GPT-4). The LLM is provided with a "Prompt Optimization Prompt" that defines the classification task and the optimization goal.
  2. Episodic Memory: To guide the search process, the LLM maintains a history of the top-performing prompts from previous iterations, along with their associated accuracy and loss metrics. This allows the model to learn from past successes and failures, refining its strategy over time.
  3. Visual Conditioning via LMMs: To ensure prompts are grounded in the specific visual characteristics of a dataset, the authors use a Large Multimodal Model (LMM) to generate detailed textual descriptions of training images. These descriptions (e.g., identifying specific textures like "dotted" or "fibrous") are fed into the LLM optimizer to provide visual context.
The prompt structure used to guide the LLM optimizer, including task instructions, image descriptions, and prompt history.

Key Insights and Results

The authors evaluated IPO across 11 diverse image classification datasets, ranging from generic objects (ImageNet) to specialized domains like satellite imagery (EuroSAT) and textures (DTD).

Superior Generalization

A key finding is that interpretability acts as a regularizer. By constraining the search space to natural language, IPO prevents the model from finding "numerical shortcuts" that only work on the training set. In 1-shot learning scenarios, IPO consistently outperformed state-of-the-art gradient-based methods like CoOp and MaPLe on novel classes. For instance, on the Food101 dataset, IPO achieved a 10.29% improvement over CoOp for unseen categories.

Robustness and Versatility

Beyond classification, IPO demonstrated strong performance in semantic segmentation tasks, improving the Harmonic Mean (hIoU) of the ZegCLIP model. Furthermore, prompts optimized on one dataset proved to be highly robust when transferred to different domains, a task where soft-prompt methods typically struggle due to their reliance on specific vector embeddings.

Conclusion

IPO demonstrates that natural language is not just a medium for human communication, but a powerful tool for model optimization. By replacing gradient descent with LLM-driven evolution, researchers can create vision systems that are both more accurate on unseen data and fully transparent to their users. Future work will focus on reducing the computational costs associated with LLM APIs and further integrating direct visual inputs into the optimization loop.

Summary updated

BibTeX
@inproceedings{du2024ipo,
  author = {Yingjun Du and Wenfang Sun and Cees G. M. Snoek},
  title = {{IPO: Interpretable Prompt Optimization for Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=WPPC7FHtaM},
}
Figure