Papers
Topics
Authors
Recent
Search
2000 character limit reached

LS-SGLD: Laplacian Smoothing for Bayesian Sampling

Updated 23 March 2026
  • LS-SGLD is a Bayesian sampling method that applies Laplacian smoothing as a preconditioner to reduce the high variance in stochastic gradient Langevin dynamics.
  • It uses FFT-based computation to efficiently evaluate the smoothing operator, achieving lower discretization error measured in 2-Wasserstein distance.
  • Empirical results demonstrate improved posterior sampling performance in tasks like Bayesian logistic regression and CNN training, allowing for larger stable step sizes.

Laplacian Smoothing Stochastic Gradient Langevin Dynamics (LS-SGLD) is a Markov Chain Monte Carlo (MCMC) method designed to address the high-variance bottleneck of stochastic gradient Langevin dynamics (SGLD) in Bayesian sampling. By introducing Laplacian smoothing (LS) as a preconditioner, it achieves provably reduced discretization error in 2-Wasserstein distance across both log-concave and non-log-concave targets, with negligible computational overhead relative to standard SGLD. The LS-SGLD algorithm demonstrates improved empirical performance in posterior sampling, Bayesian logistic regression, and Bayesian convolutional neural network (CNN) training, with robust variance reduction and larger stable step sizes (Wang et al., 2019).

1. Motivation and Conceptual Foundations

LS-SGLD is motivated by the variance limitations of SGLD, which is based on discretizing the continuous-time overdamped Langevin stochastic differential equation (SDE):

dθt=U(θt)dt+2dBt,d\theta_t = -\nabla U(\theta_t)\, dt + \sqrt{2}\, dB_t,

where the target distribution is π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta)). In practice, U(θ)\nabla U(\theta) is approximated by a mini-batch stochastic gradient gkg_k, resulting in the update:

θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).

High variance in gkg_k compels the use of small step-sizes η\eta. Laplacian smoothing, previously introduced for stochastic gradient descent (SGD) [Osher et al. '18], proposes a preconditioning operator:

H:=(IσΔ)1,H := (I - \sigma \Delta)^{-1},

where Δ\Delta is the Laplacian (or, more generally, a graph Laplacian) and σ0\sigma \ge 0 is the smoothing parameter. This operator enforces local averaging across parameter coordinates, reducing stochastic variance "on the fly" without extra storage requirements.

2. Algorithmic Specification

2.1 Smoothing Operator Construction

For π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))0, define π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))1 as the circulant Laplacian matrix with periodic boundary conditions. The smoothing and preconditioning operators are:

  • π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))2
  • π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))3
  • π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))4

Both π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))5 and π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))6 are circulant, admitting efficient evaluation via Fast Fourier Transform (FFT):

π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))7

where π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))8 is the first column of π(θ)exp(U(θ))\pi(\theta) \propto \exp(-U(\theta))9, and U(θ)\nabla U(\theta)0, U(θ)\nabla U(\theta)1 denote discrete Fourier (inverse Fourier) transforms. The same transformation applies to U(θ)\nabla U(\theta)2.

2.2 Continuous and Discrete-Time Dynamics

The LS-Langevin SDE generalizes the drift and diffusion structure:

U(θ)\nabla U(\theta)3

maintaining U(θ)\nabla U(\theta)4 as the unique invariant measure.

The discrete-time LS-SGLD Euler–Maruyama update is:

U(θ)\nabla U(\theta)5

with

U(θ)\nabla U(\theta)6

Efficient implementation uses FFT for both U(θ)\nabla U(\theta)7 and U(θ)\nabla U(\theta)8 at each step.

LS-SGLD Algorithm at a Glance

Step Operation Notes
1 Sample mini-batch, compute U(θ)\nabla U(\theta)9 gkg_k0
2 Compute gkg_k1 via FFT gkg_k2
3 Generate gkg_k3, compute gkg_k4 via FFT gkg_k5
4 Update: gkg_k6

3. Theoretical Guarantees

The convergence of LS-SGLD is established under the following assumptions:

  • Dissipativity: gkg_k7
  • Smoothness: Each gkg_k8 is gkg_k9–Lipschitz gradient
  • Variance bound: θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).0
  • Log-concavity (optional): U convex

Key metrics are reported in terms of the θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).1-Wasserstein distance θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).2 and log-Sobolev constant θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).3.

3.1 Strongly Convex (Log-Concave) Targets

The total error splits as:

θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).4

The ergodic term decays exponentially in time, with decay rate constant θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).5.

Crucially, LS-SGLD exhibits strictly smaller discretization error than vanilla SGLD due to variance-reducing factors θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).6, where:

  • θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).7
  • θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).8

3.2 General (Non-Log-Concave) Targets

For general non-convex θk+1=θkηgk+2ηξk,ξkN(0,I).\theta_{k+1} = \theta_k - \eta g_k + \sqrt{2\eta}\, \xi_k, \quad \xi_k \sim \mathcal{N}(0, I).9, analogous error bounds are derived using a coupled SDE argument and Girsanov’s theorem, showing that LS-SGLD achieves reduced discretization terms (scaled by gkg_k0, gkg_k1) while preserving exponential ergodic decay as above, though with slightly reduced mixing rate.

A plausible implication is that for a broad class of sampling tasks, LS-SGLD offers a stringent trade-off: notably improved accuracy per iteration at the cost of marginally slower mixing in continuous time.

4. Computational Aspects and Hyperparameter Choices

The dominant additional cost over SGLD is two FFTs of length gkg_k2 per iteration, resulting in gkg_k3 overhead, which is negligible in high-dimensional settings. The smoothing parameter gkg_k4 regulates both the strength of preconditioning and the potential step-size, with larger gkg_k5 yielding smaller gkg_k6 and increased maximal stable step-sizes. The effective step-size in practice can be set proportional to gkg_k7 in smooth quadratic landscapes, reflecting robust stability gains observed in experiments. For arbitrary high-dimensional graph Laplacians, sparse FFT or polynomial preconditioning may be employed.

5. Empirical Performance

LS-SGLD demonstrates consistent empirical improvements across multiple paradigms:

2D Gaussian and Gaussian Mixture

  • With a 2D Gaussian target gkg_k8 (gkg_k9), LS-SGLD recovers the covariance structure with reduced autocorrelation time and support for step-sizes up to η\eta0 times larger than SGLD.
  • In a bimodal 2D Gaussian mixture, both LS-SGLD and the LS-preconditioned pSGLD achieve near-constant η\eta1 distance to ground-truth Metropolis-Hastings samples (η\eta20.42), with SGLD/pSGLD showing larger bias and fluctuations.

Bayesian Logistic Regression (UCI “a3a”)

  • With batch size 5 and grid-searched η\eta3, LS-SGLD yields lower test negative log-likelihood, higher classification accuracy, and reduced stochastic gradient variance compared to baselines.

Bayesian Convolutional Neural Networks

  • On MNIST using a two-layer convnet (batch size 100, η\eta4), LS-SGLD and LS-pSGLD converge more rapidly and marginally outperform SGLD/pSGLD in both training density and generalization accuracy.
Task SGLD LS-SGLD
2D Gaussian, η\eta5 1.00 0.149–0.268 (σ=1–3)
GMM, η\eta6 to MH samples Variable, large bias η\eta70.42 constant
Logistic Reg. (a3a), variance Higher Lower
Bayesian CNN, test accuracy Lower, slower convergence Slightly higher, faster

6. Interpretations and Concluding Principles

Laplacian smoothing functions as a lightweight, variance-reducing preconditioner for SGLD, leading to provable gains in discretization error (in η\eta8) at the expense of a modest reduction in mixing speed. This effect is robust across both simple and deep Bayesian target distributions. The FFT-based implementation ensures negligible computational overhead. Empirical findings across synthetic and real-world machine learning benchmarks corroborate the theoretical results and uptake of LS-SGLD as an effective Bayesian inference technique (Wang et al., 2019).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Laplacian Smoothing SGLD (LS-SGLD).