For proper lower semicontinuous convex functions, the Moreau envelope has gradient . This follows by subgradient inversion under convex conjugacy and the quadratic conjugate. Firm nonexpansiveness of the proximal residual makes the gradient -Lipschitz continuous.
Infimal convolution Created 2026-10-05 Updated 2026-10-14
An infimal convolution is the cheapest way to split a prescribed total between two costs. Suppose two activities contribute and to a required total , costing and . Their combined cost is optimized over all splits , rather than charging both activities for the entire total.
For proper extended-real functions on a real vector space , define
The definition does not require convexity. An infinite cost forbids that contribution, as with an indicator functional of a constraint set. If no split has two finite costs, set ; if the costs of admissible splits are unbounded below, . Thus proper inputs need not produce a proper extended-real function. The notation denotes the same operation. See Parikh and Boyd, Proximal Algorithms, §3.1 for the standard convex analysis definition and its connection to the Moreau envelope.
An infimum is a best lower bound, whereas a minimum is a value realized by some split. Writing in place of requires an attaining pair . For convex functions, mixing two nearly optimal splits and applying convexity to each cost proves that their infimal convolution is convex whenever it is proper; one must use nearly optimal splits because exact minimizers need not exist. Its convex conjugate is whenever the extended real number arithmetic is well defined; see conjugate of an infimal convolution for the precise identity. This turns the optimization over splits into addition in the conjugate variables.
Two quadratic costs: share the load according to its price. Let and let the convex quadratic functions be
For fixed , eliminate . The derivative of the total cost is , so equal marginal costs give
The cheaper activity receives more of a positive total: when and , . Completing the square gives an exact certificate for every competing split:
Consequently the infimum is a unique minimum, and
The effective quadratic coefficient is , with . It is smaller than either or : allowing both activities reduces the cost compared with assigning everything to either one. If , each receives half the total and . This is a simple quadratic optimization problem whose answer preserves the form of the original costs.
Figure 1.
Optimizing the split of two quadratic costs gives a cheaper quadratic total cost
. An exact illustrative calculation, not measured data: , and give and cost , compared with cost for an equal split. The right panel compares the optimized cost with assigning the whole total to either activity. Details.
Smoothing a corner by splitting its cost. Take the absolute value function and the convex quadratic function , with . This infimal convolution is the Moreau envelope of the absolute value function:
Here is the sign function, with . The optimal is soft thresholding. In the central region, the quadratic function carries the whole total; outside it, stays at and the absolute value function carries the excess. At the result is the Huber loss in the normalization near zero and outside. Its derivative is for and outside, so the corner becomes a continuous change of slope. Parikh and Boyd's [ref] uses twice this normalization for the Huber loss; the explicit formula here fixes the convention. This is also the one-dimensional case of the existing Moreau envelope of the Euclidean norm.
Figure 2.
Splitting absolute-value and quadratic costs produces a smooth Huber loss
. Exact illustrative curves with , not measured data. The left panel compares with its Moreau envelope; the right shows the optimal contributions and , whose sum is . Beyond the cutoffs , the quadratic contribution remains clipped while the absolute-value contribution grows. Details.
For , the Moreau envelope of the Euclidean norm is when and otherwise. Its gradient is in the core and outside. The approximation error is between zero and .
For a proper convex function with sequential lower semicontinuity , form with . The Moreau envelope theorem gives . If is integrable, it defines a smooth surrogate probability density function. Infimizing the logarithm of a probability density function with a positive quadratic penalty has the opposite sign and does not generally smooth it. For the Laplace distribution, that incorrect operation leaves , which is not differentiable at zero.
Use the extended target probability density function
The desired stationary distribution for positions is ; the full position-momentum joint probability distribution is , not alone. Gaussian momentum refreshment preserves , since it redraws its momentum marginal distribution independently while keeping the position fixed.
Let and be the surrogate leapfrog integration map. The proposal in the paper is : its notation includes the final momentum flip. Reversibility gives , so . Both and preserve volume. Thus is an involutive Metropolis proposal, and the required acceptance probability is
Equivalently, in terms of the surrogate Hamiltonian ,
Only evaluations of the true target probability density function are needed at endpoints; the trajectory uses the surrogate gradient. Target and surrogate normalizing constants cancel.
For , the accepted flux satisfies
Changing variables has unit absolute Jacobian determinant, so this identity proves detailed balance for accepted moves. The rejection mass stays at the same point and is also reversible. The accept/reject step therefore preserves . Since momentum refreshment also preserves , their composition and either phase of the alternating process preserve . Projecting onto positions proves the position stationary distribution is exactly the original target. Stationarity alone does not establish uniqueness or convergence from every start; those require additional irreducible Markov chain and aperiodic Markov chain hypotheses.
There is a genuine defect in the printed smoothing claim. For the positive, nondifferentiable Laplace distribution on the real line, direct minimization gives, for every ,
For the minimizer is ; for it is ; at zero both signs minimize. Hence normalization leaves , still nondifferentiable at zero. The displayed construction does not in general produce the asserted smooth surrogate. For example, the also nondifferentiable target makes that infimum for every , since the negative quartic term dominates the quadratic penalty. The invariance proof above is valid conditional on actually having a usable smooth surrogate, as the subsequent algorithm assumes.
A corrected sufficient construction is Moreau smoothing of a negative log-density. For a proper convex function with sequential lower semicontinuity , set
The Moreau envelope is differentiable, with ; require to be integrable to normalize it. The signs differ from the printed formula. For the Laplace distribution, this gives
a genuinely differentiable potential with integrable exponential tails. Using that surrogate with the boxed acceptance probability still targets the original Laplace distribution.
Set . Expanding the square gives
The function is one-strongly convex, so its Fenchel conjugate is differentiable with one-Lipschitz gradient. The displayed identity therefore proves that the Moreau envelope is differentiable even when is nonsmooth.
The function
is the Moreau envelope of the convex indicator , and is therefore convex. It is nonnegative and vanishes exactly on . Since , the minimum of over is zero, and every minimizer belongs to both and .
Squared distance to a convex set Created 2026-09-28 Updated 2026-10-06
For a nonempty closed convex set , the squared-distance function is the Moreau envelope of its indicator functional of a constraint set. It is convex and differentiable with
and this gradient is one-Lipschitz.