MASLA: Subdifferential Langevin Algorithm
- MASLA is a Metropolis-adjusted Langevin sampler that replaces classical gradients with generalized derivative information, such as Clarke subgradients, to handle non-smooth and non-convex potentials.
- It employs conservative set-valued fields and measurable subgradient selections to construct Langevin proposals, ensuring stationarity and reversibility under locally Lipschitz conditions.
- In convex settings, MASLA reduces to proximal methods like MY-MALA, offering optimal scaling regimes and improved ergodicity compared to standard MALA.
Metropolis-Adjusted Subdifferential Langevin Algorithm (MASLA) denotes a class of Metropolis-adjusted Langevin samplers for targets of the form in which the classical gradient drift is replaced by generalized derivative information. In its most general form, MASLA is designed for locally Lipschitz, generally non-differentiable, and possibly non-convex potentials, using conservative set-valued fields and Clarke subgradients to define a Langevin-type proposal and then correcting the Euler discretization by a Metropolis–Hastings step. In the convex setting, Moreau–Yosida MALA (MY-MALA) is a proximal realization of the same idea: the drift is built from the Moreau–Yosida envelope or equivalently from the proximal map, so MY-MALA can be read as a MASLA with proximal or subdifferential drift (Ning, 9 Jul 2025, Crucinio et al., 2023).
1. Problem setting and conceptual scope
MASLA targets distributions on with density
where is the potential. The point of departure is standard MALA, which uses the overdamped Langevin diffusion
and an Euler–Maruyama proposal corrected by Metropolis–Hastings. That construction presupposes differentiability of at the points where the drift is evaluated, and much of the classical analysis further assumes at least regularity, often together with Lipschitz-gradient and growth conditions (Ning, 9 Jul 2025).
These assumptions exclude or complicate a range of models that are routine in contemporary Bayesian computation and machine learning. The examples explicitly highlighted include non-smooth penalties such as and total variation, piecewise-linear or piecewise-polynomial energies such as ReLU networks, hinge losses, and absolute values, and non-convex but locally Lipschitz energies. In such settings, may fail to exist on sets of positive measure, while proximal samplers such as P-MALA and MYULA require a well-defined proximal operator and therefore do not cover general non-convex or some non-smooth potentials (Ning, 9 Jul 2025).
Within this landscape, the 2025 MASLA formulation generalizes MALA to locally Lipschitz targets through conservative set-valued fields, whereas the 2023 MY-MALA analysis addresses a convex subclass in which the subdifferential information is encoded by the Moreau–Yosida envelope and the proximal map. The latter therefore occupies a specific proximal-convex corner of the broader MASLA framework (Crucinio et al., 2023).
2. Conservative fields, Clarke subgradients, and subdifferential structure
The non-smooth differential structure used by MASLA begins with local Lipschitz continuity. By Rademacher’s theorem, a locally Lipschitz function is differentiable almost everywhere. For such a function , the Clarke subgradient is defined by
0
It is nonempty, convex, and compact for locally Lipschitz 1, and reduces to the singleton 2 at differentiability points (Ning, 9 Jul 2025).
The key structural object in the 2025 MASLA theory is a conservative set-valued field. A set-valued map 3 is called a conservative field if it has closed graph and nonempty compact values and satisfies the loop-integral condition
4
for every absolutely continuous loop 5 with 6. Such a field admits a locally Lipschitz potential 7, unique up to an additive constant, obtained by path integration. For convex, concave, prox-regular, semialgebraic, or more generally tame functions, the Clarke subgradient is itself conservative (Ning, 9 Jul 2025).
This framework retains several gradient-like properties. If 8 is conservative with potential 9, then 0 for Lebesgue-a.e. 1, the Clarke subgradient satisfies
2
and along absolutely continuous curves one has the chain rule
3
These facts are what allow MASLA to replace classical gradients by generalized derivatives without abandoning the Langevin construction (Ning, 9 Jul 2025).
3. General MASLA construction
In the general non-smooth and non-convex setting, MASLA is motivated by the Langevin-type stochastic differential inclusion
4
A discrete Euler–Maruyama step is then written as
5
where 6 is a measurable selection from the conservative field. The paper also writes
7
so that gradients are used wherever 8 is smooth and a subgradient is used at non-smooth points (Ning, 9 Jul 2025).
Conditional on 9 and a deterministic choice of 0, the proposal is Gaussian with density
1
The Metropolis–Hastings correction is
2
and the chain update is
3
with 4. When 5 is 6 everywhere and 7, MASLA reduces exactly to standard MALA (Ning, 9 Jul 2025).
The algorithm does not prescribe a unique selection rule for 8. Any measurable selection from 9 is admissible. For compositions of linear maps and activations, including neural-network architectures, the paper emphasizes that automatic differentiation can be used to compute a generalized gradient consistent with the conservative-field chain rule; at smooth points it coincides with 0, and at non-smooth points it selects one valid generalized derivative (Ning, 9 Jul 2025).
4. Moreau–Yosida and proximal realizations of MASLA
In the convex setting treated in the MY-MALA scaling analysis, the target is
1
under the assumption that 2 is convex, proper, and lower semicontinuous. The Moreau–Yosida envelope is
3
with proximal operator
4
The central identity is
5
Because 6 is convex, 7 is continuously differentiable and convex, with 8 Lipschitz of constant 9 (Crucinio et al., 2023).
The proximal map is the resolvent of the subdifferential. If 0, then
1
Thus 2 is a particular subgradient of 3 evaluated at the prox image. This is the precise sense in which MY-MALA is a MASLA: the drift is built from a proximal or subdifferential object rather than from a classical gradient (Crucinio et al., 2023).
The unadjusted Moreau–Yosida Langevin step is
4
or equivalently
5
In the Metropolis-adjusted version, the proposal is
6
with Gaussian proposal density
7
and acceptance probability
8
The special case 9 is P-MALA. For the Laplace potential 0, the limiting case 1 yields the paper’s subgradient MALA, sG-MALA,
2
which is the pure subgradient MASLA for that target (Crucinio et al., 2023).
5. High-dimensional scaling theory
The most detailed optimal-scaling results currently attached to MASLA-type methods come from the MY-MALA analysis in product targets (Crucinio et al., 2023). For differentiable targets of the form
3
with 4 and polynomially bounded derivatives, the proposal parameters are written as
5
Three regimes appear.
For case (a), 6 with 7 and 8, the optimal scaling is
9
the limiting mean acceptance is
0
and the speed function is maximized at acceptance approximately 1. This is the RWM-like regime. For case (b), 2 with 3, the optimal scaling becomes
4
the limiting acceptance is
5
and the optimal acceptance is approximately 6, as in MALA. For case (c), 7 with 8 and 9, MY-MALA has the same limiting scaling and the same 0 constant as classical MALA, again with optimal acceptance approximately 1 (Crucinio et al., 2023).
The paper interprets these regimes through the relative decay of 2 and 3. If 4, 5 goes to zero faster than 6 and MY-MALA behaves asymptotically as MALA. If 7, the order remains MALA-like but the speed constant worsens with 8, so MALA is optimal within that family. If 9, the envelope remains comparatively smooth, stability is improved, but the scaling degrades (Crucinio et al., 2023).
For the non-smooth product Laplace target
0
the proximal operator is soft thresholding,
1
and the componentwise MY-MALA proposal becomes
2
When
3
the acceptance limit is
4
which does not depend on 5 and therefore does not depend on 6 as long as 7 decays at least as fast as 8. The limiting diffusion is
9
and the optimal acceptance is characterized by 00. Equivalently, the step-size regime is
01
which the paper describes as a new intermediate regime between RWM and smooth-target MALA (Crucinio et al., 2023).
6. Stationarity, reversibility, and implementation
For the general locally Lipschitz MASLA, the main formal guarantee is a stationarity theorem. If at Lebesgue-a.e. point 02 in the domain of 03 there exists an open neighborhood 04 where 05 is 06, and if the initial distribution is absolutely continuous with respect to Lebesgue measure, then for almost every step size 07 the MASLA chain has 08 as a stationary distribution and is reversible with respect to 09 (Ning, 9 Jul 2025).
The proof strategy is based on showing that the proposal kernel has a density for almost every 10. A simplified proposal using 11 where it exists is analyzed via a pseudo-Hessian and the inverse function theorem to prove that the proposal maps absolutely continuous measures to absolutely continuous measures. Since 12 a.e., the actual subgradient proposal coincides almost surely with the simplified one, and standard Metropolis–Hastings detailed balance then yields reversibility (Ning, 9 Jul 2025).
Implementation requires three ingredients: evaluation of 13, evaluation of a measurable selection 14, and Gaussian noise generation. In practice, the subgradient can be written analytically in piecewise-smooth models such as 15, or obtained through automatic differentiation in ReLU-type neural networks. The per-iteration cost is essentially the same as for MALA: one subgradient evaluation, one Gaussian draw, and the energy evaluations needed by the acceptance ratio (Ning, 9 Jul 2025).
For the convex-proximal subclass, the MY-MALA analysis gives more explicit tuning guidance. For smooth targets where MALA is stable and gradients are cheaply available, it is preferable to make 16 very small, effectively recovering the MALA regime. For non-smooth Laplace-like targets, the recommendation is to choose 17 so that the algorithm remains in the correct scaling regime 18. For smooth targets with tails in the family 19, MALA is geometrically ergodic for 20, whereas for 21 it may fail to be geometrically ergodic; in that case MY-MALA with suitably large 22 can improve ergodicity by smoothing the tails, at the cost of less favorable scaling (Crucinio et al., 2023).
7. Empirical behavior, terminology, and open questions
The 2025 paper reports two main empirical studies (Ning, 9 Jul 2025). In a two-dimensional TV–23 model,
24
with parameters 25, 26, and 27, MASLA is compared against proximal-subgradient Langevin, gradient-subgradient Langevin, P-MALA, and MYULA. Using 28 independent chains and step sizes 29, the experiments show exponential decay of 30 and total variation distance to the true target for all algorithms considered, with MASLA close to the specialized proximal and subgradient methods.
A second experiment studies the non-convex and non-proximal example
31
Here the proximal operator is multi-valued at some points, so P-MALA and MYULA are not directly applicable. MASLA is compared with the unadjusted subdifferential Langevin algorithm (USLA). With 32 iterations, step size 33, initialization at 34, and 35 burn-in discarded, the reported errors are: TV error 36 for USLA versus 37 for MASLA, 38 error 39 for USLA versus 40 for MASLA, and computation time 41 s for USLA versus 42 s for MASLA. The histogram for MASLA matches the theoretical density well, while the USLA histogram deviates substantially.
The terminology surrounding this family is not uniform. The literature names recorded in the two papers are MYULA for the unadjusted Moreau–Yosida sampler, P-Langevin or Proximal Langevin for the same unadjusted idea, P-MALA for the special case 43, MY-MALA for the general convex-proximal Metropolis-adjusted family, and sG-MALA for the Laplace subgradient method. MASLA is broader than these proximal variants: it does not require convexity and does not require a single-valued proximal operator, whereas MY-MALA is a particular MASLA instance built from 44 or 45 (Ning, 9 Jul 2025, Crucinio et al., 2023).
Several limitations remain explicit. The general MASLA paper proves stationarity and reversibility but does not provide a detailed geometric-ergodicity or mixing-rate theory, no explicit step-size bounds or optimal scaling rules are derived for the general locally Lipschitz non-convex setting, and the effect of different measurable subgradient selections on mixing is left open. High-dimensional experiments on realistic applications, such as deep Bayesian neural networks, also remain to be carried out systematically. By contrast, the 2023 paper provides sharp scaling theory only for the convex Moreau–Yosida subclass, specifically smooth product targets and the product Laplace target. A plausible implication is that the current theory is strongest in the convex-proximal regime, while the full non-convex MASLA program is presently supported mainly by the stationarity theorem and low-dimensional empirical evidence (Ning, 9 Jul 2025, Crucinio et al., 2023).