Fast Image Recovery Using Variable Splitting and Constrained Optimization
Manya V. Afonso, José M. Bioucas-Dias, Mário A. T. Figueiredo
I Introduction
Image restoration/reconstruction is one of the earliest and most classical linear inverse problems in imaging, dating back to the 1960’s . In this class of problems, a noisy indirect observation , of an original image , is modeled as
In the particular case of image deblurring/deconvolution, is the matrix representation of a convolution operator; if this convolution is periodic, is then a (block) circulant matrix. This type of observation model describes well several physical mechanisms, such as relative motion between the camera and the subject (motion blur), bad focusing (defocusing blur), or a number of other mechanisms which are well modeled by a convolution.
In more general image reconstruction problems, represents some linear direct operator, such as a set of tomographic projections (Radon transform), a partially observed (e.g., Fourier) transform, or the loss of part of the image pixels.
An alternative formulation applies a regularizer directly to the unknown image, leading to criteria of the form
Finally, it should be mentioned that problems (1) and (2) can be seen as the Lagrangians of associated constrained optimization problems: (1) is the Lagrangian of the constrained problem
Specifically, a solution of (3) (for any such that this problem is feasible) is either the null vector, or else is a minimizer of (1), for some (see [39, Theorem 27.4]). A similar relationship exists between problems (2) and (4).
I-B Previous Algorithms
For any problem of non-trivial dimension, matrices , , and cannot be stored explicitly, and it is costly, even impractical, to access portions (lines, columns, blocks) of them. On the other hand, matrix-vector products involving or (or their conjugate transposes and ) can be done quite efficiently. For example, if the columns of contain a wavelet basis or a tight wavelet frame, any multiplication of the form or can be performed by a fast wavelet transform algorithm . Similarly, if represents a convolution, products of the form or can be performed with the help of the fast Fourier transform (FFT) algorithm. These facts have stimulated the development of special purpose methods, in which the only operations involving or (or their conjugate transposes) are matrix-vector products.
To present a unified view of algorithms for handling (1) and (2), we write them in a common form
where , in the case of (1), while , for (2).
Notice that if is proper and convex, the function being minimized is proper and strictly convex, thus the minimizer exists and is unique making the function well defined .
Each IST iteration for solving (5) is given by
where is a step size. Notice that is the gradient of the data-fidelity term , computed at ; thus, each IST iteration takes a step of length in the direction of the negative gradient of the data-fidelity term, followed by the application of the shrinkage/thresholding function associated with the regularizer .
It has been shown that if and is convex, the algorithm converges to a solution of (1) . However, it is known that IST may be quite slow, specially when is very small and/or the matrix is very ill-conditioned , , , . This observation has stimulated work on faster variants of IST, which we will briefly review in the next paragraphs.
In the two-step IST (TwIST) algorithm , each iterate depends on the two previous iterates, rather than only on the previous one (as in IST). This algorithm may be seen as a non-linear version of the so-called two-step methods for linear problems . TwIST was shown to be considerably faster than IST on a variety of wavelet-based and TV-based image restoration problems; the speed gains can reach up two orders of magnitude in typical benchmark problems.
Another two-step variant of IST, named fast IST algorithm (FISTA), was recently proposed and also shown to clearly outperform IST in terms of speed . FISTA is a non-smooth variant of Nesterov’s optimal gradient-based algorithm for smooth convex problems , .
A strategy recently proposed to obtain faster variants of IST consists in relaxing the condition . In the SpaRSA (standing for sparse reconstruction by separable approximation) framework , , a different is used in each iteration (which may be smaller than , meaning larger step sizes). It was shown experimentally that SpaRSA clearly outperforms standard IST. A convergence result for SpaRSA was also given in .
Finally, when the slowness is caused by the use of a small value of the regularization parameter, continuation schemes have been found quite effective in speeding up the algorithm. The key observation is that IST algorithm benefits significantly from warm-starting, i.e., from being initialized near a minimum of the objective function. This suggests that we can use the solution of (5), for a given value of , to initialize IST in solving the same problem for a nearby value of . This warm-starting property underlies continuation schemes , , . The idea is to use IST to solve (1) for a larger value of (which is usually fast), then decrease in steps toward its desired value, running IST with warm-start for each successive value of .
I-C Proposed Approach
The approach proposed in this paper is based on the principle of variable splitting, which goes back at least to Courant in the 40’s , . Since the objective function (5) to be minimized is the sum of two functions, the idea is to split the variable into a pair of variables, say and , each to serve as the argument of each of the two functions, and then minimize the sum of the two functions under the constraint that the two variables have to be equal, so that the problems are equivalent. Although variable splitting is also the rationale behind the recently proposed split-Bregman method , in this paper, we exploit a different type of splitting to attack problem (5). Below we will explain this difference in detail.
The obtained constrained optimization problem is then dealt with using an augmented Lagrangian (AL) scheme , which is known to be equivalent to the Bregman iterative methods recently proposed to handle imaging inverse problems (see and references therein). We prefer the AL perspective, rather than the Bregman iterative view, as it is a standard and more elementary optimization tool (covered in most textbooks on optimization). In particular, we solve the constrained problem resulting from the variable splitting using an algorithm known as alternating direction method of multipliers (ADMM) .
The application of ADMM to our particular problem involves solving a linear system with the size of the unknown image (in the case of problem (2)) or with the size of its representation (in the case of problem (1)). Although this seems like an unsurmountable obstacle, we show that it is not the case. In many problems of the form (2), such as deconvolution, recovery of missing samples, or reconstruction from partial Fourier observations, this system can be solved very quickly in closed form (with or cost). For problems of the form (1), we show how exploiting the fact that is a tight Parseval frame, this system can still be solved efficiently (typically with cost.
We report results of a comprehensive set of experiments, on a set of benchmark problems, including image deconvolution, recovery of missing pixels, and reconstruction from partial Fourier transform, using both frame-based and TV-based regularization. In all the experiments, the resulting algorithm is consistently and considerably faster than the previous state of the art methods FISTA , TwIST , and SpaRSA .
The speed of the proposed algorithm, which we term SALSA (split augmented Lagrangian shrinkage algorithm), comes from the fact that it uses (a regularized version of) the Hessian of the data fidelity term of (5), that is, , while the above mentioned algorithms essentially only use gradient information.
I-D Organization of the Paper
Section II describes the basic ingredients of SALSA: variable splitting, augmented Lagrangians, and ADMM. In Section III, we show how these ingredients are combined to obtain the proposed SALSA. Section IV reports experimental results, and Section V ends the paper with a few remarks and pointers to future work.
II Basic Ingredients
Consider an unconstrained optimization problem in which the objective function is the sum of two functions, one of which is written as the composition of two functions,
which is clearly equivalent to unconstrained problem (8): in the feasible set , the objective function in (9) coincides with that in (8). The rationale behind variable splitting methods is that it may be easier to solve the constrained problem (9) than it is to solve its unconstrained counterpart (8).
The splitting idea has been recently used in several image processing applications. A variable splitting method was used in to obtain a fast algorithm for TV-based image restoration. Variable splitting was also used in to handle problems involving compound regularizers; i.e., where instead of a single regularizer in (5), one has a linear combination of two (or more) regularizers . In and , the constrained problem (9) is attacked by a quadratic penalty approach, i.e., by solving
by alternating minimization with respect to and , while slowly taking to very large values (a continuation process), to force the solution of (10) to approach that of (9), which in turn is equivalent to (8). The rationale behind these methods is that each step of this alternating minimization may be much easier than the original unconstrained problem (8). The drawback is that as becomes very large, the intermediate minimization problems become increasingly ill-conditioned, thus causing numerical problems (see , Chapter 17).
A similar variable splitting approach underlies the recently proposed split-Bregman methods ; however, instead of using a quadratic penalty technique, those methods attack the constrained problem directly using a Bregman iterative algorithm . It has been shown that, when is a linear function, i.e., , the Bregman iterative algorithm is equivalent to the augmented Lagrangian method , which is briefly reviewed in the following subsection.
II-B Augmented Lagrangian
Consider the constrained optimization problem
The so-called augmented Lagrangian method (ALM) , also known as the method of multipliers (MM) , , consists in minimizing {\cal L}_{A}({\bf z},\mbox{\boldmath\lambda},\mu) with respect to , keeping fixed, then updating , and repeating these two steps until some convergence criterion is satisfied. Formally, the ALM/MM works as follows:
Set , choose , , and \mbox{\boldmath\lambda}_{0}.
{\bf z}_{k+1}\in\arg\min_{{\bf z}}{\cal L}_{A}({\bf z},\mbox{\boldmath\lambda}_{k},\mu)
\mbox{\boldmath\lambda}_{k+1}=\mbox{\boldmath\lambda}_{k}+\mu({\bf b}-{\bf Az}_{k+1})
It is also possible (and even recommended) to update the value of in each iteration , [3, Chap. 9]. However, unlike in the quadratic penalty approach, the ALM/MM does not require to be taken to infinity to guarantee convergence to the solution of the constrained problem (11).
Notice that (after a straightforward complete-the-squares procedure) the terms added to in the definition of the augmented Lagrangian {\cal L}_{A}({\bf z},\mbox{\boldmath\lambda}_{k},\mu) in (12) can be written as a single quadratic term (plus a constant independent of , thus irrelevant for the ALM/MM), leading to the following alternative form of the algorithm (which makes clear its equivalence with the Bregman iterative method ):
Set , choose and .
It has been shown that, with adequate initializations, the ALM/MM generates the same sequence as a proximal point algorithm applied to the Lagrange dual of problem (11) . Moreover, the sequence converges to a solution of this dual problem and all cluster points of the sequence are solutions of the (primal) problem (11) .
II-C ALM/MM for Variable Splitting
We now show how the ALM/MM can be used to address problem (9), in the particular case where , i.e.,
With these definitions in place, Steps 3 and 4 of the ALM/MM (version II) can be written as follows:
The minimization problem (16) is not trivial since, in general, it involves non-separable quadratic and possibly non-smooth terms. A natural to address (16) is to use a non-linear block-Gauss-Seidel (NLBGS) technique, in which (16) is solved by alternatingly minimizing it with respect to and , while keeping the other variable fixed. Of course this raises several questions: for a given , how much computational effort should be spent in approximating the solution of (16)? Does this NLBGS procedure converge? Experimental evidence in suggests that an efficient algorithm is obtained by running just one NLBGS step. It turns out that the resulting algorithm is the so-called alternating direction method of multipliers (ADMM) , which works as follows:
Set , choose , , and .
For later reference, we now recall the theorem by Eckstein and Bertsekas, in which convergence of (a generalized version of) ADMM is shown. This theorem applies to problems of the form (8) with , i.e.,
of which (13) is the constrained optimization reformulation.
Then, if (18) has a solution, the sequence converges, , where is a solution of (18). If (18) does not have a solution, then at least one of the sequences or diverges.
Notice that the ADMM algorithm defined above generates sequences , , and which satisfy the conditions in Theorem 1 in a strict sense (i.e., with ). One of the important consequences of this theorem is that it shows that it is not necessary to exactly solve the minimizations in lines 3 and 4 of ADMM; as long as sequence of errors is absolutely summable, convergence is not compromised.
The proof of Theorem 1 is based on the equivalence between ADMM and the so-called Douglas-Rachford splitting method (DRSM) applied to the dual of problem (18). The DRSM was recently used for image recovery problems in . For recent and comprehensive reviews of ALM/MM, ADMM, DRSM, and their relationship with Bregman and split-Bregman methods, see , .
III Proposed Method
We now return to the unconstrained optimization formulation of regularized image recovery, as defined in (5). This problem can be written in the form (18), with
The constrained optimization formulation is thus
At this point, we are in a position to clearly explain the difference between this formulation and the splitting exploited in split-Bregman methods (SBM) for image recovery . In those methods, the focus of attention is a non-separable regularizer that can be written as , as is the case of the TV norm. The variable splitting used in SBM addresses this non-separability by defining the following constrained optimization formulation:
In contrast, we assume that the Moreau proximal mapping associated to the regularizer , i.e., the function \mbox{\boldmath\Psi}_{\tau\phi}(\cdot) defined in (6), can be computed efficiently. The goal of our splitting is not to address the difficulty raised by a non-separable and non-quadratic regularizer, but to exploit second order (Hessian) information of the function , as will be shown below.
III-B Algorithm and Its Convergence
Inserting the definitions given in (19)–(21) in the ADMM presented in the previous section yields the proposed SALSA (split augmented Lagrangian shrinkage algorithm).
Set , choose , , and .
Notice that SALSA is an instance of ADMM with ; thus, the full column rank condition on in Theorem 1 is satisfied. If the minimizations in lines 4 and 6 are solved exactly, we can then invoke Theorem 1 to guarantee to convergence of SALSA.
In line 4 of SALSA, a strictly convex quadratic function has to be minimized; which leads to the following linear system
As shown in the next subsection, this linear system can be solved exactly (naturally, up to numerical precision), i.e., non-iteratively, for a comprehensive set of situations of interest. The matrix can be seen as a regularized (by the addition of ) version of the Hessian of , thus SALSA does use second order information of this function. Notice also that (24) is formally similar to the maximum a posteriori (MAP) estimate of , from observations (where is white Gaussian noise of variance ) under a Gaussian prior of mean and covariance .
The problem in line 6 is, by definition, the Moreau proximal mapping of applied to , thus its solution can be written as
If this mapping can be computed exactly in closed form, for example, if thus is simply a soft threshold, then, by Theorem 1, SALSA is guaranteed to converge. If does not have a closed form solution and requires itself an iterative algorithm (e.g., if is the TV norm), then convergence of SALSA still holds if one can guarantee that the error sequence (see Theorem 1) is summable. This can be achieved (at least approximately) if the iterative algorithm used to approximate is initialized with the result of the previous outer iteration, and a decreasing stopping threshold is used.
𝑘1{\bf x}_{k+1} As stated above, we are interested in problems where it is not feasible to explicitly form matrix ; this might suggest that it is not easy, or even feasible, to compute the inverse in (24). However, as shown next, in a number of problems of interest, this inverse can be computed very efficiently.
In this case we have (see (1), (2), and (5)), where is the matrix representation of a convolution. This is the simplest case, since the inverse can be computed in the Fourier domain. Although this is an elementary and well-known fact, we include the derivation for the sake of completeness. Assuming that the convolution is periodic (other boundary conditions can be addressed with minor changes), is a block-circulant matrix with circulant blocks which can be factorized as
where is the matrix that represents the 2D discrete Fourier transform (DFT), is its inverse ( is unitary, i.e., ), and is a diagonal matrix containing the DFT coefficients of the convolution operator represented by . Thus,
where denotes complex conjugate and the squared absolute values of the entries of the diagonal matrix . Since is diagonal, its inversion has linear cost . The products by and can be carried out with cost using the FFT algorithm. The expression in (28) is a Wiener filter in the frequency domain.
III-C2 Deconvolution with Frame-Based Synthesis Prior
In this case, we have a problem of the form (1), i.e., , thus the inversion that needs to be performed is . Assuming that represents a (periodic) convolution, this inversion may be sidestepped under the assumption that matrix corresponds to a normalized tight frame (a Parseval frame), i.e., . Applying the Sherman -Morrison- Woodbury (SMW) matrix inversion formula yields
Let’s focus on the term ; using the factorization (26), we have
Since all the matrices in are diagonal, this expression can be computed with cost, while the products by and can be computed with cost using the FFT. Consequently, products by matrix (defined in (29)) have cost.
Defining , allows writing (24) compactly as
Notice that multiplication by corresponds to applying an image filter in the Fourier domain. Finally, notice also that the term can be precomputed, as it doesn’t change during the algorithm.
The leading cost of each application of (30) will be either or the cost of the products by and . For most tight frames used in image processing, these products correspond to direct and inverse transforms for which fast algorithms exist. For example, when and are the inverse and direct translation-invariant wavelet transforms, these products can be computed using the undecimated wavelet transform with total cost . Curvelets also constitute a Parseval frame for which fast implementations of the forward and inverse transform exist . Yet another example of a redundant Parseval frame is the complex wavelet transform, which has computational cost , . In conclusion, for a large class of choices of , each iteration of the SALSA algorithm has cost.
III-C3 Missing Pixels: Image Inpainting
In the analysis prior case (TV-based), we have , where the observation matrix models the loss of some image pixels. Matrix is thus an binary matrix, with , which can be obtained by taking a subset of rows of an identity matrix. Due to its particular structure, this matrix satisfies . Using this fact together with the SMW formula leads to
Since is equal to an identity matrix with some zeros in the diagonal (corresponding to the positions of the missing observations), the matrix in (31) is diagonal with elements either equal to or . Consequently, (24) corresponds simply to multiplying by this diagonal matrix, which is an operation.
In the synthesis prior case, we have , where is the binary sub-sampling matrix defined in the previous paragraph. Using the SMW formula yet again, and the fact that , we have
As noted in the previous paragraph, is equal to an identity matrix with zeros in the diagonal (corresponding to the positions of the missing observations), i.e., it is a binary mask. Thus, the multiplication by corresponds to synthesizing the image, multiplying it by this mask, and computing the representation coefficients of the result. In conclusion, the cost of (24) is again that of the products by and , usually .
III-C4 Partial Fourier Observations: MRI Reconstruction.
The final case considered is that of partial Fourier observations, which is used to model magnetic resonance image (MRI) acquisition , and has been the focus of much recent interest due to its connection to compressed sensing . In the TV-regularized case, the observation matrix has the form , where is an binary matrix, with , similar to the one in the missing pixels case (it is formed by a subset of rows of an identity matrix), and is the DFT matrix. This case is similar to (32), with and instead of and , respectively. The cost of (24) is again that of the products by and , i.e., if we use the FFT.
In the synthesis case, the observation matrix has the form . Clearly, the case is again similar to (32), but with and instead of and , respectively. Again, the cost of (24) is , if the FFT is used to compute the products by and and fast frame transforms are used for the products by and .
IV Experiments
In this section, we report results of experiments aimed at comparing the speed of SALSA with that of the current state of the art methods (all of which are freely available online): TwISTAvailable at http://www.lx.it.pt/~bioucas/code/TwIST_v1.zip , SpaRSAAvailable at http://www.lx.it.pt/~mtf/SpaRSA/ , and FISTAAvailable at http://iew3.technion.ac.il/~becka/papers/wavelet_FISTA.zip . We consider three standard and often studied imaging inverse problems: image deconvolution (using both wavelet and TV-based regularization); image restoration from missing samples (inpainting); image reconstruction from partial Fourier observations, which (as mentioned above) has been the focus of much recent interest due to its connection with compressed sensing and the fact that it models MRI acquisition . All experiments were performed using MATLAB for Windows XP, on a desktop computer equipped with an Intel Pentium-IV GHz processor and GB of RAM. To compare the speed of the algorithms, in a way that is as independent as possible from the different stopping criteria, we first run SALSA and then the other algorithms until they reach the same value of the objective function. The value of for fastest convergence was found to differ (though not very much) in each case, but a good rule of thumb, adopted in all the experiments, is .
We consider five benchmark deblurring problems , summarized in Table I, all on the well-known Cameraman image. The regularizer is \phi(\mbox{\boldmath\beta})=\|\mbox{\boldmath\beta}\|_{1}, thus \mbox{\boldmath\Psi}_{\tau\phi} is an element-wise soft threshold. The blur operator is applied via the FFT. The regularization parameter is hand tuned in each case for best improvement in SNR, so that the comparison is carried out in the regime that is relevant in practice. Since the restored images are visually indistinguishable from those obtained in , and the SNR improvements are also very similar, we simply report computation times.
In the first set of experiments, is a redundant Haar wavelet frame with four levels. The CPU times taken by each of the algorithms are presented in Table II. In the second set of experiments, is an orthogonal Haar wavelet basis; the results are reported in Table III. To visually illustrate the relative speed of the algorithms, Figures 1 and 2 plot the evolution of the objective function (see Eq. (1)), versus time, in experiments , B, and A, for redundant and orthogonal wavelets, respectively.
IV-B Image Deblurring with Total Variation
The same five image deconvolution problems listed in Table I were also addressed using total variation (TV) regularization (more specifically, the isotropic discrete total variation, as defined in ). The corresponding Moreau proximal mapping is computed using iterations of Chambolle’s algorithm .
The CPU times taken by SALSA, TwIST, SpaRSA, and FISTA are listed in Table IV. The evolutions of the objective functions (for experiments , B, and A) are plotted in Figure 3.
We can conclude from Tables II, III, and IV that, in image deconvolution problems, both with wavelet-based and TV-based regularization, SALSA is always clearly faster than the fastest of the other competing algorithms.
IV-C MRI Image Reconstruction
We consider the problem of reconstructing the Shepp-Logan phantom (shown in Figure 4) from a limited number of radial lines (22, in our experiments, as shown in Figure 4) of its 2D discrete Fourier transform. The projections are also corrupted with circular complex Gaussian noise, with variance . We use TV regularization (as described in Subsection IV-B), with the corresponding Moreau proximal mapping implemented by iterations of Chambolle’s algorithm .
Table V shows the CPU times, while Figure 5 plots the evolution of the objective function over time. Figure 4 shows the estimate obtained using SALSA (the others are, naturally, visually indistinguishable). Again, we may conclude that SALSA is considerably faster than the other three algorithms, while achieving comparable values of mean squared error of the reconstructed image.
IV-D Image Inpainting
Finally, we consider an image inpainting problem, as explained in Section III-C. The original image is again the Cameraman, and the observation consists in loosing of its pixels, as shown in Figure 6. The observations are also corrupted with Gaussian noise (with an SNR of dB). The regularizer is again TV implemented by iterations of Chambolle’s algorithm.
The image estimate obtained by SALSA is shown in Figure 6, with the original also shown for comparison. The estimates obtained using TwIST and FISTA were visually very similar. Table VI compares the performance of SALSA with that of TwIST and FISTA and Figure 7 shows the evolution of the objective function for each of the algorithms. Again, SALSA is considerably faster than the alternative algorithms.