# Diffusion Meta-Prompting and Steering for Generalizable Foundation Model Adaptation

*Deepak Sridhar, Yi Li, Kartikeya Bhardwaj, Shuangjun Liu, TAOTAO JING, Yuan Li, Shuai Zhang, Jiancheng Lyu, Dashan Gao, Nuno Vasconcelos*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154312) · [OpenReview](https://openreview.net/forum?id=EbyKAh8h40) · [Open on the map](../papers.html#p154312)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Dataset Distillation and Synthetic Data Generation](../pgroup/173.md) · Type: new method · Keywords: diffusion models, prompt learning, meta-prompting, generalization, foundation model adaptation

Areas: [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Long-Tailed Incremental Recognition › Continual Learning

## Summary
Diffusion Meta-Prompt (DMP) is a diffusion-based meta-prompting framework that synthesizes new prompts from a repository to improve generalization across tasks while reducing storage and inference costs.

## Explained to a 5-year-old
We have a big computer brain that can learn how to talk to other computers using special words called prompts. Usually, each time you want the brain to do something new, you have to learn new prompts just for that thing, and they don't work well on other things. This paper creates a new way to make prompts that can work for many different things at once. It does this by learning how prompts look and then drawing new prompts that fit the job, using a kind of drawing game. It also uses a simple guide to make sure the new prompts are good, helping the brain understand new things without needing a lot of extra memory or time.

## Explained to a 5-year-old, longer
A big computer brain can be taught to speak using tiny words called prompts, which help it perform specific tasks. When we want the brain to do a new job, we usually teach it a fresh set of prompts, but those prompts are often stuck to that one task. This paper shows how we can teach the brain a general way to make prompts that work for many different jobs. It does this by looking at many old prompts and learning what they look like, then using a special drawing technique to create brand-new prompts that match the description of the new job. During use, a simple guide picks the best old prompt and uses it as a guide to make the new prompts even better. This way, the brain can handle new classes, new subjects, and even combinations of tasks without having to learn anything new each time. It also saves a lot of space and time because we don’t need to store a huge library of separate prompts for each task. The method even comes with a mathematical promise that the new prompts will likely do well on the job. All of this makes it easier to use powerful computer brains in many different situations.

## For a technical reader
The paper proposes DMP, a diffusion model that learns the distribution of previously learned prompts and generates new prompts conditioned on natural-language task descriptions. A test-time steering strategy anchors diffusion sampling with a selected prompt from the repository, ensuring stable generation without retraining. DMP reduces storage and inference costs by over 90% compared to prompt-retrieval baselines and provides a theoretical bound on the expected task loss of sampled prompts. Experiments across classification, retrieval, and text-to-image tasks demonstrate significant gains in generalization and concept composition.

## Problem
Adapting foundation models with learned prompts often results in task-specific prompts that do not generalize to new classes, domains, or task compositions, requiring large storage and computational overhead.

## Method
The approach models the distribution of previously learned prompts using diffusion models and synthesizes new prompts conditioned on natural language task descriptions, employing a test-time steering strategy that anchors sampling with a selected prompt from the repository.

## Results
The approach achieves up to 2.0% average gain over prior meta-learning methods across 55 dataset pairs, with gains as high as 8.5% on specific pairs like Eurosat and Flowers, and improves cross-task generalization by roughly 2-9% on hierarchical classification.

## Contributions
It introduces a diffusion-based framework for meta-prompting that can generate generalizable prompts from a repository without task data, a test-time steering strategy for stable sampling, and provides a theoretical guarantee on expected task loss.

## Practical relevance
By drastically cutting storage and inference overhead, the method enables efficient deployment of foundation model adaptations across diverse tasks and domains.

## Research questions this paper is counted under

- [How can prompt tuning handle multiple related tasks while preserving prior knowledge in frozen models?](../q/832.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154312)
