Many signals admit accurate approximations using only a small number of coefficients in a suitable basis or dictionary. Sparse regularization turns this observation into a reconstruction principle for noisy or incomplete measurements. We move from counting nonzero coefficients to a convex penalty, distinguish analysis and synthesis models, derive thresholding and iterative algorithms, and apply them to deconvolution and inpainting.
The main references for this chapter are [23, 31, 29].
Chapter 5 shows that an orthonormal basis B={ψm}m adapted to an image class Θ can approximate each f∈Θ using relatively few atoms.
The ℓ0 prior measures representation complexity by counting the nonzero coefficients:
J0(f):=#{m;⟨f,ψm⟩=0}wherexm=⟨f,ψm⟩.
This count is also called the ℓ0 pseudonorm:
∣∣x∣∣0:=J0(f).
It measures sparsity directly, without accounting for the magnitudes of the nonzero coefficients.
Natural images usually have many nonzero coefficients, but can often be approximated by a function fM with a small count M=J0(fM). Retaining coefficients above a threshold gives a best M-term approximation, with M determined by that threshold:
For suitable wavelet bases and the bounded-variation image classes specified in Section 5.2, the error ∣∣f−fM∣∣ satisfies quantitative decay estimates. These estimates motivate approximating natural images f by functions with small J0.
Figure 10.1 displays a natural image in the wavelet basis ψm=ψj,nω, indexed by m=(j,n,ω). Most coefficients ⟨f,ψm⟩ have small magnitude, so retaining the few large coefficients captures much of the image.
Figure 10.1. Most wavelet coefficients of a natural image have small magnitude.
The ideal sparsity prior J0 is nonconvex, which makes optimization difficult. For example, if f and g have disjoint nonempty coefficient supports in B, then J0((f+g)/2)=J0(f)+J0(g), violating convexity of J0.
In a general inverse problem, minimizing J0 entails a combinatorial search over possible coefficient supports.
To approximate the ideal prior J0, consider the ℓq family with q>0:
Jq(f)=m∑∣⟨f,ψm⟩∣q.
As shown in Figure 10.2, the unit balls in R2 become concentrated near the coordinate axes as q↓0. For each fixed finite-dimensional vector, Jq(f)→J0(f); the limiting shape of these bounded unit balls should not be confused with the unbounded set {x:∣∣x∣∣0⩽1}. Small values of q favor sparsity.
Figure 10.2.ℓq balls {x;Jq(x)⩽1} for varying q.
The prior Jq is convex exactly when q⩾1. The smallest exponent yielding a convex prior, q=1, gives the ℓ1 prior J1:
J1(f)=∣∣(⟨f,ψm⟩)∣∣1=m∑∣⟨f,ψm⟩∣.(10.1)
In the following, we consider discrete orthonormal bases B={ψm}m=0N−1 of RN.
Given an orthonormal basis {ψm}m of RN, regularization-based denoising (8.15) can be written using the sparsity priors J0 and J1 as
f⋆∈g∈RNargmin21∣∣f−g∣∣2+λJq(g)
for q=0 or q=1, writing J0=J0. Orthonormality separates the objective into coefficientwise terms:
f⋆=m∑xm⋆ψm
wherex⋆∈y∈RNargminm∑21∣xm−ym∣2+λ∣ym∣q
Here xm:=⟨f,ψm⟩ and ym:=⟨g,ψm⟩. For q=0, we adopt the convention
∀u∈R,∣u∣0={0ifu=0,1otherwise.
Each coefficient of the denoised image solves a one-dimensional optimization problem
xm⋆∈u∈Rargmin21∣xm−u∣2+λ∣u∣q(10.2)
The following proposition gives a closed-form solution by thresholding.
Figure 10.3. Panel 1: the objective ∣∣⋅−y∣∣2+T2∣∣⋅∣∣0. Panels 2–5: the scalar objective F(x):=21∣x−y∣2+λ∣x∣ for increasing λ.
Figure 10.3. Panel 1: the objective ∣∣⋅−y∣∣2+T2∣∣⋅∣∣0. Panels 2–5: the scalar objective F(x):=21∣x−y∣2+λ∣x∣ for increasing λ.
Transforming the thresholded coefficients back to the image domain gives
fλ,q=m∑STq(⟨f,ψm⟩)ψm.
For Gaussian white noise w of variance σ2, thresholds can be chosen from the noise level; see Section 7.3. The universal threshold T=σ2logN controls the largest noise coefficients and gives asymptotic risk guarantees under the signal assumptions of Section 7.3.3. Common empirical choices are T≈3σ for hard thresholding (ℓ0 regularization) and T≈3σ/2 for soft thresholding (ℓ1 regularization); see Figure 7.13.
Using the ℓ1 prior in an orthonormal basis {ψm}m of RN, with J1 defined in (10.1), gives the convex inverse problem
fλ∈f∈RNargmin21∣∣y−Φf∣∣2+λm∑∣⟨f,ψm⟩∣.(10.6)
Chen, Donoho, and Saunders introduced this basis pursuit denoising formulation in [12]. Section 10.3 derives an iterative thresholding algorithm for (10.6).
Analysis vs. synthesis priors.
For a nonorthogonal dictionary Ψ={ψm}m=1Q, which is redundant if Q>N, there are two distinct extensions of (10.6). Each uses a convex prior J in
fλ∈f∈RNargmin21∣∣y−Φf∣∣2+λJ(f).(10.7)
We also use the dictionary symbol for its synthesis operator; its adjoint is the analysis operator:
Ψ:x∈RQ↦Ψx=m∑xmψmandΨ∗:f∈RN↦(⟨f,ψm⟩)m=1Q∈RQ.
The analysis prior penalizes the sum of the magnitudes of correlations with the dictionary atoms:
J1A(f):=m∑∣⟨f,ψm⟩∣=∣∣Ψ∗f∣∣1.(10.8)
The synthesis prior minimizes the coefficient norm over expansions of f in Ψ:
J1S(f):=x∈RQ,Ψx=fmin∣∣x∣∣1.(10.9)
The two priors agree for an orthonormal basis, but generally differ for redundant dictionaries. Analysis regularization often requires primal–dual algorithms, as detailed in Chapter 19. Its recovery theory depends on the dictionary and on the structure of the vanishing analysis coefficients. The synthesis formulation leads directly to the coefficient-space algorithms studied below. We assume the dictionary spans RN; otherwise the synthesis prior is +∞ outside its span.
We now focus on synthesis regularization J=J1S, and rewrite (10.7) as fλ=Ψxλ where xλ is any solution of the following basis pursuit denoising problem
xλ∈x∈RQargmin2λ1∣∣y−Ax∣∣2+∣∣x∣∣1(10.10)
where the measurement matrix in coefficient space is
A:=ΦΨ∈RP×Q.
For consistent data y∈Im(A), the limit λ↓0 leads to the constrained problem
x⋆∈Ax=yargmin∣∣x∣∣1(10.11)
and the signal is recovered as f⋆=Ψx⋆∈RN.
Figure 10.4. Geometry of convex optimization: smooth-boundary and corner contact with objective level sets, followed by the smallest scaled ℓ2 and ℓ1 balls touching an affine constraint. Red dots mark the contact points.
Then recover x⋆=x+⋆−x−⋆. For small or moderate Q, the linear program can be solved by simplex or interior-point methods.
For large imaging and learning problems, first-order methods are often preferable. One option is Douglas–Rachford splitting, developed in Section 19.5.2.
The penalized problem (10.10) admits a particularly simple splitting algorithm because its fidelity term is smooth. The relative computational cost of the two formulations depends on the solver and on A.
where η(ℓ):=A∗(Ax(ℓ)−y), and adding the scalar λ means adding λ1Q componentwise.
Theorem 19.2 ensures that u(ℓ)→u⋆, a solution of (19.4), if
∀ℓ,0<τmin<τℓ<τmax<∣∣A∣∣21,
The smooth objective in (u+,u−) has gradient Lipschitz constant 2∣∣A∣∣2, which explains the step-size bound. Consequently, x(ℓ)→x⋆=u+⋆−u−⋆, a solution of (10.10).
10.3.3 Iterative Soft Thresholding and Forward Backward¶
Splitting positive and negative parts requires storing 2Q coefficients. The iterative soft thresholding algorithm (ISTA) avoids this duplication while retaining comparable convergence guarantees.
For a fixed step 0<τ<2/∣∣A∣∣2, ISTA converges to a minimizer. The surrogate derivation below uses the stricter bound τ⩽1/∣∣A∣∣2, which gives a direct proof of energy decrease.
ISTA was derived by several authors [20, 16]. It is a special case of forward–backward proximal splitting [14], studied in Section 19.4.2.
We derive ISTA for the ℓ1 penalty by minimizing a sequence of surrogate objectives.
The correction K(x,x′) is nonnegative when λmax(A∗A)⩽1/τ, where the left side is the largest eigenvalue. Equivalently, τ⩽1/∣∣A∣∣op2, with ∣∣A∣∣op=σmax(A) denoting the operator norm.
Under this condition, Eτ(x,x′) is a surrogate that bounds the objective from above and agrees with it at the reference point:
E(x)⩽Eτ(x,x′),Eτ(x′,x′)=E(x′),andE(⋅)−Eτ(⋅,x′) is smooth.
Minimizing this surrogate at each iteration gives
x(ℓ+1):=xargminEτℓ(x,x(ℓ))(10.13)
The surrogate upper bound and equality at the current iterate imply
E(x(ℓ+1))⩽E(x(ℓ)).
The iterations (10.14) coincide with the forward–backward iterates (19.20). For the coefficient-space objective (10.10), rescaled by λ, use the splitting
F=21∣∣A⋅−y∣∣2andG=λ∣∣⋅∣∣1.(10.15)
In the case (10.15), Proposition 10.1 shows that ProxρG is soft thresholding at level ρλ.
Sparse spike deconvolution uses sparsity in the spatial domain, which corresponds to the orthonormal basis of Diracs ψm[n]=δ[n−m]. In seismic imaging, a simple sparse reflectivity model represents f0 as a few impulses associated with changes in acoustic impedance.
In a linearized one-dimensional model that neglects multiple reflections, the subsurface reflectivity f0 produces observations y=h⋆f0+w. Here h is the transmitted pulse, called a seismic wavelet. This use of the word differs from the orthogonal wavelet bases constructed in Chapter 4, although the terminology originated in seismic imaging.
The seismic wavelet h is typically band-pass, balancing spatial and frequency concentration. Figure 10.5 shows a second derivative of a Gaussian and its Fourier transform. The narrow transmitted band illustrates how acquisition suppresses information about f0.
Using ℓ1 regularization in the Dirac basis gives
f⋆=f∈RNargmin21∣∣f⋆h−y∣∣2+λm∑∣fm∣.
Figure 10.5 shows the result of ℓ1 minimization with an oracle choice of λ that minimizes the error ∣∣f⋆−f0∣∣.
Figure 10.5. Sparse spike recovery by the pseudoinverse and by ℓ1 regularization.
ISTA for sparse spike recovery alternates the updates
f~(k)=f(k)−τh∨⋆(h⋆f(k)−y)
and
fm(k+1)=Sλτ1(f~m(k))
where h∨[n]=h[−n] is the adjoint convolution kernel. It equals h for a real symmetric filter. The step size must satisfy
0<τ<2/∣∣Φ∗Φ∣∣=2/ωmax∣h^(ω)∣2
to guarantee convergence. Figure 10.6 shows convergence of both the objective values and the iterates. Objective convergence alone would not ensure convergence of the iterates when minimizers are nonunique; the forward–backward convergence theorem provides the latter guarantee here.
Figure 10.6. Convergence of the energy and iterates under iterative soft thresholding.
Camera images can be blurred by defocus, motion during exposure, or diffraction. Assuming spatial invariance, we model the blur operator Φ by convolution:
y=f0⋆h+w.
We use a Gaussian filter h of width μ>0. On a fixed d-dimensional domain, the number of effectively transmitted frequencies scales roughly as μ−d, with a threshold-dependent factor, because higher frequencies are strongly attenuated.
Figures 10.7 and 10.8 show examples of signal and image acquisition with Gaussian blur.
Sobolev regularization (9.23) suppresses high-frequency noise more strongly than the squared-norm penalty (9.10). Both can blur sharp transitions. TV regularization and sparsity in a wavelet basis are better adapted to signals with edges.
Figure 10.7 compares wavelet and Sobolev regularization for a one-dimensional signal; Figure 10.8 shows the corresponding image-deblurring results. Replacing an orthogonal wavelet basis in (10.14) by a translation-invariant tight frame (7.12) can reduce artifacts. For a redundant frame, synthesis ISTA acts in coefficient space with A=ΦΨ. Simply analyzing, thresholding, and synthesizing is generally not the proximal map of the analysis penalty.
Figure 10.7. One-dimensional deconvolution with sparsity in an orthogonal wavelet basis.
Figure 10.8. Image deconvolution.
Figure 10.9 plots the SNR against λ. Computing the SNR requires the clean reference image f0; the reported experiments use the maximizing value of λ.
Figure 10.9. Reconstruction SNR as a function of the regularization parameter λ, swept logarithmically from 10-5 to 1. Red dots mark the measured maxima.
This section continues the discussion in Section 9.6.2.
For noiseless inpainting, a small λ>0 approximates constrained ℓ1 minimization. Exact interpolation is obtained in the limit under the assumptions of Proposition 9.5. For an orthonormal basis, the iterative thresholding algorithm (10.14) takes the following form for τ=1:
f(k+1)=m∑Sλ1(⟨Py(f(k)),ψm⟩)ψm
Figure 10.10 compares Sobolev inpainting with wavelet sparsity priors, including a translation-invariant frame.
Figure 10.10. Inpainting with Sobolev and wavelet sparsity priors.