DEALing with Image Reconstruction: Deep Attentive Least Squares Mehrsa Pourya †, Erich Kobler ‡, Michael Unser †, Sebastian Neumayer ⋆ Abstract State-of-the-art image reconstruction often relies on complex, highly parameterized deep architectures. We propose an alternative: a data-driven reconstruction method inspired by the classic Tikhonov regularization. Our approach iteratively refines intermediate reconstructions by solving a sequence of quadratic problems. These updates have two key components: (i) learned filters to extract salient image features, and (ii) an attention mechanism that locally adjusts the penalty of filter responses. Our method achieves performance on par with leading plug-and-play and learned regularizer approaches while offering interpretability, robustness, and convergent behavior. In effect, we bridge traditional regularization and deep learning with a principled reconstruction approach. 1. Introduction Image reconstruction plays a fundamental role in computational imaging and computer vision [ 30 , 50 ] . The task is to recover an unknown image of interest {\bf{x}}\in\mathbb{R}^{d} from noisy measurements {\bf{y}}\in\mathbb{R}^{M} . Their relation is often modeled as {\bf{y}}={\bf{H}}{\bf{x}} , where the forward operator {\bf{H}}\in\mathbb{R}^{M\times d} encodes the acquisition process. If {\bf{H}} is ill-conditioned, one resorts to regularized reconstruction \hat{{\bf{x}}}\in\argmin_{{\bf{x}}\in\mathbb{R}^{d}}\left\rVert{\bf{H}}{\bf{x}}-{\bf{y}}\right\rVert_{2}^{2}+\lambda\mathcal{R}({\bf{x}}). (1) The data-fidelity \left\rVert{\bf{H}}{\bf{x}}-{\bf{y}}\right\rVert_{2}^{2} controls the consistency of the reconstruction with the measurements. The regularizer \mathcal{R}\colon\mathbb{R}^{d}\to\mathbb{R}_{\geq 0} encodes prior information about the solution and is also intended to make the problem well-posed. Both terms are balanced by the hyperparameter \lambda\in\mathbb{R}_{\geq 0} . Throughout this paper, {\bf{x}} is the vectorized version of a (color or grayscale) image with shape N_{\mathrm{in}}\times H\times W . From classic signal processing to the advent of deep learning, a significant body of research focuses on the design of the regularizer \mathcal{R} . In the context of data-driven methods, two primary approaches emerged: (i) the explicit modeling of \mathcal{R} , and (ii) the modeling of operators associated with \mathcal{R} , such as its proximal operator, which is required in Plug-and-Play (PnP) reconstruction algorithms [ 46 ] . Following the explicit approach, the starting point for this work is the fields-of-experts model [ 40 ] , which reads \mathcal{R}_{{\bf{m}}}\colon{\bf{x}}\mapsto\sum_{c=1}^{N_{\mathrm{C}}}\bigl\langle{\bf{m}}_{c},\psi_{c}({\bf{W}}_{c}{\bf{x}})\bigr\rangle. (2) Here, each {\bf{W}}_{c}\in\mathbb{R}^{HW\times d} convolves {\bf{x}} with a filter template w_{c}\in\mathbb{R}^{N_{\mathrm{in}}\times k_{s}\times k_{s}} . Then, the nonnegative potentials \psi_{c}\in\mathcal{C}(\mathbb{R}) are applied entry-wise to the {\bf{W}}_{c}{\bf{x}} . Finally, the weights {\bf{m}}_{c}\in[\epsilon_{M},1]^{HW} with \epsilon_{M}>0 determine the (spatially varying) contribution of \psi({\bf{W}}_{c}{\bf{x}}) to the regularizer. In principle, every component of ( 2 ) can be learned. Most implementations so far have used constant weights {\bf{m}}_{c}={\bf{1}} in ( 2 ). Recent works differ in the parameterization of \psi_{c} and {\bf{W}}_{c} for the learning process [ 6 , 12 , 49 ] or incorporate non-linear feature transforms [ 27 , 20 ] . While learning {\bf{W}}_{c} and \psi_{c} is extensively studied, little research is performed regarding the local weights {\bf{m}}_{c} . Employing spatially varying {\bf{m}}_{c} in ( 2 ) is referred to as anisotropic regularization. For instance, {\bf{m}}_{c}={\bf{M}}({\bf{y}}) can be derived from the data {\bf{y}} using heuristics [ 5 , 13 ] or a neural network [ 21 , 23 ] . When {\bf{M}} extracts features from an estimated reconstruction, as proposed by Neumayer and Altekrüger [31] , it is natural to consider refining {\bf{m}}_{c} iteratively. Specifically, the reconstruction from ( 1 ) can be fed back into {\bf{M}} to obtain an improved {\bf{m}}_{c} for ( 2 ). This leads to the attentive reconstruction process {\bf{x}}_{k+1}\in\argmin_{{\bf{x}}\in\mathbb{R}^{d}}\left\rVert{\bf{H}}{\bf{x}}-{\bf{y}}\right\rVert_{2}^{2}+\lambda\mathcal{R}_{{\bf{M}}({\bf{x}}_{k})}({\bf{x}}), (3) studied by Pourya et al. [35] for \psi_{c}=|\cdot| . We note that their scheme is computationally demanding since each update involves a least absolute shrinkage and selection operator (LASSO)-type problem. Contribution The updates ( 3 ) are the starting point of our investigation. Our contributions are as follows. • We simplify the updates ( 3 ) by choosing \psi_{c}(\cdot)=(\cdot)^{2} for the \mathcal{R}_{{\bf{M}}({\bf{x}}_{k})} from ( 2 ). Then, each update amounts to solving a linear equation, which we handle efficiently through the conjugate gradient method. • We learn the components of \mathcal{R}_{{\bf{M}}({\bf{x}}_{k})}({\bf{x}}) , namely the filters \{{\bf{W}}_{c}\}_{c=1}^{N_{c}} and the attention mechanism {\bf{M}} , based on a denoising task in such a way that the iterations ( 3 ) converge. Then, any fixed point of ( 3 ) is a consistent reconstruction. Given a linear inverse problem with forward {\bf{H}} , we then apply our learned model with only two remaining hyperparameters: (i) the noise level and (ii) the regularization strength \lambda . • On the theoretical side, we establish the uniqueness of each update in ( 3 ), the existence of a fixed point, a condition for the convergence of ( 3 ), and a stability result for the resulting reconstruction operator. • In our experimental evaluation, we achieve results on par with state-of-the-art approaches for various inverse problems. • We underline the interpretability, convergence, and robustness of our method. We provide illustrative examples to visualize the learned attention mechanism. 2. Related Literature Learned Regularization Classical regularizers for ( 1 ) leverage sparsity in various domains, such as image gradients [ 41 ] or wavelets [ 29 ] . The parametric model ( 2 ) introduced by Roth and Black [40] has since spurred extensive research. Key areas of investigation include learning paradigms [ 6 , 10 ] , parametrization strategies [ 49 ] , and intrinsic properties like convexity [ 11 , 12 ] . More complex architectures build upon strategies such as autoencoders [ 27 ] , algorithm unrolling [ 20 ] , adversarial training [ 28 , 37 ] , and energy modeling [ 48 ] . In parallel, implicit regularization methods were developed. Here, of-the-shelf denoisers are incorporated into iterative reconstruction algorithms by, for instance, replacing proximal operators [ 46 , 54 ] or drawing inspiration from adaptive Laplacians [ 39 ] . If the denoiser is non-expansive or homogeneous, which is hard to ensure for learned ones [ 38 , 14 ] , this leads to a convergent scheme. Recently, weaker conditions have been proposed by Pesquet et al. [34] , Hurault et al. [17] . Spatial Adaptivity An overview of spatially adaptive regularizers with the form ( 2 ) is given in Pragliola et al. [36] . The authors Hintermüller et al. [15] , Van Chung et al. [45] , Kofler et al. [21] focus on the total variation regularizer [ 41 ] as a special case, using either heuristics or deep learning to compute the weights {\bf{m}}_{c} . More general instances are considered by Lefkimmiatis and Koshelev [23] , Neumayer et al. [32] , Neumayer and Altekrüger [31] . The first work deploys non-smooth potentials \psi_{c} and majorization minimization to solve the nonsmooth problem ( 1 ). Similar to ( 3 ), this leads to a series of quadratic problems. The latter works deploy differentiable \psi_{c} and solve ( 1 ) with accelerated gradient descent. All approaches have in common that they update the weights {\bf{m}}_{c} only once. In particular, they do not refine {\bf{m}}_{c} and the reconstruction iteratively as in ( 3 ). Iterative Refinement Lenzen et al. [24] , Lenzen and Berger [25] propose to iteratively refine the weights {\bf{m}}_{c} for total variation. They update the {\bf{m}}_{c} using some heuristic. For the more general model ( 2 ) with \psi_{c}=|\cdot| , a refinement based on neural networks was considered by Pourya et al. [35] . Their {\bf{M}} has a simple architecture comparable to ours. Outside of this setting, iterative refinement can be found, for example, in Saharia et al. [42] for superresolution and in Darestani et al. [8] for MRI. Nonlocal Laplacians Quadratic potentials \psi_{c} lead to an optimality condition for ( 3 ) induced by a symmetric positive semi-definite matrix. A different approach to getting such updates is (iterative) filtering with carefully designed graph Laplacians [ 33 ] . Recently, this idea was incorporated into deep architectures for image denoising [ 51 , 44 ] and scene flow [ 43 ] . 3. Methodology We specify the regularizer ( 2 ) using quadratic potentials as \mathcal{R}_{{\bf{m}}}({\bf{x}})=\sum_{c=1}^{N_{c}}\bigl\langle{\bf{m}}_{c}^{2},({\bf{W}}_{c}{\bf{x}})^{2}\bigr\rangle=\left\rVert{\bf{M}}{\bf{W}}{\bf{x}}\right\rVert_{2}^{2} (4) with the shorthands {\bf{W}}=[{\bf{W}}_{1}^{\top}\ \ldots\ {\bf{W}}_{N_{c}}^{\top}]^{\top} and {\bf{M}}=\mathrm{Diag}(\mathrm{Diag}({\bf{m}}_{1}),\ \ldots,\ \mathrm{Diag}({\bf{m}}_{N_{c}})) , where \mathrm{Diag} returns a diagonal matrix whose entries are the input vector. This leads to the quadratic reconstruction problem \hat{{\bf{x}}}\in\argmin_{{\bf{x}}\in\mathbb{R}^{d}}\left\rVert{\bf{H}}{\bf{x}}-{\bf{y}}\right\rVert_{2}^{2}+\lambda\left\rVert{\bf{M}}{\bf{W}}{\bf{x}}\right\rVert_{2}^{2}. (5) Now, the question arises about the proper choice of {\bf{M}} and {\bf{W}} . Regarding a filter-based interpretation, the {\bf{W}} should be independent of {\boldsymbol{y}} . {\bf{M}} modulates the response {\bf{W}}{\bf{x}} at each location. Ideally, this modulation should depend on the structure of the (unknown) \hat{{\bf{x}}} . With abuse of notation, we introduce {\bf{M}}\colon\mathbb{R}^{d}\to[\epsilon_{M},1]^{N_{c}HW} , which leads to our attentive refinement scheme \displaystyle{\bf{x}}_{k+1} \displaystyle\in\mathcal{T}({\bf{x}}_{k},{\bf{y}})\quad\text{with}\quad{\bf{x}}_{0}={\bf{0}}\in\mathbb{R}^{d}, (6) \displaystyle\mathcal{T}({\bf{z}},{\bf{y}}) \displaystyle=\argmin_{{\bf{x}}\in\mathbb{R}^{d}}\left\rVert{\bf{H}}{\bf{x}}-{\bf{y}}\right\rVert_{2}^{2}+\lambda\left\rVert{\bf{M}}({\bf{z}}){\bf{W}}{\bf{x}}\right\rVert_{2}^{2}. (7) The process ( 6 ) can be interpreted as an infinite-depth neural network. Hence, we name it deep attentive least squares (DEAL) for image reconstruction. If {\bf{x}}_{k}\to\hat{{\bf{x}}} , we get \hat{{\bf{x}}}\in\mathcal{T}(\hat{{\bf{x}}},{\bf{y}}) , namely that \hat{{\bf{x}}} is a fixed-point of the operator ( 7 ). We restrict k0 . 3.1. Architecture Next, we specify how the DEAL iterates ( 6 ) can be cast as a deep neural network structure. Figure 1 visualizes the interplay of its essential building blocks – reconstruction and mask generation – which exchange information repeatedly. 3.1.1 Reconstruction Block At the heart of DEAL, the reconstruction block solves the spatially-adapted optimization problem ( 7 ) for given attentive weights {\bf{M}}({\bf{x}}_{k}) (see Section 3.1.2 ). The optimality condition for problem ( 7 ) is given by the linear system {\bf{A}}_{k}{\bf{x}}_{k+1}={\bf{b}} (8) with {\bf{A}}_{k}={\bf{H}}^{\top}{\bf{H}}+\lambda{\bf{W}}^{\top}{\bf{M}}({\bf{x}}_{k})^{2}{\bf{W}} and {\bf{b}}={\bf{H}}^{\top}{\bf{y}} . Figure 1: DEAL generates a sequence of reconstructions {\bf{x}}_{k} via ( 6 ) from the inputs {\bf{y}} and {\bf{H}} , initalization {\bf{x}}_{0}={\bf{0}} , and hyper-parameters \sigma and \lambda . When the stop condition is met, it returns \hat{{\bf{x}}} . The multi-convolution block {\bf{W}} , see Section 3.1.3 , and \lambda\in\mathbb{R} are learnable. To avoid scaling ambiguities, we impose \left\rVert{\bf{W}}\right\rVert_{2}=1 by spectral normalization. The data {\bf{y}} and the forward {\bf{H}} are problem-specific inputs that are not learnable. We solve ( 8 ) by the conjugate-gradient (CG) algorithm with {\bf{x}}_{k} as the initial guess. We use a batched CG with at most K_{\mathrm{in}} steps, where each sample terminates individually if its residue satisfies \left\rVert{\bf{A}}_{k}-{\bf{b}}{\bf{x}}_{k+1}\right\rVert_{2}^{2}\leq\epsilon_{\mathrm{in}} for \epsilon_{\mathrm{in}}>0 . 3.1.2 Mask Generation Block To estimate {\bf{M}} for ( 5 ) from local image structures, we use the following shallow CNN with learnable nonlinearities {\bf{M}}({\bf{x}})=(\boldsymbol{\phi}^{\sigma}\circ{\bf{W}}_{\mathrm{mix}}^{2}\circ\varphi_{2}\circ{\bf{W}}_{\mathrm{mix}}^{1}\circ\varphi_{1}\circ{\bf{W}}_{\mathrm{mask}})({\bf{x}}), (9) see also Figure 2 . This choice is inspired by anisotropic diffusion [ 47 , 4 ] , where {\bf{M}} is typically computed from the gradients of a smoothed image using pixel-wise non-linearities. The first multi-conv layer {\bf{W}}_{\mathrm{mask}} (see Section 3.1.3 ) in ( 9 ) extracts N_{c} spatial features using the same architecture as the {\bf{W}} from the reconstruction block. The two subsequent convolution layers {\bf{W}}_{\mathrm{mix}}^{1} and {\bf{W}}_{\mathrm{mix}}^{2} mix the N_{c} feature channels using kernels of size 3\times 3 and no bias. The layers are connected via learnable point-wise non-linearities \varphi_{1} and \varphi_{2} , for which we follow Bohra et al. [3] . Specifically, each \varphi_{i} is parametrized as a linear spline with N_{n} equally distributed knots on [0,r] . On (r,\infty) the splines are linearly extended and we enforce symmetry by setting \varphi(x)=\varphi(-x) if x<0 . Figure 2: Architecture of the mask generation block. In addition, we constrain them to be increasing for x>0 . Removing both constraints has not led to significant performance improvements. To guarantee the numerical stability of ( 8 ), the outputs of {\bf{M}} must remain in (\epsilon_{M},1] . Hence, we process each channel c\in\{1\ldots N_{c}\} individually by \phi^{\sigma}_{c}(x)=\max\left(\min\left(\varphi_{3}(\alpha_{c}(\sigma){\bf{x}}),1\right),\epsilon_{M}\right), (10) where \varphi_{3} is a symmetric linear spline as before. In contrast to the former splines, \varphi_{3} must be non-increasing on [0,\infty) . The underlying rationale is that the {\bf{M}}({\bf{x}}) should be close to 1 for small filter responses (constant image regions) and close to 0 for strong filter responses (salient edges). Following Goujon et al. [12] , we enable multi-level noise training using the positive scalings \alpha_{c}(\sigma)=\frac{\mathrm{e}^{s_{c}(\sigma)}}{\sigma+10^{-5}} (11) with learnable linear splines \{s_{c}\}_{c=1}^{N_{C}} . By design of {\bf{M}} , the first reconstruction block consists of a non-varying problem. 3.1.3 Multi-Conv Block The Multi-Conv block advocated by Goujon et al. [11] consists of multiple convolution layers with no non-linearities in between. It enables the efficient construction of large receptive fields. We use three convolution layers, all with kernels of size (9\times 9) . Thus, the effective field of view for this block is (25\times 25) . For inputs with N_{\mathrm{in}} channels, the number of output channels of the convolution layers are 4N_{\mathrm{in}} , 8N_{\mathrm{in}} , and N_{C} , respectively. We set the group size and stride to one, and do not use a bias. In all our experiments, we use N_{C}=128 . This block appears in two places: once in {\bf{M}}({\bf{x}}) as {\bf{W}}_{\mathrm{Mask}} and second in the reconstruction block as {\bf{W}} , i.e., the convolutions in ( 4 ). 3.2. Training We learn the parameters \theta of DEAL for image denoising with additive white Gaussian noise (AWGN) of varying standard variation \sigma_{n}\in[0,50] . The associated denoiser D_{\theta(\sigma_{n})}^{K_{\mathrm{out}}}({\bf{y}}) takes the measurements {\bf{y}} and \sigma_{n} as input, and returns the solution of ( 6 ) with at most K_{\mathrm{out}} iterations. Choosing denoising as the training task has two reasons: (i) our learned model should also work for other inverse problems (often called universality), as demonstrated by Hurault et al. [17] , Goujon et al. [12] ; (ii) it simplifies the computations for the reconstruction block as {\bf{H}}={\bf{I}} . We provide details on initializations and hyperparameters with a short ablation study in A . Dataset and Loss For the training dataset \mathsf{D}=\{{\bf{x}}^{m}\}_{m=1}^{M} , we use the images proposed in Zhang et al. [54] . The images {\bf{x}} are corrupted by AWGN as {\bf{y}}={\bf{x}}+\sigma_{n}{\bf{n}} and fed into DEAL, leading to a sequence of denoised images \{{\bf{x}}_{k}\}_{k=1}^{K_{\mathrm{out}}}=D_{\theta(\sigma_{n})}^{K_{\mathrm{out}}}({\bf{y}}) . To estimate the parameters \theta from the training data, we use the loss \displaystyle\mathcal{L}(\theta) \displaystyle=\Bigg\{\mathbb{E}_{\begin{subarray}{c}{\bf{x}}\sim\mathsf{D}\\ \sigma_{n}\sim\mathcal{U}([0,50])\\ {\bf{n}}\sim\mathcal{N}({\bf{0}},{\bf{I}})\end{subarray}}\Big[\left\rVert{\bf{x}}_{K_{\mathrm{out}}}-{\bf{x}}\right\rVert_{2}^{2}+ (12) \displaystyle\frac{\gamma}{N_{c}}\left\rVert{\bf{M}}({\bf{x}}_{K_{\mathrm{out}}})-{\bf{M}}({\bf{x}}_{K_{\mathrm{out}}-1})\right\rVert_{2}^{2}\Big]+\gamma\mathrm{TV}^{2}(\theta)\Bigg\} with \gamma=10^{-4} . This loss consists of three parts: (i) a squared error enforcing that the output matches the clean image; (ii) a squared penalty on the weight changes for the last two updates of ( 6 ); and (iii) an accumulated second-order total variation regularization of all learnable splines. This last penalizes changes in their slopes (kinks) and thereby promotes simpler splines [ 3 , 9 ] . The second term in ( 12 ) vanishes if the generated weights {\bf{M}}({\bf{x}}_{k}) converge. To promote convergence of ( 6 ) to a fixed point, we sample K_{\mathrm{out}} uniformly from [15,60] [ 1 ] . We minimize the loss ( 12 ) using Adam [ 18 ] . At each step of the optimizer, we sample 16 patches of size (128\times 128) randomly from \mathsf{D} . We have two training phases; first, we train the gray and color model for 70\,000 and 40\,000 steps respectively, using an initial learning rate 5\text{\times}{10}^{-4} that is reduced to 4\text{\times}{10}^{-4} by a cosine annealing scheduler. Then, we continue training the gray and color model for 10\,000 and 5000 steps, respectively, with an initial learning rate 2\text{\times}{10}^{-4} that is reduced to 1\text{\times}{10}^{-7} by annealing. We set \epsilon_{\mathrm{out}}=\epsilon_{\mathrm{in}}=$1\text{\times}{10}^{-4}$ and the maximal of CG steps to K_{\mathrm{in}}=50 . To select the best-performing model, we evaluate its performance every 1000 training step and keep the checkpoint with the best validation performance. We use the set3 and set12 datasets to validate the color and grayscale models. Gradient Tracking We train DEAL through the deep equilibrium framework [ 2 ] in the Jacobian free mode. Specifically, we perform at most K_{\mathrm{out}}-1 iterations without gradient tracking. Then, after convergence, we perform one additional update ( 6 ) with gradient tracking. For this, it is crucial to have an efficient backward path for the reconstruction block, namely for \partial_{\theta}{\bf{x}}_{k+1} as defined in ( 6 ). Since backpropagating through the CG algorithm is prohibitively memory extensive, we need another solution. From ( 8 ), we have that {\bf{x}}_{k+1}={\bf{y}}-\lambda{\bf{L}}_{k}^{\top}{\bf{L}}_{k}{\bf{x}}_{k+1}, (13) where {\bf{L}}_{k}={\bf{M}}({\bf{x}}_{k}){\bf{W}} . Using the product rule, we get \partial_{\theta}{\bf{x}}_{k+1}=-\lambda{\bf{L}}_{k}^{\top}{\bf{L}}_{k}{\bf{\partial}}_{\theta}{\bf{x}}_{k+1}-\lambda\partial_{\theta}({\bf{L}}_{k}^{\top}{\bf{L}}_{k}){\bf{x}}_{k+1}. (14) It follows {\bf{A}}_{k}\partial_{\theta}{\bf{x}}_{k+1}={\bf{d}}_{k+1}, (15) where the matrix {\bf{A}}_{k} is the one from ( 8 ), and only the right-hand-side changes to {\bf{d}}_{k+1}=-\lambda\partial_{\theta}({\bf{L}}_{k}^{\top}{\bf{L}}_{k}){\bf{x}}_{k+1} . We use auto-differentiation to obtain the gradient estimate {\bf{d}}_{k+1} . We then find \partial_{\theta}{\bf{x}}_{k+1} by solving ( 15 ) with CG. 3.3. Inference Once the parameters are learned, we can directly deploy DEAL to a general inverse problem by plugging the corresponding forward operator {\bf{H}} and its adjoint {\bf{H}}^{\top} into the reconstruction block. This does not affect the mask generation block. To adapt to the new task, we now only need to tune two hyperparameters: the model noise level \sigma and the regularization strength \lambda in ( 6 ). This requires a small validation set with paired measurements and ground truth images. Original Original Measurement Measurement WCRR (29.51 0.85) WCRR (29.51 0.85) SAFI (29.99 0.86) SAFI (29.99 0.86) DEAL (Ours) (30.07 0.86) DEAL (Ours) (30.07 0.86) ProxDRUNet (30.13 0.85) ProxDRUNet (30.13 0.85) DRUNet (30.49 0.88) DRUNet (30.49 0.88) Figure 3: Denoising of the castle image for \sigma=25 . For each reconstruction (PSNR and SSIM) is provided. Empirically, we observe that tuning \lambda is more important than changing the noise level \sigma . To ensure that we find a fixed point of ( 6 ), we set K_{\mathrm{in}}=K_{\mathrm{out}}=1000 , and choose the conservative stop criteria \epsilon_{\mathrm{in}}=10^{-8} and \epsilon_{\mathrm{out}}=10^{-5} . 4. Theoretical Results All the proofs are provided in Appendix B . Proposition 4.1 guarantees the uniqueness of the updates ( 6 ). Proposition 4.1 . If \ker({\bf{H}})\cap\ker({\bf{M}}({\bf{x}}_{k}){\bf{W}})=\{{\bf{0}}\} , then {\bf{A}}_{k} is positive definite and ( 8 ) has a unique solution. Moreover, if {\bf{M}}^{2}({\bf{x}}_{k})\succeq\epsilon_{M}\mathrm{Id} , then {\bf{A}}_{k}\succeq{\bf{H}}^{\top}{\bf{H}}+\epsilon_{M}{\bf{W}}^{\top}{\bf{W}} and uniqueness holds if \ker({\bf{H}})\cap\ker({\bf{W}})=\{{\bf{0}}\} . The next results involve an estimate of the smallest eigenvalue of {\bf{A}}_{k}\colon \lambda_{\epsilon}=\lambda_{\mathrm{min}}({\bf{H}}^{\top}{\bf{H}}+\epsilon_{M}{\bf{W}}^{\top}{\bf{W}}) . Lemma 4.2 . Let {\bf{x}}\in\mathbb{R}^{d} . If \ker({\bf{H}})\cap\ker({\bf{W}})=\{{\bf{0}}\} and {\bf{M}}({\bf{x}})^{2}\succeq\epsilon_{M}\mathrm{Id} , then \mathcal{T}({\bf{x}},\cdot)\colon\mathbb{R}^{M}\to\mathbb{R}^{d} is Lipschitz continuous with constant \|{\bf{H}}\|_{2}/\lambda_{\epsilon} . Next, we establish the existence of fixed points for \mathcal{T}(\cdot,{\bf{y}}) . Theorem 4.3 . Assume \ker({\bf{H}})\cap\ker({\bf{W}})=\{{\bf{0}}\} and {\bf{M}}^{2}({\bf{x}})\succeq\epsilon_{M}\mathrm{Id} . Then, \mathcal{T}(\cdot,{\bf{y}})\colon\mathbb{R}^{d}\to\ B_{r}({\bf{0}}) maps into a ball around {\boldsymbol{0}} with radius r=\left\rVert{\bf{H}}{\bf{y}}\right\rVert_{2}/\lambda_{\epsilon} . If {\bf{M}}^{2}\colon B_{r}({\bf{0}})\to[\epsilon,1]^{N_{\mathrm{out}}HW} is Lipschitz continuous with constant L , then \mathcal{T}(\cdot,{\bf{y}}) admits a fixed point and \|\mathcal{T}({\bf{x}}_{1},{\bf{y}})-\mathcal{T}({\bf{x}}_{2},{\bf{y}})\|_{2}\leq\frac{L\left\rVert{\bf{H}}{\bf{y}}\right\rVert_{2}}{\lambda^{2}_{\epsilon}}\|{\bf{x}}_{2}-{\bf{x}}_{1}\|_{2}. (16) The Lipschitz estimate ( 16 ) is very conservative and \mathcal{T}(\cdot,{\bf{y}}) appears to often be even a local contraction. If \mathcal{T}(\cdot,{\bf{y}}) is contractive for every {\bf{y}}\in\mathbb{R}^{M} , we get the following result. Theorem 4.4 . Assume \ker({\bf{H}})\cap\ker({\bf{W}})=\{{\bf{0}}\} and {\bf{M}}^{2}({\bf{x}})\succeq\epsilon_{M}\mathrm{Id} . If \mathcal{T}(\cdot,{\bf{y}})\colon\mathbb{R}^{d}\to\mathbb{R}^{d} is contractive, i.e., if \|\mathcal{T}({\bf{x}}_{1},{\bf{y}})-\mathcal{T}({\bf{x}}_{2},{\bf{y}})\|_{2}\leq q\|{\bf{x}}_{1}-{\bf{x}}_{2}\|_{2} with q<1 , then the iterations ( 6 ) converge to a unique fixed point \hat{{\bf{x}}} and \|{\bf{x}}_{k}-\hat{{\bf{x}}}\|_{2}\leq q^{k-1}\|{\bf{x}}_{1}-{\bf{x}}_{0}\|_{2}. (17) In particular, we have exponential convergence of ( 6 ). Moreover, if \hat{{\bf{x}}}=\mathcal{T}(\hat{{\bf{x}}},{\bf{y}}_{1}) and \hat{{\bf{z}}}=\mathcal{T}(\hat{{\bf{z}}},{\bf{y}}_{2}) , then it holds \|\hat{{\bf{x}}}-\hat{{\bf{z}}}\|\leq\frac{1}{1-q}\frac{\|{\bf{H}}\|_{2}}{\lambda_{\epsilon}}\|{\bf{y}}_{1}-{\bf{y}}_{2}\|_{2}. (18) 5. Experiments We compare our method to state-of-the-art PnP approaches and learned regularizers on denoising, super-resolution, and MRI reconstruction. In Appendix C.1 , we provide experimental results for grayscale debluring. 5.1. Grayscale and Color Denoising {\bf{x}}_{0}\;6.12 \overline{{\bf{M}}}({\bf{x}}_{0}) {\bf{x}}_{1}\;20.26 \overline{{\bf{M}}}({\bf{x}}_{1}) {\bf{x}}_{2}\;22.98 \overline{{\bf{M}}}({\bf{x}}_{2}) {\bf{x}}_{10}\;29.87 \overline{{\bf{M}}}({\bf{x}}_{10}) {\bf{x}}_{40}\;30.07 \overline{{\bf{M}}}({\bf{x}}_{40}) {\bf{x}}_{68}\;30.07 \overline{{\bf{M}}}({\bf{x}}_{68}) 0 20 40 60 20 25 30 k PSNR of {\bf{x}}_{k} 10^{-5} 10^{-3} 10^{-1} \frac{\left\rVert{\bf{x}}_{k+1}-{\bf{x}}_{k}\right\rVert}{\left\rVert{\bf{x}}_{k}\right\rVert} Figure 4: Solution path and channel-wise averages \overline{{\bf{M}}} of the weights for DEAL iterations, exemplified with the castle image and \sigma_{n}=25 . On the right, we plot the residual values and PSNR over the number of outer iteration k . We corrupt ground-truth images by adding white Gaussian noise with standard deviation \sigma_{n}\in\{5,15,25\} . Table 1: Denoising for the BSD68 and CBSD68 datasets. Gray Color \sigma_{n} 5 15 25 5 15 25 BM3D 37.54 31.13 28.61 39.89 33.17 30.38 WCRR 37.65 31.20 28.68 - - - SARR 37.80 31.61 29.13 - - - SAFI 37.90 31.56 29.05 - - - DEAL (Ours) 37.85 31.61 29.16 40.04 33.61 30.93 Prox-DRUNet 37.97 31.70 29.18 40.12 33.60 30.82 DNCNN - 31.72 29.23 39.80 33.55 30.87 DRUNet 38.09 31.94 29.48 40.19 33.85 31.21 Table 2: PSNR values for color-image superresolution. s = 2 s=3 2.55 7.65 12.75 2.55 7.65 12.75 DEAL (Ours) 27.99 26.58 25.75 26.20 25.27 24.59 Prox-DRUNet 27.88 26.61 25.79 26.13 25.29 24.67 IRCNN 26.97 25.86 25.45 25.60 25.72 24.38 DPIR 27.79 26.58 25.83 26.05 25.27 24.66 For various methods, we provide the respective average peak signal-to-noise ratios (PSNR) over the images of the BSD68 set and the center-cropped (256x256) images of CBSD68 set in Table 2 . Since some approaches are implemented for grayscale images only, parts of the table are left blank. First, we include (C)BM3D [ 7 ] as a widely regarded classic baseline. We also evaluate against WCRR [ 12 ] , an unadaptive field-of-expert model of the form ( 2 ) that employs weakly convex potentials \psi_{c} . We also include its data-adaptive counterpart SARR [ 32 , 31 ] . Regarding the refinement perspective ( 3 ), we include SAFI [ 35 ] , which utilizes \psi_{c}=\ell_{1} instead of \ell_{2} . Lastly, we include the deep learning-based approaches DnCNN [ 52 ] , DRUNet [ 54 ] and Prox-DRUNet [ 16 ] . The latter trades performance for improved theoretical guarantees compared to DRUNet. DEAL outperforms existing spatially adaptive methods and closes the gap to DRUNet-based approaches while having 30 times fewer parameters. We provide qualitative results in Figure 3 , where we also provide the structural similarity index metric (SSIM). In the magnified part, we can see that DEAL does better than the DRUNet-based approaches in retaining structures such as the tip of the tower. In Figure 4 , we provide the solution path associated to ( 6 ), the averages of the masks {\bf{M}}({\bf{x}}_{k}) , and two convergence plots. Specifically, the weights {\bf{M}} extract the image structure, leading to lower regularization cost at edges. Table 3: PSNR values for the MRI experiment. 4-fold single coil 8-fold multi-coil PD PDFS PD PDFS Zero-fill ( {\bf{H}}^{\top}{\boldsymbol{y}} ) 27.40 29.68 23.80 27.19 TV 32.44 32.67 32.77 33.38 WCRR 35.78 34.63 35.57 35.16 SARR 36.25 34.77 35.98 35.26 SAFI 36.43 34.92 36.06 35.36 DEAL (Ours) 36.59 34.92 36.21 35.32 Prox-DRUNet 36.20 35.05 35.82 35.12 PnP-DnCNN 35.24 34.63 35.11 35.14 5.2. Color Super-resolution Here, the forward {\bf{H}} involves two steps: the bluring of the image through the convolution with a known kernel; followed by a downsampling with s\in\{2,3\} that reduces the number of measurements by a factor of s^{2} . As further degradation, AGWN of standard deviation \sigma_{n} is added to the image. We deploy the four Gaussian blur kernels from [ 54 ] with standard deviations ( 0.7 , 1.2 , 1.6 and 2.0 ), and report the average over these for the center-cropped images of CBSD68 in Table 2 . There, DPIR [ 54 ] represents the state-of-the-art PnP approach; and IRCNN [ 53 ] is a competing PnP approach. The hyperprameters of DEAL are set to \sigma=15 and \lambda\in\{0.28,2.5,5.5\} for the three given noise levels \sigma_{n}\in\{2.55,7.65,12.75\} , respectively. We outperform existing methods on the lower noise levels and achieve comparable performance for the other cases. In Figure 5 , we provide a visual comparison. Original Original Measurement Measurement DEAL (Ours) (28.21 0.83) DEAL (Ours) (28.21 0.83) ProxDRUNet (27.95 0.82) ProxDRUNet (27.95 0.82) IRCNN (27.27 0.79) IRCNN (27.27 0.79) DPIR (27.99 0.83) DPIR (27.99 0.83) 0 10 20 30 5 10 15 20 25 30 k PSNR of {\bf{x}}_{k} {\bf{x}}_{0}={\bf{0}} {\bf{x}}_{0}\sim\mathcal{U}([0,1]) {\bf{x}}_{0}\sim\mathcal{N}(0,{\bf{I}}) {\bf{x}}_{0}={\bf{H}}^{\top}{\bf{y}} {\bf{x}}_{0}={\bf{x}} {\bf{x}}_{0} \overline{{\bf{M}}}({\bf{x}}_{0}) Figure 5: Superresolution task with rate s=2 and \sigma_{n}=2.55 . The bottom image illustrates the dependence on initialization. Table 4: Computation time (seconds) for the MRI experiment. 4-fold single coil 8-fold multi-coil PD PDFS PD PDFS WCRR 12 20 9 8 SAFI 436 470 388 326 DEAL (Ours) 14 17 22 18 Prox-DRUNet 113 38 170 105 Figure 6: Different visualizations of {\bf{W}}^{\top}{\bf{W}} . Only one eigenvalue is numerically zero. The middle plot is on a logarithmic scale. 5.3. MRI Reconstruction Now, we deploy DEAL for magnetic resonance imaging (MRI) tasks. Specifically, we tackle the single- and 15-coil MRI setups detailed by Goujon et al. [11] . There, the ground-truth consists of knee images from the fastMRI dataset [ 19 ] , both with fat suppression (PDFS) and without fat suppression (PD). The forward {\bf{H}} involves k -fold subsampling in the Fourier domain and corruption by additive white Gaussian noise with \sigma_{n}=0.002 . For each of the four evaluation tasks, we use ten images to tune the hyperparameters of all methods. In Table 3 , we report the PSNR values on centered (320\times 320) patches of the remaining fifty test images. We compare against the popular TV regularization, the convex CRR regularizer [ 11 ] , its weakly convex extension WCRR, and the Prox-DRUNet. All methods are universal in that they can be deployed without task-specific training. In Table 4 , we report the computation times for several methods on a Tesla V100-SXM2-32GB GPU. We are significantly faster than the iterative refinement approach SAFI and get close to the (non-adaptive) WCRR baseline. Qualitative results are given in Figure 11 of Appendix C.2 . 6. Interpretability and Robustness In Figures 5 and 11 , we demonstrate empirically that DEAL is not tied to a specific number K_{\mathrm{out}} of iterations ( 6 ). In particular, doing more updates does not degrade the performance, unlike many PnP methods such as DPIR. The convergence to a fixed point (see Theorem 4.3 ) occurs for all experiments. In particular, both the relative error and the PSNR converge. To demonstrate the robustness regarding initialization, we instantiate the superresolution task. As we see in Figure 5 , DEAL converges (in about 10 steps) to the same reconstruction independent of the initialization. This is in accordance with Theorem 4.4 . The relative errors for this task are given in Figure 12 of Appendix C.3 , underlining once more the empirical convergence. Filter channel c=93 Filter channel c=37 ({\bf{W}}_{c}{\bf{x}}_{k})^{2}=({\bf{w}}_{c}\ast{\bf{x}}_{k})^{2} {\bf{m}}_{c}({\bf{x}}_{k}) ({\bf{m}}_{c}({\bf{x}}_{k})\odot({\bf{w}}_{c}\ast{\bf{x}}_{k}))^{2} Figure 7: From left to right: two example filters {\bf{W}}_{c} along with ({\bf{W}}_{c}{\bf{x}}_{k})^{2} ; the corresponding masks {\bf{m}}_{c}({\bf{x}}_{k}) ; and adapted squared response. The mask eliminates the structure of the image in the squared responses. Hence, DEAL preserves salient structures. We present visualizations for all parts of our architecture in Appendix D . Remarkably, we find mostly finite differences and their higher-order counterparts at various scales within {\bf{W}} (see Figure 13 in the appendix). These filters extract the salient features of the input. The impulse response of {\bf{W}}^{\top}{\bf{W}} and its Fourier transform are given in Figure 6 . Empirically, we observe that \ker({\bf{W}})=\mathrm{span}(\mathbf{1}_{d}) . This is a practical certification for the condition of Proposition 4.1 . Next, we present two interpretations of the learned attention mechanism. For simplicity, we focus on the castle denoising example from Figure 3 with the final solution {\bf{x}}_{k} . In Figure 7 , we illustrate two learned filters within {\bf{W}}_{c} and the response {\bf{W}}_{c}{\bf{x}}_{k} to these filters. The associated weights (masks) {\bf{m}}_{c}({\bf{x}}_{k}) are well adapted to the structural features captured by these filters. In effect, the mask suppresses the image structures in the final squared responses ({\bf{m}}_{c}({\bf{x}}_{k})\odot({\bf{w}}_{c}\ast{\bf{x}}_{k}))^{2} , leading to a reduced regularization cost in ( 4 ). This is desirable as the image structure should not contribute to the regularization cost. {\bf{y}} {\bf{x}}_{k}={\bf{A}}_{k-1}^{-1}{\bf{y}} {\bf{A}}_{k-1}^{-1}{\bf{e}}_{n} 0 .05 .1 0 .05 .1 .15 10^{-4} 10^{-3} 10^{-2} Figure 8: The reconstruction {\bf{x}}_{k} (middle) at the n -th entry (in red) is the weighted average of the data {\bf{y}} (left) with the weights (right) that come from the matrix {\bf{A}}_{k-1}^{-1} , i.e., {\bf{x}}_{k}[n]=\langle{\bf{A}}_{k-1}^{-1}{\bf{e}}_{n},{\bf{y}}\rangle . Top to bottom: three different regions of the castle image. Next, we describe our second interpretation. Since we are in the denoising setting ( {\bf{H}}={\bf{I}} ), we have {\bf{x}}_{k}={\bf{A}}_{k-1}^{-1}{\bf{y}} with {\bf{A}}_{k-1}={\bf{I}}+\lambda{\bf{W}}^{\top}{\bf{M}}({\bf{x}}_{k-1})^{2}{\bf{W}} . Therefore, the mapping from the measurements {\bf{y}} to the solution {\bf{x}}_{k} is simply a linear transformation. More precisely, the n -th component of {\bf{x}}_{k} is a weighted average of the measurements {\bf{y}} with the weight given by the n -th row of {\bf{A}}^{-1}_{k-1} . To extract this row, we apply {\bf{A}}^{-1}_{k-1} to the n -th unit vector {\bf{e}}_{n} . Since {\bf{x}} and {\bf{y}} are vectorized images, we reshape the rows accordingly for Figure 8 . There, we see that {\bf{A}}_{k-1}^{-1}{\bf{e}}_{n} aligns well with the structure of the neighborhood around the n -th pixel of the image. This indicates that spatial information is encoded into {\bf{A}}_{k-1} during the refinements. In the first and second rows, the averaging occurs in the vertical and horizontal directions, respectively. In contrast, the image of the third row exhibits little structure, and DEAL averages over a larger region, with an emphasis on the center pixel. Thus, at equilibrium, DEAL acts as an adaptive averaging mechanism, intelligently averaging the noisy measurements {\bf{y}} , with weights that emerge from our iterative refinements. 7. Conclusion We have presented deep attentive least squares (DEAL) for image reconstruction. DEAL builds upon classic signal processing ideas, which we blended with recent advances in deep learning, particularly, infinite-depth networks. It consists of two parts: (i) an iterative refinement of intermediate reconstructions based on a least-square-type problem; and (ii) a recurrent attention mechanism that adapts the problem spatially. We achieved competitive performance on different tasks while being able to provide interpretability, universality, and theoretical guarantees. So far, we only trained DEAL on the denoising task. If sufficient data is available, it appears possible to fine tune all components of DEAL to further improve its performance. Moreover, DEAL is designed for the \ell_{2} data fidelity, and devising extensions for other data-fidelity terms is an interesting direction of future work. Appendix A DEAL Hyperparameters and Ablation Studies For the linear splines \varphi_{1} , \varphi_{2} and \varphi_{3} appearing in {\bf{M}} we fix r=3 , N_{n}=31 . Moreover, we initialize \varphi_{1} and \varphi_{2} as the absolute value |\cdot| and \varphi_{3} as \mathrm{e}^{-(\cdot)^{2}} , motivated by classical anisotropic diffusion [ 47 ] . Each s_{c} in ( 11 ) has 14 knots in the range [-1,51] . They are initialized as the constant function 3 . We choose \sigma=\sigma_{n} in {\bf{M}} , where \sigma_{n} is the standard deviation of a sample’s noise. We set \lambda=\kappa(\sigma_{n}) with a learnable spline \kappa defined using 52 knots in [-1,51] initialized as the identity. The denoisers are strongly tied, particularly, {\bf{W}} and {\bf{M}} must work across various settings. We used N_{c}=128 number of filters. We observed that if we reduce N_{c} to 64 or 32, we degrade the performance for denoising on \sigma=25 by around 0.1 and 0.15 , respectively. We also observed that going beyond the filter size (9\times 9) in the Multi-Conv block does not improve the performance. The proposed constraints and initializations for the learning of the non-linearites stem from the learning of such parts without any constraints and with zero initialization. Appendix B Proofs B.1. Proof of Proposition 4.1 Proof. Assume that there exists {\bf{x}}\in\mathbb{R}^{d}\setminus\{{\bf{0}}\}\in\ker({\bf{A}}_{k}) , namely with {\bf{x}}^{\top}{\bf{A}}_{k}{\bf{x}}={\bf{0}} . By definition of {\bf{A}}_{k} , this implies {\bf{x}}^{\top}{\bf{H}}^{\top}{\bf{H}}{\bf{x}}={\bf{0}} and {\bf{x}}^{\top}{\bf{W}}^{\top}{\bf{M}}^{2}({\bf{x}}_{k}){\bf{W}}{\bf{x}}={\bf{0}} . Hence, we get {\bf{x}}\in\ker({\bf{H}}) and {\bf{x}}\in\ker({\bf{M}}({\bf{x}}_{k}){\bf{W}}) , which is a contradiction. For {\bf{M}}^{2}({\bf{x}}_{k})\succeq\epsilon_{M}\mathrm{Id} , we estimate {\bf{A}}_{k}\succeq{\bf{H}}^{\top}{\bf{H}}+\epsilon_{M}{\bf{W}}^{\top}{\bf{W}} and the uniqueness as in the first part. ∎ B.2. Proof of Lemma 4.2 Proof. Let \hat{{\bf{x}}}=\mathcal{T}({\bf{x}},{\bf{y}}_{1}) and \hat{{\bf{z}}}=\mathcal{T}({\bf{x}},{\bf{y}}_{2}) , namely {\bf{A}}_{{\bf{x}}}\hat{{\bf{x}}}={\bf{H}}^{\top}{\bf{y}}_{1} and {\bf{A}}_{{\bf{x}}}\hat{{\bf{z}}}={\bf{H}}^{\top}{\bf{y}}_{2} . This implies that {\bf{A}}_{{\bf{x}}}(\hat{{\bf{x}}}-\hat{{\bf{z}}})={\bf{H}}^{\top}({\bf{y}}_{1}-{\bf{y}}_{2}) and we estimate \|\hat{{\bf{x}}}-\hat{{\bf{z}}}\|_{2}\leq\frac{\|{\bf{H}}\|_{2}}{\lambda_{\epsilon}}\|{\bf{y}}_{1}-{\bf{y}}_{2}\|_{2}.\qed (19) B.3. Proof of Theorem 4.3 Proof. First, we investigate the range of \mathcal{T}(\cdot,{\bf{y}}) . By definition of \mathcal{T}(\cdot,{\bf{y}}) , it holds for any {\bf{x}}\in\mathbb{R}^{d} that \|\mathcal{T}({\bf{x}},{\bf{y}})\|_{2}=\|{\bf{A}}_{k}^{-1}{\bf{H}}^{\top}{\bf{y}}\|_{2}\leq\frac{\left\rVert{\bf{H}}{\bf{y}}\right\rVert_{2}}{\lambda_{\epsilon}}. (20) For the second part, we want to apply Brouwer’s fixed-point theorem. To this end, we must prove that \mathcal{T}(\cdot,{\bf{y}}) is continuous. Let {\bf{x}}_{1},{\bf{x}}_{2}\in\mathbb{R}^{d} , \hat{{\bf{x}}}_{1}=\mathcal{T}({\bf{x}}_{1},{\bf{y}}) and \hat{{\bf{x}}}_{2}=\mathcal{T}({\bf{x}}_{2},{\bf{y}}) . Then, it holds \displaystyle{\bf{A}}_{1}\hat{{\bf{x}}}_{1}-{\bf{A}}_{2}\hat{{\bf{x}}}_{2} \displaystyle={\bf{0}} \displaystyle{\bf{A}}_{1}\hat{{\bf{x}}}_{1}-{\bf{A}}_{1}\hat{{\bf{x}}}_{2} \displaystyle={\bf{A}}_{2}\hat{{\bf{x}}}_{2}-{\bf{A}}_{1}\hat{{\bf{x}}}_{2} \displaystyle\hat{{\bf{x}}}_{1}-\hat{{\bf{x}}}_{2} \displaystyle={\bf{A}}_{1}^{-1}({\bf{A}}_{2}-{\bf{A}}_{1})\hat{{\bf{x}}}_{2}. (21) Incorporating ( 20 ) and the normalization \|{\bf{W}}\|_{2}=1 , we further infer \displaystyle\|\hat{{\bf{x}}}_{1}-\hat{{\bf{x}}}_{2}\|_{2}\leq \displaystyle\|{\bf{A}}_{1}^{-1}\|_{2}\|{\bf{W}}\|_{2}^{2}\|{\bf{M}}^{2}({\bf{x}}_{2})-{\bf{M}}^{2}({\bf{x}}_{1})\|_{2}\|\hat{{\bf{x}}}_{2}\|_{2} \displaystyle\leq \displaystyle\frac{L\left\rVert{\bf{H}}{\bf{y}}\right\rVert_{2}}{\lambda^{2}_{\epsilon}}\|{\bf{x}}_{2}-{\bf{x}}_{1}\|_{2}. (22) Hence, \mathcal{T}(\cdot,{\bf{y}}) is Lipschitz continuous and a fixed-point exists. ∎ B.4. Proof of Theorem 4.4 Proof. Due to the Banach fixed point theorem, the exponential convergence rate ( 17 ) holds. To estimate the difference of \hat{{\bf{x}}}=\mathcal{T}(\hat{{\bf{x}}},{\bf{y}}_{1}) and \hat{{\bf{z}}}=\mathcal{T}(\hat{{\bf{z}}},{\bf{y}}_{2}) , we use the contractivity of \mathcal{T}(\cdot,{\bf{y}}_{1}) and Lemma 4.2 to get \displaystyle\|\hat{{\bf{x}}}-\hat{{\bf{y}}}\|_{2}=\|\mathcal{T}(\hat{{\bf{x}}},{\bf{y}}_{1})-\mathcal{T}(\hat{{\bf{z}}},{\bf{y}}_{2})\|_{2}\leq \displaystyle\|\mathcal{T}(\hat{{\bf{x}}},{\bf{y}}_{1})-\mathcal{T}(\hat{{\bf{z}}},{\bf{y}}_{1})\|_{2}+\|\mathcal{T}(\hat{{\bf{z}}},{\bf{y}}_{1})-\mathcal{T}(\hat{{\bf{z}}},{\bf{y}}_{2})\|_{2} \displaystyle\leq \displaystyle q\|\hat{{\bf{x}}}-\hat{{\bf{z}}}\|_{2}+\frac{\|{\bf{H}}\|_{2}}{\lambda_{\epsilon}}\|{\bf{y}}_{1}-{\bf{y}}_{2}\|_{2}. (23) From this, we readily infer ( 18 ), namely \|\hat{{\bf{x}}}-\hat{{\bf{y}}}\|_{2}\leq\frac{\|{\bf{H}}\|_{2}}{(1-q)\lambda_{\epsilon}}\|{\bf{y}}_{1}-{\bf{y}}_{2}\|_{2}.\qed (24) Appendix C Additional Numerical Results C.1. Grayscale Deblurring Here, we evaluate the DEAL approach for a grayscale deblurring task. We use the same setup as DPIR for this experiment [ 54 ] . This includes two blur kernels of sizes 17\times 17 and 27\times 27 from [ 26 ] and additive Gaussian noise with \sigma_{n}=2.55 and \sigma_{n}=7.65 . In Table 5 , we report the PSNR of the reconstructions for the Set3 images, namely Cameraman, House, and Monarch. We set the model noise level \sigma=15 and \lambda\in\{0.5,2.5\} for the two given AWGN noise levels \sigma_{n} , respectively. We also compare with model-based EPLL [ 55 ] and the learning approach FDN that is specific to debluring [ 22 ] . We observe that we are consistently the second-best method on this task after DPIR. We provide a visual comparison with DPIR in Figure 9 . C.2. Visualizations for MRI Reconstruction We provide visual reconstruction examples obtained with different methods from Table 3 in Figure 11 . We also provide the solution path and the convergence plots for DEAL in Figure 11 . Table 5: PSNR values for grayscale deblurring. \sigma=2.55 \sigma=7.65 17x17 27x27 17x17 27x27 C.man House Monarch C.man House Monarch C.man House Monarch C.man House Monarch EPLL 29.18 32.33 27.32 27.85 28.13 22.92 24.82 28.50 23.03 24.31 26.02 20.86 DEAL (Ours) 31.72 35.20 32.77 31.64 35.03 32.48 27.89 32.24 28.26 27.79 32.11 28.15 FDN 29.09 29.75 29.13 28.78 29.29 28.60 26.18 28.01 25.86 26.13 27.41 25.39 IRCNN 31.69 35.04 32.71 31.56 34.73 32.42 27.70 31.94 28.23 27.58 31.55 27.99 DPIR 32.05 35.82 33.38 31.97 35.52 32.99 28.17 32.79 28.48 27.99 32.87 28.27 Figure 9: Debluring results for the given blur kernel and noise level \sigma_{n}=2.55 . Figure 10: Comparison of different methods for 8-fold multi-coil MRI reconstruction for a PD image of the knee. {\bf{x}}_{0}\;10.56 \overline{{\bf{M}}}({\bf{x}}_{0}) {\bf{x}}_{1}\;24.12 \overline{{\bf{M}}}({\bf{x}}_{1}) {\bf{x}}_{2}\;28.29 \overline{{\bf{M}}}({\bf{x}}_{2}) {\bf{x}}_{10}\;33.98 \overline{{\bf{M}}}({\bf{x}}_{10}) {\bf{x}}_{20}\;34.08 \overline{{\bf{M}}}({\bf{x}}_{20}) {\bf{x}}_{32}\;34.08 \overline{{\bf{M}}}({\bf{x}}_{32}) 0 10 20 30 20 25 30 35 k PSNR of {\bf{x}}_{k} 10^{-6} 10^{-4} 10^{-2} \frac{\left\rVert{\bf{x}}_{k+1}-{\bf{x}}_{k}\right\rVert}{\left\rVert{\bf{x}}_{k}\right\rVert} Figure 11: Solution and mask path for the 8-fold multi-coil MRI reconstruction for a PD image of knee. C.3. Convergence Plot for Superresolution In Figure 12 , we represent the convergence plot for the superresoluion task on the setup of Figure 5 . Again, we empirically observe the convergence of our method. Figure 12: Convergence plot for the super resolution task with s=2 and noise level \sigma_{n}=2.55 for different initializations. Appendix D Visualization of Model Components Now, we inspect the components of our learned grayscale model. In Figure 13 , we depict the impulse response of {\bf{W}} , i.e., the block’s equivalent convolution kernels (a.k.a filters). The convolutions of {\bf{W}}_{\mathrm{mask}} have similar structure as we see in Figure 14 . In addition, we depict the learned splines in Figure 15 . For \phi_{c}^{\sigma} , we visualize three different noise levels \sigma\in\{5,15,25\} and channels c\in\{44,93,99\} . The three visualized channels correspond to vertical edge filters of various scales, see Figure 13 . They resemble threshold functions that set high responses to zero. This results in less regularization in the regions that have high responses to the filters that are often activated by the image structures. This is a desirable behavior as the structure of the image should not contribute to the regularization cost. Additionally, the widths of the last spline \phi_{c}^{\sigma} are increasing for all channels with respect to the noise level \sigma . Thus, more regularization is performed for higher noise levels. Moreover, we show the channel-wise average of the masks for the noisy and the denoised castle image in Figure 16 . The masks remove the undesirable contribution of the image to the filter responses {\bf{W}}{\bf{x}} of the regularizer. This results in lower penalization of the edges and yields sharper solutions. Figure 13: Effective convolution kernels for the Multi-Conv block {\bf{W}} in the grayscale model. All plots use the same range, where gray corresponds to zero. Brighter filters are more important. Figure 14: Effective convolution kernels for the Multi-Conv block {\bf{W}}_{\mathrm{mask}} in the grayscale model. All plots use the same range, where gray corresponds to zero. Brighter filters are more important. Figure 15: Learned splines in the mask generation network {\bf{M}} (Figure 2 ) for grayscale model. Figure 16: From left to right: a channel-wise average of (i) the squared response to the noisy image (top) and the solution of the castle denoising problem (bottom); (ii) the masks computed on the noisy image (top) and the solution (bottom), (iii) corresponding adapted responses.