Transformer-based In-Context Score Operator Learning for Diffusion Models
On the map: Diffusion models → Diffusion foundations and sampling
Abstract (arXiv)
Diffusion models typically learn the generative dynamics of a single target distribution or a family of distributions indexed by conditioning variables fixed during training. This limits their ability to adapt to a previously unseen distribution from only a small set of examples. We introduce an in-context solution operator learning framework for diffusion models, in which each target distribution is treated as a task drawn from a meta-distribution and is specified at inference time by an empirical context set. Our method learns an in-context score operator that maps the context samples, a noisy query point, and the diffusion time to the task-dependent score, enabling reverse-diffusion sampling on unseen tasks without retraining or parameter updates. A key observation is that the task-dependent score admits a Gaussian-kernel conditional-mean representation. Its empirical Nadaraya--Watson approximation can be represented exactly by a model in our constructed transformer class, providing a principled foundation for the proposed query-dependent attention architecture. The operator is trained through amortized denoising score matching across task distributions. We establish generalization-error bounds that quantify the effects of the context size, the numbers of training tasks and within-task samples, model complexity, and intrinsic and ambient dimensions. Numerically, we evaluate the method on a range of scientific and visual datasets, including Navier-Stokes, ERA5 climate data, QuickDraw sketches, and Food-101. The results show that the proposed method performs well on relatively simple task families, while its performance degrades as task complexity increases, thereby illustrating both the promise and the limitations of in-context learning for diffusion models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 47 of its 56 references that are in the map. First posted on arXiv 9 Oct 2026.
Builds on
47 of 56 references.
Closest ancestors · 9
Same direction, newest first
- 2023State of the Art on Diffusion Models for Visual Computing11 Oct
- 2023Universal Guidance for Diffusion Models14 Feb
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applications2 Sep
- 2022Classifier-Free Diffusion Guidance26 Jul
- 2022Few-Shot Diffusion Models30 May
- 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
- 2021Diffusion Models Beat GANs on Image Synthesis11 May
- 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
- 2020Denoising Diffusion Probabilistic Models19 Jun
Other references · 38
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
- 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,908
- 2019DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operatorscited by 2,018
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2020DiffWave: A Versatile Diffusion Model for Audio Synthesiscited by 1,354
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulationcited by 642
- 2022Diffusion Models for Adversarial Purificationcited by 476
26 more
- 2021Machine learning accelerated computational fluid dynamicscited by 471
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Imitating Human Behaviour with Diffusion Modelscited by 263
- 2023Goal-Conditioned Imitation Learning using Score-based Diffusion Policiescited by 236
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2021Diff-TTS: A Denoising Diffusion Model for Text-to-Speechcited by 157
- 2021Symbolic Music Generation with Diffusion Modelscited by 154
- 2022ProDiff: Progressive Fast Diffusion Model For High-Quality Text-to-Speechcited by 149
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
- 2024DiffusionPDE: Generative PDE-Solving Under Partial Observationcited by 108
- 2023In-Context Learning Unlocked for Diffusion Modelscited by 104
- 2023In-Context Operator Learning with Data Prompts for Differential Equation Problemscited by 101
- 2023Diffusion Models for Reinforcement Learning: A Surveycited by 91
- 2024Towards a Foundation Model for Partial Differential Equations: Multi-Operator Learning and Extrapolationcited by 46
- 2022Guided Diffusion Model for Adversarial Purification from Random Noisecited by 35
- 2023Context Diffusion: In-Context Aware Image Generationcited by 21
- 2023Precipitation Downscaling with Spatiotemporal Video Diffusioncited by 19
- 2025Understanding In-Context Learning on Structured Manifolds: Bridging Attention to Kernel Methodscited by 15
- 2026In-Context Operator Learning on the Space of Probability Measurescited by 11
- 2023Improving In-Context Learning in Diffusion Models with Visual Context-Modulated Promptscited by 10
- 2024In-Context Learning of Linear Systems: Generalization Theory and Applications to Operator Learningcited by 6
- 2023Generating High-Resolution Regional Precipitation Using Conditional Diffusion Modelcited by 4
- 2024Score Neural Operator: A Generative Model for Learning and Generalizing Across Multiple Probability Distributionscited by 4
- 2024A Score-based Generative Solver for PDE-constrained Inverse Problems with Complex Priorscited by 3
- 2026Learn to Evolve: Self-supervised Neural JKO Operator for Wasserstein Gradient Flowcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2022Understanding Diffusion Models: A Unified Perspective
- 2024Operator-Informed Score Matching for Markov Diffusion Models
- 2021A Variational Perspective on Diffusion-Based Generative Models and Score Matching
- 2026Transformers as In-Context Samplers: From Closed-Form Diffusion to Estimation-Free Sampling
- 2023Reflected Diffusion Models
- 2024Diffscaler: Enhancing the Generative Prowess of Diffusion Transformers
- 2025Diffusion Models: A Mathematical Introduction
- 2026Diffusion Transformers are Provably Optimal In-context Generators