arXiv:2505.16959cs.LGstat.ML2025-05被引 25

早停能避免扩散模型过拟合,关键在训练时长与数据量匹配

Bigger Isn't Always Memorizing: Early Stopping Overparameterized Diffusion Models

  • 通过控制训练时间,让模型先学通用规律再避免记忆训练数据
  • 数据量越大,记忆所需时间越长,通用性在记忆前已逐步形成
  • 适用于需隐私保护或超参迁移的生成模型应用

扩散概率模型已成为现代生成式AI的核心,但其泛化机制仍不明确。若模型完全最小化训练损失,将仅记忆训练数据,尤其在过参数化情况下表现明显。我们重新审视这一观点,发现高度过参数化的扩散模型在训练过程中会先实现自然数据域的泛化,再出现记忆现象。该现象在图像与语言扩散模型中均被验证,且记忆时间与数据集规模成正比。泛化与记忆的本质是时间尺度的竞争。我们在学习随机规则上下文无关语法的扩散模型中复现此现象:随着训练时间增长,模型逐步掌握更深层的语法规则,早停的泛化代价可量化。我们总结出相图。结果表明,基于数据规模设计的早停策略可有效提升泛化性能并规避记忆,对超参数迁移和隐私敏感应用具有直接意义。

原文摘要 · Abstract (English)

Diffusion probabilistic models have become a cornerstone of modern generative AI, yet the mechanisms underlying their generalization remain poorly understood. In fact, if these models were perfectly minimizing their training loss, they would just generate data belonging to their training set, i.e., memorize, as empirically found in the overparameterized regime. We revisit this view by showing that, in highly overparameterized diffusion models, generalization in natural data domains is progressively achieved during training before the onset of memorization. Our results, ranging from image to language diffusion models, systematically support the empirical law that memorization time is proportional to the dataset size. Generalization vs. memorization is then best understood as a competition between time scales. We show that this phenomenology is recovered in diffusion models learning a simple probabilistic context-free grammar with random rules, where generalization corresponds to the hierarchical acquisition of deeper grammar rules as training time grows, and the generalization cost of early stopping can be characterized. We summarize these results in a phase diagram. Overall, our results support that a principled early-stopping criterion - scaling with dataset size - can effectively optimize generalization while avoiding memorization, with direct implications for hyperparameter transfer and privacy-sensitive applications.

扩散模型早停泛化过拟合

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。