arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.19285cs.LG
收藏

对扩散模型泛化能力的平滑得分函数:一种基于优化的解释框架

Smoothing the Score Function to Enhance Generalization in Diffusion Models

Department of Computer Sciences, University of Wisconsin Madison, WI, USA(威斯康星大学麦迪逊分校计算机科学系)

Xinyu Zhou, Jiawei Zhang, Stephen J. Wright

AI总结:

本文提出基于优化的解释框架,通过分析经验得分函数的结构,揭示训练样本主导得分函数导致采样崩溃的原因,并提出噪声无条件化和温度平滑两种方法提升泛化能力。

摘要:

扩散模型在生成质量上表现出色,但面临记忆化挑战,即生成样本可能精确复制训练样本。本文发展了一个理论框架来解释这一现象,通过展示经验得分函数是高斯分布得分函数的加权和,其中权重为尖锐的softmax函数。这种结构导致单个训练样本主导得分函数,从而导致采样崩溃。在实践中,用神经网络近似经验得分函数可部分缓解此问题并提升泛化能力。本文理论框架解释了原因:在训练中,神经网络学习加权和的平滑近似,使采样过程受局部流形影响而非单点。基于此洞察,我们提出两种新方法进一步增强泛化:(1) 噪声无条件化使每个训练样本自适应确定其得分函数权重,增加更多训练样本的影响,从而防止单点主导并缓解崩溃。(2) 温度平滑引入显式参数控制平滑度。通过增加softmax权重的温度,自然减少任何单个训练样本的主导作用并缓解记忆化。多个数据集的实验验证了我们的理论分析,并展示了所提方法在提升泛化能力的同时保持高质量生成效果的有效性。

英文摘要:

Diffusion models achieve remarkable generation quality, yet face a fundamental challenge known as memorization, where generated samples can replicate training samples exactly. We develop a theoretical framework to explain this phenomenon by showing that the empirical score function (the score function corresponding to the empirical distribution) is a weighted sum of the score functions of Gaussian distributions, in which the weights are sharp softmax functions. This structure causes individual training samples to dominate the score function, resulting in sampling collapse. In practice, approximating the empirical score function with a neural network can partially alleviate this issue and improve generalization. Our theoretical framework explains why: In training, the neural network learns a smoother approximation of the weighted sum, allowing the sampling process to be influenced by local manifolds rather than single points. Leveraging this insight, we propose two novel methods to further enhance generalization: (1) Noise Unconditioning enables each training sample to adaptively determine its score function weight to increase the effect of more training samples, thereby preventing single-point dominance and mitigating collapse. (2) Temperature Smoothing introduces an explicit parameter to control the smoothness. By increasing the temperature in the softmax weights, we naturally reduce the dominance of any single training sample and mitigate memorization. Experiments across multiple datasets validate our theoretical analysis and demonstrate the effectiveness of the proposed methods in improving generalization while maintaining high generation quality.

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

↑