Diffusion Meta-Prompting and Steering for Generalizable Foundation Model Adaptation

Deepak Sridhar1 Yi Li2 Kartikeya Bhardwaj2 Shuangjun Liu2 Taotao Jing2 Yuan Li2 Shuai Zhang2 Jiancheng Lyu2 Dashan Gao2 Nuno Vasconcelos1

1University of California, San Diego    2Qualcomm Technologies

NeurIPS 2026

DMP Overview

Figure 1: DMP versus existing approaches. DMP provides a natural language interface for foundation model adaptation, eliminating large prompt repositories while offering better generalization and composition with minimal runtime overhead.

Abstract

Prompt learning is a popular parameter-efficient method for adapting foundation models, but learned prompts are typically task-specific and fail to generalize to new classes, domains, or compositions of tasks. In this paper, we introduce a Diffusion Meta-Prompt (DMP) model, a framework that models the distribution of learned prompts using diffusion models. DMP is trained only on a repository of previously learned prompts to synthesize new prompts conditioned on natural language task descriptions, without access to the task data.

To improve sampling stability, we introduce a test-time steering strategy for DMP, which uses the best training-selected prompt in the repository as a latent anchor during diffusion sampling, without retraining the DMP or accessing test classes. DMP improves generalization across classification, retrieval and text-to-image generation tasks, supports concept composition and negative prompting without explicit training.

Key Results: DMP reduces storage and inference costs by over 90% compared to prompt retrieval methods. For composite classification, DMP achieves up to 2.0% average gain over prior meta-learning methods across 55 pairs of datasets with gains as high as 8.5% on specific pairs. DMP also enhances cross-task generalization with ~2-9% improvement for hierarchical classification tasks.

Key Contributions

Method

DMP Framework

Figure 2: DMP framework for Text-to-Prompt synthesis (left) and Prompt Variation synthesis (right).

Diffusion Meta-Prompting

DMP models the distribution of learned prompts using diffusion models. Given a repository of prompts learned via standard prompt learning techniques, DMP trains a conditional generator pθ(x | y) that synthesizes new prompts conditioned on natural language task descriptions.

Test-Time Steering

To improve sampling stability, we introduce a steering mechanism that biases diffusion sampling toward high-performing prompts. For each dataset, we select the prompt with highest training accuracy as an anchor. During sampling, the predicted clean prompt is interpolated with this anchor at each denoising step, stabilizing generation without requiring test data access.

Concept Composition

By framing diffusion models as Energy Based Models, DMP enables task composition through classifier-free guidance. Multiple concepts can be combined by averaging noise predictions, allowing for flexible prompt combinations at inference time.

Results

Composite Classification

Composite Classification Results

DMP achieves +4.4% average gain over CoOp across 55 dataset pairs, with improvements of +4.3% on base classes and +5.7% on novel classes.

Hierarchical Classification

Hierarchical Classification

DMP prompts generalize better than BPL with ~2-9% accuracy gains for cross-task generalization on taxonomic classification.

Variation Synthesis

Variation Synthesis

DMPVariation demonstrates superior robustness and generalization compared to Textual Inversion, effectively adapting to diverse contexts while preserving subject identity.

Efficiency Comparison

Method Memory (GB) ↓ Time (s) ↓
Stylus (Retrieval) 1.30 12.1
DMP (Ours) 0.12 1.0
Improvement 91% ↓ 92% ↓

Qualitative Results

Concept Composition

Negative Prompting

Cross-Context Generalization

Comparison with Prior Work

Method Task Data/Loss Free Supports Multiple Tasks Learns across Tasks Core Idea
Bayesian Prompt Learning (BPL) ✗ ✗ ✗ Bayesian uncertainty modeling
ProMetaR ✗ ✓ ✓ Meta-regularization; requires training data
GRAM ✗ ✓ ✗ Meta-learned prompt init + gradient regulator
PRewrite ✗ ✓ ✗ LLM-based prompt rewriter with RL
DMP (Ours) ✓ ✓ ✓ Learns prompt distribution; one-shot sampling, composition, negative prompts

Citation

@inproceedings{sridhar2026dmp,
  title={Diffusion Meta-Prompting and Steering for Generalizable Foundation Model Adaptation},
  author={Sridhar, Deepak and Li, Yi and Bhardwaj, Kartikeya and Liu, Shuangjun and Jing, Taotao and Li, Yuan and Zhang, Shuai and Lyu, Jiancheng and Gao, Dashan and Vasconcelos, Nuno},
  booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
  year={2026}
}

Code & Models

Code and trained models will be released publicly. Stay tuned!

Coming Soon

Acknowledgements

This work was supported by Qualcomm Technologies. We thank the NeurIPS reviewers for their valuable feedback.