arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.19087cs.LGstat.ML

Langevin动力学及其他马尔可夫过程中泛化所需的只是温度

Temperature is All You Need for Generalization in Langevin Dynamics and other Markov Processes

Technion(技术学院);Weizmann Institute of Science(魏茨曼科学研究所);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所)

Itamar Harel, Yonathan Wolanowsky, Gal Vardi, Nathan Srebro, Daniel Soudry

AI总结:

本文证明正温度下的 Langevin 动力学及具 Gibbs 平稳分布的马尔可夫训练可获得与时间、维度和梯度无关的高概率泛化界。

摘要:

我们分析了在使用马尔可夫式随机训练算法、并从某个分布 $θ_0 \sim p_0$ 初始化来训练一个可能过参数化的模型时的泛化差距(训练误差与测试误差之间的差距)。我们聚焦于具有正温度 $β^{-1}$ 的 Langevin 动力学,即在训练损失 $L$ 上进行具有无穷小步长的梯度下降,并受到方差为 $β^{-1}$ 的高斯噪声扰动,同时经过轻微正则化或有界化处理。在该设置下,我们以关于数据集的 $1-δ$ 概率,将训练期间任意时刻的泛化差距界定为 $\sqrt{(β\mathbb{E} L (θ_0) + \log(1/δ))/N}$,其中 $N$ 是样本量,并且在标准初始化缩放下 $\mathbb{E} L (θ_0) =O(1)$。与以往的保证不同,我们的结果既不依赖训练时间,也不依赖混合,同时不依赖维度、梯度范数,或损失与模型的任何其他性质。该保证来自对任何具有 Gibbs 型平稳分布、基于马尔可夫过程的训练的一般性分析。一旦我们观察到由广义热力学第二定律所蕴含的、相对于初始化的边缘分布散度仍保持有界,证明便出人意料地简单。

英文摘要:

We analyze the generalization gap (gap between the training and test errors) when training a potentially over-parametrized model using a Markovian stochastic training algorithm, initialized from some distribution $θ_0 \sim p_0$. We focus on Langevin dynamics with a positive temperature $β^{-1}$, i.e. gradient descent on a training loss $L$ with infinitesimal step size, perturbed with $β^{-1}$-variances Gaussian noise, and lightly regularized or bounded. There, we bound the generalization gap, at any time during training, by $\sqrt{(β\mathbb{E} L (θ_0) + \log(1/δ))/N}$ with probability $1-δ$ over the dataset, where $N$ is the sample size, and $\mathbb{E} L (θ_0) =O(1)$ with standard initialization scaling. In contrast to previous guarantees, we have no dependence on either training time or reliance on mixing, nor a dependence on dimensionality, gradient norms, or any other properties of the loss or model. This guarantee follows from a general analysis of any Markov process-based training that has a Gibbs-style stationary distribution. The proof is surprisingly simple, once we observe that the marginal distribution divergence from initialization remains bounded, as implied by a generalized second law of thermodynamics.

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

↑