TL;DR
This paper introduces Multimodal Prompt Optimization (MPO), the first framework to automatically optimize prompts consisting of both text and non-textual components (like images or molecular structures). By jointly refining these modalities and using a Bayesian-based selection strategy that "inherits" knowledge from parent prompts, MPO significantly outperforms text-only optimization methods while cutting the evaluation budget by over 40%.
What Problem Does This Paper Address?
While Large Language Models (LLMs) have evolved into Multimodal Large Language Models (MLLMs) capable of "seeing" and "hearing," our methods for optimizing their performance haven't kept pace. Currently, Automatic Prompt Optimization (APO) is almost entirely text-centric.
The authors argue that this is a massive missed opportunity. Text is often an inefficient way to provide context; for example, describing the specific plumage of a rare bird in text is wordy and prone to ambiguity, whereas providing a reference image is direct and precise. However, optimizing a multimodal prompt is hard because:
- Combinatorial Explosion: The search space for combined text and images is much larger than text alone.
- Cross-Modal Alignment: If you update the text and the image independently, they might end up contradicting each other, confusing the model.
- Evaluation Scarcity: Testing thousands of candidate multimodal prompts is computationally expensive.
Methods
The authors propose the Multimodal Prompt Optimizer (MPO), which treats a prompt as a pair $(t, m)$—text and a non-textual modality.
It consists of two core innovations:
1. Alignment-Preserving Exploration
To ensure the text and images stay "in sync," MPO uses Cohesive Backpropagation. Instead of looking at errors in isolation, it analyzes a "failure set" (cases where the model got it wrong) to generate a single, unified feedback signal. This feedback guides three specific operators:
- Generation: Creating a brand-new non-textual prompt from scratch.
- Edit: Making fine-grained refinements to an existing image or molecule.
- Mix: Blending the strengths of two successful prompts.
Crucially, these aren't just random changes. MPO generates a "textual condition" (like a detailed image generation prompt) that is then fed into a modality-specific generator (like Stable Diffusion for images or a molecule generator) to produce the actual prompt component.
2. Prior-Inherited Bayesian UCB Selection
Standard optimization treats every new candidate prompt as a "cold start," testing them all equally. MPO assumes that if a "parent" prompt performed well, its "children" (the versions edited or mixed from it) are likely to be good too. It uses the parent’s performance as a Bayesian prior to "warm start" the evaluation, allowing the system to quickly discard duds and focus its compute budget on the most promising candidates.
Datasets
The authors evaluated MPO across 10 diverse datasets spanning three modalities:
- Images: PlantVillage (leaf disease), CUB-200-2011 (fine-grained bird classification), SLAKE (medical VQA), RSVQA (remote sensing), and DrivingVQA.
- Video: Drive&Act (driver action recognition) and VANE-Bench (video anomaly detection).
- Molecules: Three property prediction tasks from the Therapeutics Data Commons (TDC), including Absorption, BBBP, and CYP Inhibition.
Key Insights and Ideas
- The "Hidden State" Shift: One of the most fascinating findings is a PCA visualization of the model's hidden states. Text-only prompts (even optimized ones) tend to cluster in a limited semantic space. Adding an optimized image prompt shifts the model’s internal representations into a distinct region, suggesting that multimodality unlocks reasoning pathways that text simply cannot reach.
- Alignment is Essential: The authors found that "alignment-preserving" updates are the secret sauce. If you optimize text first and then pick a random related image, performance drops. The text and image must be optimized together to be effective.
- Efficiency via Inheritance: The "warm start" provided by the Bayesian UCB strategy isn't just a minor tweak—it's a major efficiency gain. By trusting the "lineage" of a prompt, the system avoids wasting thousands of model calls on low-potential candidates.
Key Results
- SOTA Performance: MPO consistently outperformed leading text-only optimizers (like OPRO and SEE) across all 10 datasets. For example, on the CUB bird classification task, MPO achieved 78.6% accuracy, compared to 71.6% for the best text-only method.
- Massive Efficiency Gains: MPO reached the same performance levels as standard selection methods while using 42% to 70% less evaluation budget.
- Robust Generalization: The framework proved effective regardless of the underlying MLLM (testing Qwen, Gemma, and InternVL) or the specific image generator used.
Limitations and Future Work
- Generator Dependency: The quality of the optimized prompt is partially capped by the quality of the modality-specific generator (e.g., if the image generator can't produce a specific bird feature, MPO can't use it).
- Modality Expansion: While the paper covers images, video, and molecules, it does not yet explore audio or 3D point clouds.
- Computational Overhead: Although the selection is efficient, the exploration phase still requires calling external generators (like Stable Diffusion), which adds a layer of complexity to the optimization loop.
Summary updated