arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.13690cs.LG
收藏

基于Transformer的扩散模型上下文内得分算子学习

Transformer-based In-Context Score Operator Learning for Diffusion Models

South Dakota State University(南达科他州立大学);Georgia Institute of Technology(佐治亚理工学院);University of Minnesota(明尼苏达大学);Purdue University(普渡大学)

Wuzhe Xu, Zhaiming Shen, Yulong Lu, Wenjing Liao, Rongjie Lai

AI总结:

该研究针对扩散模型仅能适配训练时固定条件分布的局限,提出基于Transformer的上下文内得分算子学习框架,通过元分布与经验上下文集实现未见任务的反向扩散采样,在多类数据集上验证了其性能与适用边界。

摘要:

扩散模型通常学习单个目标分布或由训练期间固定的条件变量索引的分布族的生成动力学,这限制了它们仅从少量示例中适应先前未见分布的能力。我们提出了一种用于扩散模型的上下文内解算子学习框架,其中每个目标分布被视为从元分布中抽取的任务,并在推理时通过经验上下文集指定。我们的方法学习一个上下文内得分算子,该算子将上下文样本、带噪查询点和扩散时间映射到任务相关得分,从而无需重新训练或参数更新即可对未见任务执行反向扩散采样。一个关键观察是,任务相关得分具有高斯核条件均值表示,其经验Nadaraya--Watson近似可由我们构建的Transformer类中的模型精确表示,为所提出的依赖查询的注意力架构提供了原则性基础。该算子通过跨任务分布的摊销去噪得分匹配进行训练。我们建立了泛化误差界,量化了上下文大小、训练任务数量、任务内样本数量、模型复杂度以及固有维度和环境维度的影响。在数值实验中,我们在一系列科学和视觉数据集上评估了该方法,包括Navier-Stokes、ERA5气候数据、QuickDraw草图和Food-101。结果表明,所提方法在相对简单的任务族上表现良好,而随着任务复杂度增加,其性能下降,从而说明了扩散模型上下文内学习的潜力和局限性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑