Stochastic Proximal Langevin Algorithm: Potential Splitting and Nonasymptotic Rates

Adil Salim, Dmitry Kovalev, Peter Richtárik

Introduction

The Stochastic Proximal Langevin Algorithm (SPLA) is a scalable method designed for sampling from log-concave distributions where the "energy" (or potential) function is a complex sum of smooth and nonsmooth terms. By combining stochastic gradients with a sequence of stochastic proximal operators, SPLA achieves state-of-the-art nonasymptotic convergence rates while remaining computationally efficient for large-scale Bayesian learning tasks.

The Challenge: Nonsmooth Potentials in Bayesian Learning

In Bayesian machine learning, we often need to sample from a posterior distribution $\mu^\star(x) \propto \exp(-U(x))$. The "potential" $U(x)$ is frequently composite: it consists of a smooth term (like a log-likelihood) and multiple nonsmooth terms (like $L_1$ or Total Variation priors used for sparsity or trend filtering).

Standard Langevin Markov Chain Monte Carlo (MCMC) methods struggle in this setting. If $U$ is nonsmooth, gradients do not exist everywhere. While "Proximal Langevin" algorithms exist to handle this, they typically require computing the full proximal operator for the entire nonsmooth component at every single step. In big-data scenarios—where the potential might be a sum over millions of data points or graph edges—calculating this full operator is computationally ruinous.

The core challenge is: How do we sample efficiently when both the smooth and nonsmooth parts of our potential are stochastic and high-dimensional?

The Solution: Stochastic Proximal Langevin Algorithm (SPLA)

To address this, the authors propose SPLA, which generalizes the Langevin algorithm using a "splitting" technique. Instead of tackling the whole potential at once, SPLA breaks the update into manageable pieces.

Algorithm 1: Stochastic Proximal Langevin Algorithm (SPLA)

As shown in the algorithm above, SPLA operates in three main phases per iteration:

  1. Stochastic Gradient Step: Take a step using a random mini-batch estimate of the gradient of the smooth term $F(x)$.
  2. Langevin Noise: Add Gaussian noise (the "Langevin" part) to ensure the chain explores the distribution correctly.
  3. Stochastic Proximal Steps: Instead of one giant proximal update, perform a sequence of small updates using stochastic proximal operators for each nonsmooth term $G_i(x)$.

Crucially, SPLA only requires access to stochastic approximations of these operators. This represents the first time a splitting technique involving multiple stochastic proximity operators has been applied to a Langevin-type algorithm.

Key Insights & Empirical Validation

A major insight from this work is the confirmation that proximal operators are significantly more stable than subgradients for handling nonsmoothness. While subgradient methods—like the Stochastic Subgradient Langevin Algorithm (SSLA)—can oscillate or produce outliers, proximal steps "pull" the iterates toward the minimum of the nonsmooth terms much more gracefully.

Comparison of SPLA and SSLA against the ground truth Laplace distribution.

This stability is clearly visible when testing on a 1D nonsmooth potential (the Laplace distribution). As seen above, SPLA tightly matches the sharp peak of the ground truth distribution, whereas SSLA struggles to capture the nonsmooth region accurately.

Beyond toy models, the authors evaluated SPLA on large-scale Graph Trend Filtering tasks using real-world networks (Facebook, Youtube, Amazon, and DBLP, scaling up to 1.1 million nodes). In these experiments, SPLA was roughly 100 times faster per iteration than the standard Proximal Langevin (ProxLA) because it avoids solving the expensive full proximal subproblem. It also proved more precise and robust to step-size selection than subgradient-based methods.

Theoretical Guarantees

The authors prove that SPLA "shadows" a gradient flow in the space of probability measures (specifically, the Wasserstein gradient flow of the KL divergence). This connection allows them to use tools from optimization theory to prove rigorous convergence rates in a sampling context:

  • For convex potentials, SPLA achieves a sublinear convergence rate. To get within $\epsilon$ of the target distribution (in KL divergence), it requires $O(1/\epsilon^2)$ iterations.
  • For strongly convex potentials, it achieves linear (exponential) convergence to a neighborhood of the target distribution. To reach $\epsilon$ accuracy, it requires only $O(\log(1/\epsilon))$ iterations.

Limitations and Future Work

While powerful, SPLA has a few limitations:

  • Log-Concavity Constraint: The current theory relies on the target distribution being log-concave. While common, this excludes multi-modal distributions frequently found in deep learning loss surfaces.
  • Sequential Bottleneck: The proximal steps are performed sequentially ($y_1 \to y_2 \to \dots \to y_n$). In cases with a massive number of nonsmooth terms, this loop could become a bottleneck. Future work might explore parallelized or randomized coordinate versions of these proximal updates.
  • Step-size Bias: Like most unadjusted Langevin methods, using a constant step size $\gamma$ leads to a non-vanishing bias in the final distribution. While decreasing step sizes can fix this, it slows down convergence.

Summary updated

BibTeX
@inproceedings{salim2019stochastic,
  author = {Adil Salim and Dmitry Kovalev and Peter Richtárik},
  title = {{Stochastic Proximal Langevin Algorithm: Potential Splitting and Nonasymptotic Rates}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure