Skip to main content
QUICK REVIEW

[论文解读] Can Microcanonical Langevin Dynamics Leverage Mini-Batch Gradient Noise?

Emanuel Sommer, Kangning Diao|arXiv (Cornell University)|Feb 6, 2026
Markov Chains and Monte Carlo MethodsMathematics被引用 0
一句话总结

本论文分析用于小批量梯度的随机微观正则拉格朗日动力学(SMILE),识别各向异性引起的偏差,提出梯度噪声预条件化和基于能量-方差的调参,并展示可扩展、自适应的 SMILE 变体在贝叶斯神经网络采样中的最新水平。

ABSTRACT

Scaling inference methods such as Markov chain Monte Carlo to high-dimensional models remains a central challenge in Bayesian deep learning. A promising recent proposal, microcanonical Langevin Monte Carlo, has shown state-of-the-art performance across a wide range of problems. However, its reliance on full-dataset gradients makes it prohibitively expensive for large-scale problems. This paper addresses a fundamental question: Can microcanonical dynamics effectively leverage mini-batch gradient noise? We provide the first systematic study of this problem, establishing a novel continuous-time theoretical analysis of stochastic-gradient microcanonical dynamics. We reveal two critical failure modes: a theoretically derived bias due to anisotropic gradient noise and numerical instabilities in complex high-dimensional posteriors. To tackle these issues, we propose a principled gradient noise preconditioning scheme shown to significantly reduce this bias and develop a novel, energy-variance-based adaptive tuner that automates step size selection and dynamically informs numerical guardrails. The resulting algorithm is a robust and scalable microcanonical Monte Carlo sampler that achieves state-of-the-art performance on challenging high-dimensional inference tasks like Bayesian neural networks. Combined with recent ensemble techniques, our work unlocks a new class of stochastic microcanonical Langevin ensemble (SMILE) samplers for large-scale Bayesian inference.

研究动机与目标

  • 通过利用微观正则拉格朗日动力学中的小批量梯度来实现对高维模型的可扩展贝叶斯推断的动机。
  • 在 MCLMC 中理论性地表征由各向异性的小批量梯度噪声引起的偏差。
  • 提出梯度噪声预条件化以减轻偏差并实现鲁棒采样。
  • 开发基于能量-方差的自适应调参器来控制步长和数值稳定性。
  • 在贝叶斯神经网络和大规模结构上对 SMILE 的变体进行经验验证。

提出的方法

  • 推导随机微观正则拉格朗日动力学(SMILE)并在小批量噪声下识别失效模式。
  • 通过使用局部噪声协方差 L(θ) 对梯度进行变换来实现梯度噪声预条件化,从而获得等方性有效噪声。
  • 引入 pSMILE-naive 和 pSMILE,作为带对角移动平均预条件化的 SMILE-naive 的预条件化版本。
  • 开发基于能量-方差的自适应调参器,其通过 Gamma 分布建模能量误差 ΔE,以自适应调整步长并设置数值护栏。
  • 实现带指数滑动平均的在线 Gamma 参数估计以实现自适应控制(算法 1)。
  • 在贝叶斯神经网络和大型架构上进行评估,与 SGHMC 和全批量 MILE 进行对比。
Figure 1 : Differences between the Bayesian deep ensemble (BDE) performance of naive (orange) and tuned (blue) SMILE variants and a deep ensemble (DE) baseline for a ResNet-7 (428k parameters) on the CIFAR10 dataset. The x-axis is truncated at -0.01 for readability. For all samplers, we report the b
Figure 1 : Differences between the Bayesian deep ensemble (BDE) performance of naive (orange) and tuned (blue) SMILE variants and a deep ensemble (DE) baseline for a ResNet-7 (428k parameters) on the CIFAR10 dataset. The x-axis is truncated at -0.01 for readability. For all samplers, we report the b

实验结果

研究问题

  • RQ1小批量梯度噪声是否能够在不偏离目标后验分布的情况下有效驱动微观拉格朗日动力学?
  • RQ2在各向异性的小批量噪声下,造成偏差的机制是什么,预条件化是否能够恢复正确的平稳行为?
  • RQ3在将随机微观正则动力学扩展到大模型时,如何自适应控制步长和数值稳定性?
  • RQ4带预条件化的 SMILE 方法是否在高维 BNN 上实现了最先进的不确定性量化和预测性能?
  • RQ5能否将集成变体(MILE/MCMC 集合)与随机微观正则动力学结合,以匹配全批量性能?

主要发现

  • 各向异性的小批量梯度噪声通过连续时间的 MCLMC 产生系统性偏差(噪声诱导漂移)。
  • 使用局部目标协方差 L(θ) 的梯度噪声预条件化通过使有效噪声等方化来降低偏差。
  • pSMILE-naive 在各向异性噪声下显著优于 SMILE-naive(在解析基准测试中)。
  • 基于能量-方差的调参在扩大网络规模时实现了稳定性,使自适应步长控制更鲁棒且无需额外噪声注入。
  • 借助按轮次采样和预条件化,pSMILE 能在贝叶斯神经网络上达到与全批量 MILE 相近的性能。
  • 在 CIFAR-10 和 Imagenette 上的大规模实验表明,pSMILE 与 SGHMC 和 cSGLD 相比,在指标(如 LPPD、精度、F1 等)方面具有竞争力或更优。
Figure 2 : Robustness assessment: Perplexity improvement (smaller is better, std. dev. as shaded area) of MCMC sampling over the optimized warmstart across samplers and step sizes for the nanoGPT model with 10.8M parameters on modern-shakespeare .
Figure 2 : Robustness assessment: Perplexity improvement (smaller is better, std. dev. as shaded area) of MCMC sampling over the optimized warmstart across samplers and step sizes for the nanoGPT model with 10.8M parameters on modern-shakespeare .

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。