cs.CVOct 8, 2026

Diffusion Meta-Prompting and Steering for Generalizable Foundation Model Adaptation

Authors: Deepak Sridhar, Yi Li, Kartikeya Bhardwaj, Shuangjun Liu, Taotao Jing, Yuan Li, Shuai Zhang, Jiancheng Lyu, +2 more

Organizations: University of California, San Diego · Qualcomm AI Research

Abstract

Prompt learning is a popular 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. Given a repository of previously learned prompts, DMP is trained and sampled without access to the original task examples or task losses, and synthesizes new prompts conditioned on natural language task descriptions. To improve the 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. It reduces storage and inference costs by over 90% compared to prompt retrieval methods. For composite classification, DMP achieves upto 2.0% average gain over prior meta-learning methods across 55 pairs of datasets with gains as high as 8.5% on specific pairs such as Eurosat and Flowers. DMP also enhances cross-task generalization with ~2-9% improvement for hierarchical classification task. We further provide a theoretical guarantee bounding the expected task loss of prompts sampled from a DMP. Code is available: https://github.com/DeepakSridhar/dmp

Figures & tables

Appendix figures & tables28 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Concept-Constrained Prompt Learning for Few-Shot CLIP Adaptation

    Jun 21, 2026Na Sang, Ding Ma, Rui Sang +1Prompt LearningVLM Adaptation

  2. PETR: Prompt Ensembling with Training-free Routing for Vision-Language Models

    Sep 20, 2026Weihan Cai, Hao Tan, Xinping Gao +2Zero-Shot LearningVLM Adaptation

  3. General and Efficient Steering of Diffusion Models

    Feb 11, 2026Qingsong Wang, Mikhail Belkin, Yusu WangDiffusion Model GuidanceActivation Steering