MASLA: Subdifferential Langevin Sampling
- MASLA is a subdifferential Langevin algorithm that generalizes MALA to locally Lipschitz and non-differentiable potentials.
- It replaces the gradient with an element from a conservative field and applies a Metropolis–Hastings correction to restore exact stationarity.
- The algorithm demonstrates competitive empirical performance in challenging non-smooth settings and offers extensions for high-dimensional sampling problems.
Metropolis-adjusted Subdifferential Langevin Algorithm (MASLA) is a Metropolis–Hastings generalization of the Metropolis-Adjusted Langevin Algorithm (MALA) for target densities of the form when the potential is only locally Lipschitz and may be non-convex and non-differentiable. In this formulation, the gradient is replaced by an element of a set-valued conservative field that generalizes the Clarke subgradient, and exact stationarity is restored by an MH correction (Ning, 9 Jul 2025). The acronym MASLA has also been used in related optimal-scaling work for a Moreau–Yosida regularized proximal MALA construction in which is replaced by its envelope and the proposal is expressed through (Crucinio et al., 2023).
1. Problem setting and motivation
The target problem is to sample from a probability density on of the form
with 0 assumed only to be locally Lipschitz. By Rademacher’s theorem, 1 is differentiable almost everywhere, but global smoothness, and even convexity, are not assumed. This setting is outside the standard regularity regime of classical MALA, which requires 2 so that the Euler–Maruyama proposal
3
is well defined (Ning, 9 Jul 2025).
The motivation for MASLA is tied to three limitations of unadjusted or smoothness-dependent Langevin discretizations in the non-smooth regime. When 4 is non-smooth, the unadjusted Langevin algorithm can fail to have the correct invariant law, can even be transient, and cannot exploit subgradient information. MASLA addresses these points by replacing 5 with an element of 6 and by applying a Metropolis–Hastings accept–reject step, thereby extending Langevin-type sampling to locally Lipschitz, generally non-differentiable, and non-convex log-densities (Ning, 9 Jul 2025).
2. Algorithmic construction
MASLA is motivated by the generalized Langevin differential inclusion
7
where 8 is a conservative field for 9. The discrete proposal with step size 0 selects a subgradient 1 and performs the Euler–Maruyama step
2
If 3 is differentiable at 4, the natural choice is 5. At a non-differentiable point, one may compute a Clarke subgradient via automatic differentiation or backpropagation, or pick any element of a conservative field, for example from the convex hull of nearby gradients (Ning, 9 Jul 2025).
Let 6 denote the density of the proposal in (1). The MH correction is then
7
The next state is 8 with probability 9 and remains at 0 otherwise. This structure preserves the Langevin-type local move while reinstating exact stationarity through detailed balance (Ning, 9 Jul 2025).
3. Stationarity, reversibility, and convergence status
The principal theoretical result states that if 1 is 2 on an open set whose complement has Lebesgue measure zero, and if 3 has a density with respect to Lebesgue measure, then for almost every 4 the MASLA chain is reversible with respect to 5, and hence 6 is its stationary distribution (Ning, 9 Jul 2025).
The proof strategy proceeds by showing that the proposal kernel 7 admits a density 8. This is done by verifying that the map
9
is a local diffeomorphism for almost every 0 and almost every 1, using the inverse-function theorem away from a null set of Hessian singularities. Detailed balance,
2
then yields stationarity (Ning, 9 Jul 2025).
The convergence-rate picture is more limited. Explicit nonasymptotic Wasserstein or total-variation error bounds are not given. The stated position is that, under standard dissipativity and smoothness-a.e. conditions, one expects MASLA to inherit the geometric ergodicity and 3 mixing-time behavior proved for MALA and related nonsmooth extensions (Ning, 9 Jul 2025). This remains an expectation rather than a theorem in the cited work.
4. Implementation and computational profile
In practice, the step size 4 is tuned to achieve an average acceptance rate near 5, identified as the optimal value for MALA in high dimensions. Small 6 reduces discretization bias but slows mixing, whereas large 7 lowers acceptance. The paper presents this as a practical guideline rather than a derived optimality result for the full non-smooth setting (Ning, 9 Jul 2025).
The per-iteration cost consists of one gradient or subgradient evaluation together with 8 operations to sample 9 and compute Gaussian densities for 0. The implementation notes also identify several high-dimensional accelerations: subsampled or stochastic subgradient estimates, preconditioning, and blockwise updates. These are presented as compatible extensions of the core scheme rather than as parts of the proved theory (Ning, 9 Jul 2025).
5. Empirical evaluation
The reported experiments include a composite TV–1 example in dimension 2 with
3
where 4, 5, and 6. MASLA is compared with Grad-sub and Prox-sub from Habring et al. (2024) in Wasserstein-2 distance, and with P-MALA from Pereyra (2016) and MYULA from Durmus and Pereyra (2022) in total-variation distance. The stated result is that MASLA matches or slightly improves on state-of-the-art convergence rates across 7 and exhibits clear exponential ergodicity (Ning, 9 Jul 2025).
A second benchmark studies the non-proximal one-dimensional potential 8. This function is locally Lipschitz and path-differentiable, but its proximal operator at 9 is multivalued, 0, so prox-based samplers cannot apply. In this setting, Unadjusted Subdifferential Langevin (USLA) diverges from the true law, whereas MASLA with the MH correction closely tracks the exact target density. The reported quantitative errors are 1 and 2 for MASLA, while the corresponding USLA errors exceed 3 (Ning, 9 Jul 2025).
6. Relation to Moreau–Yosida and proximal formulations
A source of potential confusion is that the acronym MASLA also appears in the optimal-scaling literature for a Moreau–Yosida Metropolis-adjusted Langevin scheme. In that construction, 4 is assumed convex, proper, and lower-semicontinuous, and one introduces the Moreau–Yosida envelope
5
The regularized potential is 6 with
7
and 8 is Lipschitz continuous with constant 9. The proposal is then
0
or, equivalently,
1
followed by the standard MH correction (Crucinio et al., 2023).
Crucinio et al. analyze optimal scaling for product-form targets 2 under regimes where
3
For smooth targets, the optimal acceptance is reported as 4 in one regime and 5 in others; for the non-smooth Laplace target 6, the only non-degenerate scaling has 7, with asymptotically optimal acceptance 8. The practical guidance given there is to choose 9 proportional to 0 for non-smooth targets and to 1 for smooth targets, and to set 2 unless the target is very smooth (Crucinio et al., 2023).
These two usages of MASLA are related but not identical. The Moreau–Yosida construction smooths the target first and works through proximal maps; the 2025 “Metropolis-adjusted Subdifferential Langevin Algorithm” uses a conservative field directly and is explicitly designed for locally Lipschitz, generally non-differentiable, non-convex potentials. This suggests two distinct nonsmooth Metropolized Langevin paradigms within the same acronymic neighborhood: proximal regularization and direct subdifferential dynamics.
7. Applications, extensions, and open questions
The stated domain in which MASLA is especially useful consists of high-dimensional sampling problems where 3 is non-smooth or non-convex, such as 4-penalized posteriors, ReLU-net losses, and nonsmooth composite objectives, provided that a subgradient can be computed through automatic differentiation (Ning, 9 Jul 2025).
The same source identifies several extensions: nonasymptotic error bounds under non-convex dissipativity assumptions, stochastic-gradient MASLA using mini-batch subgradients, Riemann-manifold or preconditioned MASLA via variable-metric conservative fields, and subdifferential Hamiltonian Monte Carlo. The open questions are the dimension dependence of mixing times for general conservative fields, optimal acceptance rates in nonsmooth regimes, and adaptive tuning of 5 in the presence of set-valued drift (Ning, 9 Jul 2025).
Within the broader MCMC landscape, MASLA therefore occupies a specific niche: it retains the exact-stationarity guarantee of a Metropolis correction while extending Langevin methodology beyond differentiable targets. The main unresolved issue is not whether such a scheme can be defined, but how far its theoretical performance can be characterized under the weak regularity and non-convexity assumptions that motivate it.