[Paper Review] Can Microcanonical Langevin Dynamics Leverage Mini-Batch Gradient Noise?
This paper analyzes stochastic microcanonical Langevin dynamics (SMILE) for mini-batch gradients, identifies anisotropy-induced bias, proposes gradient noise preconditioning and energy-variance based tuning, and demonstrates state-of-the-art Bayesian neural network sampling with scalable, adaptive SMILE variants.
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.
Motivation & Objective
- Motivate scalable Bayesian inference for high-dimensional models by leveraging mini-batch gradients in microcanonical Langevin dynamics.
- Theoretically characterize bias arising from anisotropic mini-batch gradient noise in MCLMC.
- Propose gradient noise preconditioning to mitigate bias and enable robust sampling.
- Develop an energy-variance-based adaptive tuner to control step size and numerical stability.
- Empirically validate SMILE variants on Bayesian neural networks and large-scale architectures.
Proposed method
- Derive stochastic microcanonical Langevin dynamics (SMILE) and identify failure modes under mini-batch noise.
- Propose gradient noise preconditioning by transforming gradients using a local noise covariance L(θ) to achieve isotropic effective noise.
- Introduce pSMILE-naive and pSMILE as preconditioned versions of SMILE-naive with diagonal moving-average based preconditioning.
- Develop an energy-variance-based adaptive tuner that models energy error ΔE via a Gamma distribution to adapt step size and set numerical guardrails.
- Implement an online Gamma-parameter estimation with exponential moving averages to enable adaptive control (Algorithm 1).
- Evaluate on Bayesian neural networks and large architectures, comparing against SGHMC and full-batch MILE.

Experimental results
Research questions
- RQ1Can microcanonical Langevin dynamics be effectively driven by mini-batch gradient noise without biasing the target posterior?
- RQ2What mechanisms cause bias under anisotropic mini-batch noise, and can preconditioning restore correct stationary behavior?
- RQ3How can we adaptively control step size and numerical stability when scaling stochastic microcanonical dynamics to large models?
- RQ4Do preconditioned SMILE methods achieve state-of-the-art uncertainty quantification and predictive performance on high-dimensional BNNs?
- RQ5Can ensemble variants (MILE/MCMC ensembles) be scaled with stochastic microcanonical dynamics to match full-batch performance?
Key findings
- Anisotropic mini-batch gradient noise induces a systematic bias via a noise-induced drift in continuous-time MCLMC.
- Gradient noise preconditioning with a local objective covariance L(θ) reduces bias by isotropizing the effective noise.
- pSMILE-naive significantly outperforms SMILE-naive under anisotropic noise across analytical benchmarks.
- Energy-variance-based tuning stabilizes scaling to large networks, enabling robust adaptive step-size control without extra noise injections.
- With epoch-wise sampling and preconditioning, pSMILE can match full-batch MILE performance on Bayesian neural networks.
- Large-scale experiments on CIFAR-10 and Imagenette show pSMILE achieving competitive or superior metrics (LPPD, accuracy, F1, etc.) compared with SGHMC and cSGLD.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.