Algorithm Search⌘K

Conceptadvanced

Analysis and synthesis sparsity

Also called analysis prior, synthesis prior, cosparsity.

A synthesis model writes the image as a sparse sum of atoms, while an analysis model asks that an operator such as a gradient map the image to a sparse vector.

Sparsity priors come in two forms. A synthesis model writes the image as x=Dzx = Dz with a dictionary D∈Rn×pD \in \mathbb{R}^{n \times p} and asks that the coefficient vector zz be sparse; an analysis model applies an operator Ω∈Rp×n\Omega \in \mathbb{R}^{p \times n} to the image and asks that Ωx\Omega x have many zeros, a property called cosparsity. The two give the same variational problem when the operator is square and invertible, for example an orthonormal wavelet basis, and different problems for redundant frames (Elad, Milanfar and Rubinstein 2007). Total variation is the main analysis prior in imaging.

In plain words

There are two ways to say that an image is simple. The first way says: the image is built from a few pieces taken from a fixed list of building blocks. To store it, keep the few pieces and their weights. The second way says: if you run a set of tests on the image, most tests give zero. A test can be "is this pixel equal to its neighbor", and a cartoon image passes most of these tests. When the list of blocks and the set of tests are the same size and match one to one, the two ways say the same thing. When there are more blocks or tests than pixels, they say different things and give different reconstructions.

The idea

The two variational problems. For data y=Ax+ey = Ax + e and weight λ>0\lambda > 0:

synthesis:z^∈arg⁡min⁡z∈Rp12∥ADz−y∥2+λ∥z∥1,x^S=Dz^,\text{synthesis:}\quad \hat z \in \arg\min_{z \in \mathbb{R}^p} \tfrac12\|ADz - y\|^2 + \lambda\|z\|_1,\qquad \hat x_S = D\hat z,
analysis:x^A∈arg⁡min⁡x∈Rn12∥Ax−y∥2+λ∥Ωx∥1.\text{analysis:}\quad \hat x_A \in \arg\min_{x \in \mathbb{R}^n} \tfrac12\|Ax - y\|^2 + \lambda\|\Omega x\|_1.

Both are instances of variational regularization. The synthesis problem is a lasso in zz and is solved by iterative shrinkage, as the proximal operator of ∥z∥1\|z\|_1 is soft thresholding. The analysis problem has the operator inside the norm, so its proximal operator has no closed form in general; split Bregman, ADMM or the Chambolle-Pock algorithm split Ωx\Omega x off as a new variable.

When they agree. If p=np = n and Ω=D−1\Omega = D^{-1}, the change of variables z=Ωxz = \Omega x maps one problem onto the other, so x^S=x^A\hat x_S = \hat x_A. An orthonormal basis with Ω=D⊤\Omega = D^\top is the common case. When p>np > n the matrix DD has a null space, and many zz give the same xx; the synthesis problem picks the sparsest coding of each candidate in its penalty, while the analysis problem charges every candidate by all its correlations Ωx\Omega x. For a redundant tight frame with Ω=D⊤\Omega = D^\top the two problems are in general different, as the example below shows.

The geometry of the models. In synthesis, an image with kk active atoms lies in the span of those kk columns of DD, so the model is a union of subspaces of dimension at most kk. In analysis, an image with ℓ\ell zeros in Ωx\Omega x lies in the orthogonal complement of those ℓ\ell rows, so the model is a union of subspaces of dimension at least n−ℓn - \ell (Nam et al. 2013). The number ℓ\ell of zeros is the cosparsity. For a redundant Ω\Omega the analysis model needs many zeros to be small, and its subspaces are of a different kind from the synthesis subspaces: a high cosparsity counts the constraints that hold, not the atoms that are used.

Total variation as analysis. With Ω\Omega the matrix of forward differences, ∥Ωx∥1\|\Omega x\|_1 is the anisotropic total variation, and the zeros of Ωx\Omega x are the places where neighboring pixels are equal. A piecewise constant image with short boundaries is highly cosparse. Total generalized variation is an analysis prior with a second order operator on the pair (x,w)(x, w).

Recovery guarantees. For synthesis, the theory of compressed sensing and basis pursuit needs ADAD to satisfy a restricted isometry or coherence condition, which fails for a coherent DD. Candes, Eldar, Needell and Randall (2011) prove error bounds for ℓ1\ell_1 analysis with a tight frame DD and Ω=D∗\Omega = D^* under a restricted isometry condition on AA adapted to DD, with the error controlled by the tail of D∗xD^*x. This allows highly redundant and coherent frames.

Examples

Haar basis against differences. For n=4n = 4, the orthonormal Haar coefficients of the step (0,0,3,3)(0, 0, 3, 3) are (3,−3,0,0)(3, -3, 0, 0): 2 nonzeros. The step (0,3,3,3)(0, 3, 3, 3), with the edge at a different place, has the coefficients (4.5,−1.5,−2.1213,0)(4.5, -1.5, -2.1213, 0): 3 nonzeros. Its forward differences (3,0,0)(3, 0, 0) have one nonzero, as do those of the first step, (0,3,0)(0, 3, 0), so both have cosparsity 2 for Ω\Omega the difference matrix. The Haar synthesis model depends on the position of the edge relative to the dyadic grid; the difference analysis model does not.

A tight frame in the plane. Let D∈R2×3D \in \mathbb{R}^{2 \times 3} have the three columns dk=2/3 (cos⁡θk,sin⁡θk)d_k = \sqrt{2/3}\,(\cos\theta_k, \sin\theta_k) with θk=π/2+2πk/3\theta_k = \pi/2 + 2\pi k/3:

D=(0−0.7071070.7071070.816497−0.408248−0.408248),DD⊤=I.D = \begin{pmatrix} 0 & -0.707107 & 0.707107 \\ 0.816497 & -0.408248 & -0.408248 \end{pmatrix},\qquad DD^\top = I.

This is a Parseval tight frame, and d0+d1+d2=0d_0 + d_1 + d_2 = 0. Take A=IA = I, Ω=D⊤\Omega = D^\top and λ=0.3\lambda = 0.3.

data yy synthesis x^S\hat x_S analysis x^A\hat x_A
(0,1)(0, 1), along the atom d0d_0 (0, 1−3/2 λ)=(0,0.6326)(0,\ 1 - \sqrt{3/2}\,\lambda) = (0, 0.6326) (0, 1−22/3 λ)=(0,0.5101)(0,\ 1 - 2\sqrt{2/3}\,\lambda) = (0, 0.5101)
(1,0)(1, 0), between d1d_1 and d2d_2 (0.575736,0)(0.575736, 0) (0.575736,0)(0.575736, 0)

For y=(0,1)y = (0, 1) the synthesis solution uses one atom, z^=(0.77474,0,0)\hat z = (0.77474, 0, 0), and shrinks along it. The analysis solution has Ωx^A=(0.4165,−0.20825,−0.20825)\Omega\hat x_A = (0.4165, -0.20825, -0.20825), with no zero entry. The gradient of ∥D⊤x∥1\|D^\top x\|_1 there is d0−d1−d2=2d0d_0 - d_1 - d_2 = 2d_0, so the analysis solution is y−2λd0y - 2\lambda d_0. The synthesis solution is y−λd0/∥d0∥2=y−1.5λd0y - \lambda d_0/\|d_0\|^2 = y - 1.5\lambda d_0. The analysis prior pulls harder along d0d_0, and the two reconstructions differ. For y=(1,0)y = (1, 0) the analysis vector Ωx\Omega x has a zero in its first entry and the two models give the same point.

Image models. Wavelet synthesis with an orthonormal basis and wavelet analysis are the same problem. With the undecimated (translation invariant) wavelet frame they differ, and compressed sensing MRI often uses the analysis form. In one dimension, total variation equals a synthesis model whose atoms are step functions, with the constant left free. In two dimensions the difference operator has about two rows per pixel, so this change of variables is not available.

Where it is used

  • Synthesis: dictionary learning and K-SVD, sparse coding of patches, convolutional sparse coding, and greedy pursuit methods, which select atoms one by one.
  • Analysis: total variation and TGV in denoising, deblurring and tomography; ℓ1\ell_1 of a redundant wavelet or curvelet frame in compressed sensing MRI; learned analysis operators and filter based models in learned regularizers.
  • Choice between them: synthesis is natural when the data are known to be a few atoms, such as spikes or a few frequencies. Analysis is natural when the prior is a set of constraints, such as flat regions or smooth edges, and when the operator is a redundant filter bank.

References

  1. Michael Elad, Peyman Milanfar and Ron Rubinstein, Analysis versus synthesis in signal priors, Inverse Problems 23(3), 2007, pages 947 to 968 (the two MAP formulations, their equality for a square invertible operator and their difference for redundant ones)
  2. Sangnam Nam, Mike E. Davies, Michael Elad and Remi Gribonval, The cosparse analysis model and algorithms, Applied and Computational Harmonic Analysis 34(1), 2013, pages 30 to 56 (cosparsity, the union of subspaces of the analysis model and its uniqueness and recovery results)
  3. Emmanuel J. Candes, Yonina C. Eldar, Deanna Needell and Paige Randall, Compressed sensing with coherent and redundant dictionaries, Applied and Computational Harmonic Analysis 31(1), 2011, pages 59 to 73 (recovery guarantees for l1 analysis with a tight frame)
  4. Martin Benning and Martin Burger, Modern regularization methods for inverse problems, Acta Numerica 27, 2018, pages 1 to 111 (sparsity regularizers in the variational framework)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/6V9TP3/text.yaml