Modelresearch
Convolutional sparse coding
Model a whole image as a sum of small filters convolved with sparse feature maps, solved efficiently in the Fourier domain.
Convolutional sparse coding models a whole signal or image as a sum of a few small filters, each convolved with its own sparse map of coefficients. It is dictionary learning with a dictionary that is invariant to shifts: instead of atoms of the size of a patch, used on overlapping patches that are coded separately, it uses filters that may appear at any position of the image, and codes the whole image at once. The global dictionary is a union of convolution matrices. The convolution theorem turns it into small independent problems, one per frequency, and this is why the model is practical. K-SVD learns a dictionary for patches; this page describes the model that replaces patches by the whole image.
The machine
- Unknowns. sparse coefficient maps , each of the size of the image, pixels in all. A nonzero entry of at position says that filter appears at with that amplitude.
- Parameters. filters , each supported on a small window of pixels, for example or , with . They are given, or learned from training images.
- Forward map. The image is
where is 2D convolution and is noise, usually modeled as white Gaussian. In matrix form, with and , where is the matrix of convolution with . Each column of is one filter at one position.
- Boundaries. The fast algorithms take the convolution as circular, so that each is a circulant matrix (block circulant in 2D) diagonalized by the discrete Fourier transform. This is valid when the image is padded or its borders do not matter. Otherwise the image is extended and a mask selects the observed pixels.
- Sparsity. Most entries of each are 0. The model is valid for images that are made of repeated local structures, such as edges, textures and blobs, at arbitrary positions.
What it counts
The model predicts the image as the sum of filter responses . A fit with fixed filters is convolutional basis pursuit denoising,
which is the LASSO for the matrix . Learning the filters minimizes the same objective over the as well, over a set of training images, with restricted to its window and .
In the Fourier domain. Write for the DFT of the padded arrays. Circular convolution becomes a product, so : at each frequency , the data value depends only on the numbers . A least squares step in the model, , which is the main step of ADMM for the problem above, then splits into independent systems
of size , each the identity plus a rank-one matrix. The Sherman-Morrison formula solves each one in operations:
So one ADMM iteration costs for the FFTs and for the solves, in place of a dense system of size .
A small example. Take a 1D signal of length , one filter and circular convolution, . The map gives . In the Fourier domain , that is , and , so , the DFT of . Because , the alternating map is in the null space, and gives the same : check , , , . The sparse map , with norm 1, is preferred to , with norm 3. A zero of a filter's transform always gives such a null vector, and the sparsity prior is what removes it.
Relation to other models
- Patch-based sparse coding. Dictionary learning and K-SVD code each patch on its own and average the overlaps. The patches are not consistent with one global image, and a dictionary for patches learns many shifted copies of the same structure. Convolutional sparse coding is the global model of which the patch model is a local approximation: each patch of equals a local dictionary, made of all the filters at all shifts that touch the patch, times a stripe of .
- Shift-invariant dictionaries. The columns of are all shifts of filters, so the model is invariant to translation. The cost is a large mutual coherence: a filter and its shift by one pixel are usually almost parallel.
- Deconvolutional and convolutional networks. Zeiler, Krishnan, Taylor and Fergus (2010) stacked convolutional sparse coding layers into deconvolutional networks. Papyan, Romano and Elad later showed that the forward pass of a convolutional neural network with ReLU can be read as layered thresholding for a multilayer version of the model. Unrolled solvers of the model give network layers; see algorithm unrolling.
- Analysis models. A total variation or wavelet prior says that a fixed filter bank applied to the image gives sparse output. That is an analysis model; convolutional sparse coding is a synthesis model with learned filters. See analysis and synthesis sparsity.
Known results in the model
Diagonalization. With circular boundaries, is block diagonal after a DFT, with one block per frequency. This is the convolution theorem applied to each , and it gives the cost of per iteration above. Fourier-domain ADMM for the problem is due to Bristow, Eriksson and Lucey (2013), and Wohlberg (2016) reduced the solve per frequency to with the Sherman-Morrison formula.
Ambiguities. Shifting a filter one way and its map the other way leaves unchanged: for every circular shift . Inside a fixed window, this ambiguity remains whenever the filter does not fill its window. Scaling by and by is removed by the norm constraint. For each frequency with , the vector of the values is determined by only up to the dimensional null space of , so without the sparsity prior the coefficients are never determined.
Local sparsity guarantees. The global coherence of is at least the largest correlation of a filter with its own shifts, so classical guarantees that bound the total number of nonzeros by allow only a few nonzeros in a whole image. Papyan, Sulam and Elad (2017) replaced by the measure, the largest number of nonzeros in any stripe of that affects one patch of . They proved that if , then is the sparsest representation in this measure, and that orthogonal matching pursuit and basis pursuit find it, with stability bounds for noise. These conditions allow a number of nonzeros that grows with the size of the image.
Learning. Filter learning alternates the coding step above with a filter update that is also solved in the Fourier domain, with the window constraint enforced by a projection. As for patch dictionary learning, the joint problem is not convex, and the guarantees are for the coding step, not for the learning.
References
- Matthew D. Zeiler, Dilip Krishnan, Graham W. Taylor and Rob Fergus, Deconvolutional networks, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010, the whole paper (images as sums of filters convolved with sparse feature maps, learned layer by layer)
- Brendt Wohlberg, Efficient algorithms for convolutional sparse representations, IEEE Transactions on Image Processing 25(1), 2016, pages 301 to 315 (ADMM for convolutional basis pursuit denoising in the Fourier domain, with one rank-one linear system per frequency solved by the Sherman-Morrison formula)
- Vardan Papyan, Jeremias Sulam and Michael Elad, Working locally thinking globally, theoretical guarantees for convolutional sparse coding, IEEE Transactions on Signal Processing 65(21), 2017, pages 5687 to 5701 (the local sparsity measure, uniqueness, and the success of OMP and basis pursuit under local sparsity)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag VZD7T3 Edit this page History Report an error Markdown