Diffusion Meta-Prompts for Foundation Models

Deepak Sridhar, Nuno VasconcelosOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Instead of manually tuning or retrieving task-specific prompts for foundation models, Diffusion Meta-Prompts (DMP) uses a small 1D diffusion model to learn the distribution of successful prompts. This "meta-model" generates high-quality prompts from natural language descriptions, significantly improving generalization to unseen tasks while reducing storage requirements by 91% and inference latency by 92% compared to retrieval-based methods.

What Problem Does This Paper Address?

Foundation models like CLIP and Stable Diffusion are incredibly versatile, but adapting them to specific downstream tasks (like recognizing a new set of satellite images or generating a specific person's face) usually requires prompt tuning.

Current prompt tuning methods face three major hurdles:

  1. Poor Generalization: Prompts learned on a small set of "base" classes often fail to recognize "new" classes, even within the same dataset.
  2. The "Messy Repository" Problem: As communities share thousands of prompts and LoRA weights (on sites like Civitai), searching, downloading, and managing these assets becomes a massive computational and organizational headache.
  3. Lack of Compositionality: Combining two learned prompts (e.g., a "Jennifer Aniston" identity prompt and a "curly hair" attribute prompt) is non-trivial and often leads to distorted results.

The authors propose moving away from storing prompts to generating them on the fly using a generative model of the prompt space itself.

Methods

The core innovation is the Diffusion Meta-Prompt (DMP) framework. Rather than training a foundation model, the authors train a separate, lightweight 1D diffusion model to synthesize prompt embeddings.

  • The Architecture: The DMP is a 1D variant of a U-Net diffusion model. It takes a noise seed and a natural language task description (e.g., "a prompt for EuroSAT classification") and iteratively denoises it into a continuous prompt vector.
  • Training: The model is trained on a "repository" of existing prompts learned via standard methods (like CoOp for classification or Textual Inversion for image synthesis). It learns the underlying manifold of what makes a "good" prompt.
  • Variants:
    • DMPClass: Generates prompts for vision-language models (CLIP). It uses an autoencoder to handle high-dimensional prompt embeddings (up to 2048 dimensions).
  • DMPMulti: A multi-task model that handles both subject personalization and "attribute sliders" (e.g., age, smiling) in a single framework.
  • DMPVariation: Specifically designed to generate novel variations of a subject while maintaining identity.
  • Composition & Negation: By framing the diffusion model as an Energy-Based Model (EBM), the authors can compose multiple concepts (adding prompts) or perform negative prompting (subtracting concepts) at inference time without any additional training.

Datasets

The authors evaluated DMP across a wide array of benchmarks:

  • Classification: ImageNet plus 10 specialized datasets including EuroSAT (satellite), UCF101 (action), DTD (texture), and Oxford Flowers. They also used ImageNet variants (V2, Sketch, Rendition, Adversarial) for robustness testing.
  • Personalization: The CelebA dataset (3,000 unique identities) was used to train the identity generation capabilities.
  • Hierarchical Classification: The SUN dataset was used to test cross-task generalization in taxonomic hierarchies.

Key Insights and Ideas

  • Prompt Space has Structure: The most significant insight is that the space of "optimal prompts" isn't random; it has a learnable structure. By modeling this distribution, DMP acts as a regularizer, producing prompts that are more robust than those found through direct optimization.
  • Amortized Adaptation: Instead of optimizing a new prompt for every new task (which is slow and data-hungry), DMP "amortizes" the cost. Once trained, generating a prompt for a new class is a single "one-shot" sampling step.
  • Zero-Shot Compositionality: Because the model learns a continuous semantic space, it can generate prompts for combinations it never saw during training (e.g., blending two different identities) simply by manipulating the diffusion guidance.
  • Efficiency via Generation: Storing a single 33M parameter DMP model is far more efficient than storing a repository of thousands of individual prompt vectors or LoRA weights.

Key Results

  • Better Generalization: In "base-to-new" classification, DMP achieved an average gain of 3% over standard prompt tuning, with specific jumps as high as 7.8% on EuroSAT.
  • Cross-Task Mastery: On hierarchical classification tasks, DMP improved accuracy by 6–12%, despite never being explicitly trained on hierarchical data.
  • Massive Efficiency Gains: Compared to "Stylus" (a state-of-the-art retrieval method), DMP reduced storage needs by 91% (0.12 GB vs 1.30 GB) and improved runtime efficiency by 92% (1s vs 12.1s per prompt).
  • Improved Synthesis: For image generation, DMP improved prompt compliance by 1.4 points (CLIP score) and reduced overfitting compared to standard Textual Inversion.

Limitations and Future Work

  • Dependency on Base Methods: The quality of a DMP model is fundamentally capped by the quality of the prompts in its training repository. If the underlying prompt-learning method (like CoOp) is flawed, the DMP will inherit those flaws.
  • Text-Only Focus: Currently, DMP focuses on synthesizing textual prompt embeddings. The authors suggest that extending this to synthesize LoRA weight matrices (Meta-LoRA) would be a powerful but much more complex next step due to the high dimensionality of weights.
  • Fine-Grained Control: While DMP is excellent at semantic manipulation, it may still lack the pixel-perfect fine-grained control offered by heavy-duty adapter methods in certain niche applications.

For more details, you can find the full paper under review for ICLR 2026.

Summary updated

Abstract

Parameter-efficient fine-tuning techniques, such as prompting, are now popular to adapt foundation models to many tasks. In this paper, we introduce a diffusion-based approach to model the distribution of learned foundation models prompts. Specifically, we propose a $\textbf{Diffusion Meta-Prompt (DMP)}$ model that generates prompts conditioned on text or prompt embeddings, and can be used to prompt both vision-language models and diffusion models for image synthesis. DMPs have several advantages: improved generalization of learned prompts; memory and runtime efficiency by eliminating the need to store and search over large repositories of prompts or LoRA weights; multiple applications ranging from open-set classification, to personalization or attribute control of image synthesis; support for operations like subject and concept composition, novel subject generation, negative prompting, and editing without explicit training. For open-set classification, DMP improves base-to-new class generalization, achieving upto $\textbf{3}$% average gain across 11 datasets with gains as high as $\textbf{7.8/5.4}$% on specific datasets such as Eurosat/UCF101 respectively. DMP also enhances domain, cross-dataset and cross-task generalization with $\sim$$\textbf{6-12}$% improvement for hierarchical classification task. For image synthesis tasks, DMP improves generalization and prompt compliance by $\textbf{1.4}$ points as measured by CLIP score and reduces storage requirements by $\textbf{91}$% while improving runtime efficiency by $\textbf{92}$% over retrieval methods.
BibTeX
@misc{sridhar2026diffusion,
  author = {Deepak Sridhar and Nuno Vasconcelos},
  title = {{Diffusion Meta-Prompts for Foundation Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=DUe1AFKQBG},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure