Skip to main content
QUICK REVIEW

[Paper Review] Preconditioned Stochastic Gradient Langevin Dynamics for Deep Neural Networks

Chunyuan Li, Changyou Chen|arXiv (Cornell University)|Dec 23, 2015
Markov Chains and Monte Carlo MethodsMathematics39 references175 citations
TL;DR

This paper proposes Preconditioned Stochastic Gradient Langevin Dynamics (pSGLD), which combines adaptive preconditioning from optimization with stochastic gradient MCMC to improve sampling efficiency and generalization in deep neural networks. By leveraging curvature-aware preconditioning, pSGLD achieves faster convergence and state-of-the-art test accuracy on MNIST for both feedforward and convolutional networks, outperforming standard SGLD and SGD-based methods.

ABSTRACT

Effective training of deep neural networks suffers from two main issues. The first is that the parameter spaces of these models exhibit pathological curvature. Recent methods address this problem by using adaptive preconditioning for Stochastic Gradient Descent (SGD). These methods improve convergence by adapting to the local geometry of parameter space. A second issue is overfitting, which is typically addressed by early stopping. However, recent work has demonstrated that Bayesian model averaging mitigates this problem. The posterior can be sampled by using Stochastic Gradient Langevin Dynamics (SGLD). However, the rapidly changing curvature renders default SGLD methods inefficient. Here, we propose combining adaptive preconditioners with SGLD. In support of this idea, we give theoretical properties on asymptotic convergence and predictive risk. We also provide empirical results for Logistic Regression, Feedforward Neural Nets, and Convolutional Neural Nets, demonstrating that our preconditioned SGLD method gives state-of-the-art performance on these models.

Motivation & Objective

  • To address the dual challenges of pathological curvature and overfitting in deep neural network training.
  • To improve the efficiency and sampling accuracy of Stochastic Gradient Langevin Dynamics (SGLD) in non-convex, high-dimensional parameter spaces.
  • To enable effective Bayesian uncertainty estimation in deep networks through scalable, preconditioned MCMC sampling.
  • To achieve state-of-the-art performance on feedforward and convolutional neural networks using sample-based uncertainty.

Proposed method

  • The method extends SGLD by incorporating adaptive preconditioning matrices, inspired by RMSprop, to dynamically adjust the step size based on local curvature information.
  • Preconditioning is applied to the stochastic gradient, scaling each parameter update according to the historical variance of gradients.
  • The algorithm uses a slowly decreasing step size schedule to ensure asymptotic convergence to the true posterior distribution.
  • It injects isotropic noise at each iteration, enabling exploration of the parameter space and posterior sampling.
  • The preconditioner is updated online with minimal computational overhead, maintaining scalability.
  • The approach is applied to both fully connected and convolutional neural networks, with hyperparameters tuned via grid search.

Experimental results

Research questions

  • RQ1Can adaptive preconditioning improve the convergence speed and sampling efficiency of SGLD in deep neural networks with pathological curvature?
  • RQ2How does preconditioned SGLD compare to standard SGLD and SGD in terms of test accuracy and generalization?
  • RQ3Does incorporating curvature-aware preconditioning lead to better posterior approximation and improved predictive risk in deep models?
  • RQ4Can pSGLD maintain performance gains across different network architectures and increasing model depth?

Key findings

  • On the MNIST dataset, pSGLD achieved a test error of 0.45% on a standard CNN, significantly outperforming SGD (0.82%) and SGLD (0.71%).
  • For a 1200-1200 feedforward network, pSGLD achieved state-of-the-art test accuracy, with performance improving as the prior variance increased from 1 to 100.
  • pSGLD demonstrated faster convergence and more stable learning curves compared to SGLD and SGD, with reduced variance in the estimator.
  • The method showed consistent improvements across network sizes, unlike dropout and BPB, which did not scale well with increasing depth.
  • Empirical results confirmed that pSGLD effectively captures model uncertainty, with weight distributions becoming wider under higher prior variance.
  • The distilled version of pSGLD maintained strong performance, enabling efficient inference without full ensemble averaging.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.