CoSaMP: Iterative signal recovery from incomplete and inaccurate samples
D. Needell, J. A. Tropp
Introduction
Most signals of interest contain scant information relative to their ambient dimension, but the classical approach to signal acquisition ignores this fact. We usually collect a complete representation of the target signal and process this representation to sieve out the actionable information. Then we discard the rest. Contemplating this ugly inefficiency, one might ask if it is possible instead to acquire compressive samples. In other words, is there some type of measurement that automatically winnows out the information from a signal? Incredibly, the answer is sometimes yes.
Compressive sampling refers to the idea that, for certain types of signals, a small number of nonadaptive samples carries sufficient information to approximate the signal well. Research in this area has two major components:
How many samples are necessary to reconstruct signals to a specified precision? What type of samples? How can these sampling schemes be implemented in practice?
Given the compressive samples, what algorithms can efficiently construct a signal approximation?
The literature already contains a well-developed theory of sampling, which we summarize below. Although algorithmic work has been progressing, the state of knowledge is less than complete. We assert that a practical signal reconstruction algorithm should have all of the following properties.
It should accept samples from a variety of sampling schemes.
It should succeed using a minimal number of samples.
It should be robust when samples are contaminated with noise.
It should provide optimal error guarantees for every target signal.
It should offer provably efficient resource usage.
To our knowledge, no approach in the literature simultaneously accomplishes all five goals.
This paper presents and analyzes a novel signal reconstruction algorithm that achieves these desiderata. The algorithm is called CoSaMP, from the acrostic Compressive Sampling Matching Pursuit. As the name suggests, the new method is ultimately based on orthogonal matching pursuit (OMP) , but it incorporates several other ideas from the literature to accelerate the algorithm and to provide strong guarantees that OMP cannot. Before we describe the algorithm, let us deliver an introduction to the theory of compressive sampling.
We say that a signal is -sparse when . Sparse signals are an idealization that we do not encounter in applications, but real signals are quite often compressible, which means that their entries decay rapidly when sorted by magnitude. As a result, compressible signals are well approximated by sparse signals. We can also talk about signals that are compressible with respect to other orthonormal bases, such as a Fourier or wavelet basis. In this case, the sequence of coefficients in the orthogonal expansion decays quickly. It represents no loss of generality to focus on signals that are compressible with respect to the standard basis, and we do so without regret. For a more precise definition of compressibility, turn to Section 2.6.
The minimum number of measurements on account of the following simple argument. The sampling matrix must not map two different -sparse signals to the same set of samples. Therefore, each collection of columns from the sampling matrix must be nonsingular. It is easy to see that certain Vandermonde matrices satisfy this property, but these matrices are not really suitable for signal acquisition because they contain square minors that are very badly conditioned. As a result, some sparse signals are mapped to very similar sets of samples, and it is unstable to invert the sampling process numerically.
Instead, Candès and Tao proposed the stronger condition that the geometry of sparse signals should be preserved under the action of the sampling matrix . To quantify this idea, they defined the th restricted isometry constant of a matrix as the least number for which
To acquire -sparse signals, one therefore hopes to achieve a small restricted isometry constant with as few samples as possible. A striking fact is that many types of random matrices have excellent restricted isometry behavior. For example, we can often obtain with
measurements, where is a small integer. Unfortunately, no deterministic sampling matrix is known to satisfy a comparable bound. Even worse, it is computationally difficult to check the inequalities (1.1), so it may never be possible to exhibit an explicit example of a good sampling matrix.
As a result, it is important to understand how random sampling matrices behave. The two quintessential examples are Gaussian matrices and partial Fourier matrices.
If the entries of are independent and identically distributed standard normal variables then
If is a uniformly random set of rows drawn from the unitary discrete Fourier transform (DFT), then
except with probability . See for the proof. Experts believe that the power on the first logarithm should be no greater than two .
The Gaussian matrix is important because it has optimal restricted isometry behavior. Indeed, for any matrix,
on account of profound geometric results of Kashin and Garnaev–Gluskin . Even though partial Fourier matrices may require additional samples to achieve a small restricted isometry constant, they are more interesting for the following reasons .
There are technologies that acquire random Fourier measurements at unit cost per sample.
Other types of sampling matrices, such as the random demodulator , enjoy similar qualities. These traits are essential for the translation of compressive sampling from theory into practice.
2. Signal Recovery Algorithms
The major algorithmic challenge in compressive sampling is to approximate a signal given a vector of noisy samples. The literature describes a huge number of approaches to solving this problem. They fall into three rough categories:
These methods build up an approximation one step at a time by making locally optimal choices at each step. Examples include OMP , stagewise OMP (StOMP) , and regularized OMP (ROMP) .
These techniques solve a convex program whose minimizer is known to approximate the target signal. Many algorithms have been proposed to complete the optimization, including interior-point methods , projected gradient methods , and iterative thresholding .
These methods acquire highly structured samples of the signal that support rapid reconstruction via group testing. This class includes Fourier sampling , chaining pursuit , and HHS pursuit , as well as some algorithms of Cormode–Muthukrishnan and Iwen .
At present, each type of algorithm has its native shortcomings. Many of the combinatorial algorithms are extremely fast—sublinear in the length of the target signal—but they require a large number of somewhat unusual samples that may not be easy to acquire. At the other extreme, convex relaxation algorithms succeed with a very small number of measurements, but they tend to be computationally burdensome. Greedy pursuits—in particular, the ROMP algorithm—are intermediate in their running time and sampling efficiency.
CoSaMP, the algorithm described in this paper, is at heart a greedy pursuit. It also incorporates ideas from the combinatorial algorithms to guarantee speed and to provide rigorous error bounds . The analysis is inspired by the work on ROMP and the work of Candès–Romberg–Tao on convex relaxation methods. In particular, we establish the following result.
We can interpret the error guarantee as follows. In the absence of noise, the algorithm can recover an -sparse signal to arbitrarily high precision. Performance degrades gracefully as the energy in the noise increases. Performance also degrades gracefully for compressible signals. The theorem is ultimately vacuous for signals that cannot be approximated by sparse signals, but compressive sampling is not an appropriate technique for this class.
The running time bound indicates that each matrix--vector multiplication reduces the error by a constant factor (if we amortize over the entire execution). That is, the algorithm has linear convergence Mathematicians sometimes refer to linear convergence as “exponential convergence.”. We find that the total runtime is roughly proportional to (the negation of) the reconstruction signal-to-noise ratio
3. Notation
Finally, we define the pseudoinverse of a tall, full-rank matrix by the formula .
4. Organization
The rest of the paper has the following structure. In Section 2 we introduce the CoSaMP algorithm, we state the major theorems in more detail, and we discuss implementation and resource requirements. Section 3 describes some consequences of the restricted isometry property that pervade our analysis. The central theorem is established for sparse signals in Sections 4 and 5. We extend this result to general signals in Section 6. Finally, Section 7 places the algorithm in the context of previous work. The first appendix presents variations on the algorithm. The second appendix contains a bound on the number of iterations required when the algorithm is implemented using exact arithmetic.
The CoSaMP Algorithm
This section gives an overview of the algorithm, along with explicit pseudocode. It presents the major theorems on the performance of the algorithm. Then it covers details of implementation and bounds on resource requirements.
The most difficult part of signal reconstruction is to identify the locations of the largest components in the target signal. CoSaMP uses an approach inspired by the restricted isometry property. Suppose that the sampling matrix has restricted isometry constant . For an -sparse signal , the vector can serve as a proxy for the signal because the energy in each set of components of approximates the energy in the corresponding components of . In particular, the largest entries of the proxy point toward the largest entries of the signal . Since the samples have the form , we can obtain the proxy just by applying the matrix to the samples.
The algorithm invokes this idea iteratively to approximate the target signal. At each iteration, the current approximation induces a residual, the part of the target signal that has not been approximated. As the algorithm progresses, the samples are updated so that they reflect the current residual. These samples are used to construct a proxy for the residual, which permits us to identify the large components in the residual. This step yields a tentative support for the next approximation. We use the samples to estimate the approximation on this support set using least squares. This process is repeated until we have found the recoverable energy in the signal.
2. Overview
As input, the CoSaMP algorithm requires four pieces of information:
Access to the sampling operator via matrix–vector multiplication.
A vector of (noisy) samples of the unknown signal.
The sparsity of the approximation to be produced.
The algorithm is initialized with a trivial signal approximation, which means that the initial residual equals the unknown target signal. During each iteration, CoSaMP performs five major steps:
Identification. The algorithm forms a proxy of the residual from the current samples and locates the largest components of the proxy.
Support Merger. The set of newly identified components is united with the set of components that appear in the current approximation.
Estimation. The algorithm solves a least-squares problem to approximate the target signal on the merged set of components.
Pruning. The algorithm produces a new approximation by retaining only the largest entries in this least-squares signal approximation.
Sample Update. Finally, the samples are updated so that they reflect the residual, the part of the signal that has not been approximated.
These steps are repeated until the halting criterion is triggered. In the body of this work, we concentrate on methods that use a fixed number of iterations. Appendix A discusses some other simple stopping rules that may also be useful in practice.
Pseudocode for CoSaMP appears as Algorithm 2.1. This code describes the version of the algorithm that we analyze in this paper. Nevertheless, there are several adjustable parameters that may improve performance: the number of components selected in the identification step and the number of components retained in the pruning step. For a brief discussion of other variations on the algorithm, turn to Appendix A.
3. Performance Guarantees
This section describes our theoretical analysis of the behavior of CoSaMP. The next section covers the resource requirements of the algorithm. Afterward, Section 2.5 combines these materials to establish Theorem A.
Our results depend on a set of hypotheses that has become common in the compressive sampling literature. Let us frame the standing assumptions:
We also define the unrecoverable energy in the signal. This quantity measures the baseline error in our approximation that occurs because of noise in the samples or because the signal is not sparse.
(2.1)
We postpone a more detailed discussion of the unrecoverable energy until Section 2.6.
Our key result is that CoSaMP makes significant progress during each iteration where the approximation error is large relative to the unrecoverable energy.
For each iteration , the signal approximation is -sparse and
The proof of Theorem 2.1 will occupy us for most of this paper. In Section 4, we establish an analog for sparse signals. The version for general signals appears as a corollary in Section 6.
Theorem 2.1 has some immediate consequences for the quality of reconstruction with respect to standard signal metrics. In this setting, a sensible definition of the signal-to-noise ratio (SNR) is
Both quantities are measured in decibels. Theorem 2.1 implies that, after iterations, the reconstruction SNR satisfies
In words, each iteration reduces the reconstruction SNR by about 3 decibels until the error nears the noise floor. To reduce the error to its minimal value, the number of iterations is proportional to the SNR.
Let us consider a slightly different scenario. Suppose that the signal is -sparse, so the unrecoverable energy . Define the dynamic range
Assume moreover that the minimum nonzero component of the signal is at least . Using the fact that , it is easy to check that as soon as the number of iterations satisfies
It follows that the support of the approximation must contain every entry in the support of the signal .
This discussion suggests that the number of iterations might be substantial if we require a very low reconstruction SNR or if the signal has a very wide dynamic range. This initial impression is not entirely accurate. We have established that, when the algorithm performs arithmetic to high enough precision, then a fixed number of iterations suffices to reduce the approximation error to the same order as the unrecoverable energy. Here is a result for exact computations.
Suppose that CoSaMP is implemented with exact arithmetic. After at most iterations, CoSaMP produces an -sparse approximation that satisfies
If we solve the least-squares problems to high precision, an analogous result holds, but the approximation guarantee contains an extra term that comes from solving the least-squares problems imperfectly. In practice, it may be more efficient overall to solve the least-squares problems to low precision. The correct amount of care seems to depend on the relative costs of forming the signal proxy and solving the least-squares problem, which are the two most expensive steps in the algorithm. We discuss this point in the next section. Ultimately, the question is best settled with empirical studies.
In the hypotheses, a bound on the restricted isometry constant also suffices. Indeed, Corollary 3.4 of the sequel implies that holds whenever .
Choosing and , we reach
4. Implementation and Resource Requirements
CoSaMP was designed to be a practical method for signal recovery. An efficient implementation of the algorithm requires some ideas from numerical linear algebra, as well as some basic techniques from the theory of algorithms. This section discusses the key issues and develops an analysis of the running time for the two most common scenarios.
We focus on the least-squares problem in the estimation step because it is the major obstacle to a fast implementation of the algorithm. The algorithm guarantees that the matrix never has more than columns, so our assumption implies that the matrix is extremely well conditioned. As a result, we can apply the pseudoinverse very quickly using an iterative method, such as Richardson’s iteration [1, Sec. 7.2.3] or conjugate gradient [1, Sec. 7.4]. These techniques have the additional advantage that they only interact with the matrix through its action on vectors. It follows that the algorithm performs better when the sampling matrix has a fast matrix–vector multiply.
The remaining steps of the algorithm are standard. Let us estimate the operation counts.
Forming the proxy is dominated by the cost of the matrix–vector multiply .
We use Richardson’s iteration or conjugate gradient to compute . Initializing the least-squares algorithm requires a matrix–vector multiply with . Each iteration of the least-squares method requires one matrix–vector multiply each with and . Since is a submatrix of , the matrix–vector multiplies can also be obtained from multiplication with the full matrix. We prove in Section 5 that a constant number of least-squares iterations suffices for Theorem 2.1 to hold.
This step is dominated by the cost of the multiplication of with the -sparse vector .
The following result summarizes this discussion.
5. Proof of Theorem A
In the statement of the theorem, perform the substitution . Finally, we replace with by means of Corollary 3.4, which states that for any positive integers and .
6. The Unrecoverable Energy
Since the unrecoverable energy plays a central role in our analysis of CoSaMP, it merits some additional discussion. In particular, it is informative to examine the unrecoverable energy in a compressible signal. Let be a number in the interval . We say that is -compressible with magnitude if the sorted components of the signal decay at the rate
When is small, the first term in the unrecoverable energy decays rapidly as the sparsity level increases. For the class of -compressible signals, the bound (2.3) on the unrecoverable energy is sharp, modulo the exact values of the constants.
With these inequalities, we can see that CoSaMP recovers compressible signals efficiently. Let us calculate the number of iterations required to reduce the approximation error from to the optimal level (2.3). For compressible signals, the energy , so
Restricted Isometry Consequences
When the sampling matrix satisfies the restricted isometry inequalities (1.1), it has several other properties that we require repeatedly in the proof that the CoSaMP algorithm is correct. Our first observation is a simple translation of (1.1) into other terms.
Suppose has restricted isometry constant . Let be a set of indices or fewer. Then
where the last two statements contain an upper and lower bound, depending on the sign chosen.
The restricted isometry inequalities (1.1) imply that the singular values of lie between and . The bounds follow from standard relationships between the singular values of and the singular values of basic functions of . ∎
A second consequence is that disjoint sets of columns from the sampling matrix span nearly orthogonal subspaces. The following result quantifies this observation.
Suppose has restricted isometry constant . Let and be disjoint sets of indices whose combined cardinality does not exceed . Then
Abbreviate , and observe that is a submatrix of . The spectral norm of a submatrix never exceeds the norm of the entire matrix. We discern that
because the eigenvalues of lie between and . ∎
This result will be applied through the following corollary.
Suppose has restricted isometry constant . Let be a set of indices, and let be a vector. Provided that ,
Define , so we have . Thus,
As a second corollary, we show that gives weak control over the higher restricted isometry constants.
Let and be positive integers. Then .
The result is clearly true for so we assume . Let be an arbitrary index set of size , and let . It suffices to check that . To that end, we break the matrix into blocks, which we denote . A block version of Gershgorin’s theorem states that satisfies at least one of the inequalities
The derivation is entirely analogous with the usual proof of Gershgorin’s theorem, so we omit the details. For each diagonal block, we have because of the restricted isometry inequalities (1.1). For each off-diagonal block, we have because of Proposition 3.2. Substitute these bounds into the block Gershgorin theorem and rearrange to complete the proof. ∎
Finally, we present a result that measures how much the sampling matrix inflates nonsparse vectors. This bound permits us to establish the major results for sparse signals and then transfer the conclusions to the general case.
Suppose that verifies the upper inequality of (1.1), viz.
We repeat the geometric argument of Rudelson that is presented in .
and notice that, by hypothesis, the operator norm
The content of the proposition is the claim that
To establish this point, it suffices to check that .
Instead, we prove the reverse inclusion for the polars: . The norm with unit ball is calculated as
Consider a vector in the unit ball , and let be a set of coordinates where is largest in magnitude. We must have
or else for each . But then , a contradiction. Therefore, we may write
In summary, . ∎
The Iteration Invariant: Sparse Case
We now commence the proof of Theorem 2.1. For the moment, let us assume that the signal is actually sparse. Section 6 removes this assumption.
The result states that each iteration of the algorithm reduces the approximation error by a constant factor, while adding a small multiple of the noise. As a consequence, when the approximation error is large in comparison with the noise, the algorithm makes substantial progress in identifying the unknown signal.
Assume that is -sparse. For each , the signal approximation is -sparse, and
The argument proceeds in a sequence of short lemmas, each corresponding to one step in the algorithm. Throughout this section, we retain the assumption that is -sparse.
Fix an iteration . We write for the signal approximation at the beginning of the iteration. Define the residual , which we interpret as the part of the signal we have not yet recovered. Since the approximation is always -sparse, the residual must be -sparse. Notice that the vector of updated samples can be viewed as noisy samples of the residual:
2. Identification
The identification phase produces a set of components where the residual signal still has a lot of energy.
The set contains at most indices, and
The identification phase forms a proxy for the residual signal. The algorithm then selects a set of components from that have the largest magnitudes. The goal of the proof is to show that the energy in the residual on the set is small in comparison with the total energy in the residual.
Define the set . Since contains at most elements, our choice of ensures that . By squaring this inequality and canceling the terms in , we discover that
Since the coordinate subsets here contain few elements, we can use the restricted isometry constants to provide bounds on both sides.
First, observe that the set contains at most elements. Therefore, we may apply Proposition 3.1 and Corollary 3.3 to obtain
Likewise, the set contains elements or fewer, so Proposition 3.1 and Corollary 3.3 yield
Since the residual is supported on , we can rewrite . Finally, combine the last three inequalities and rearrange to obtain
Invoke the numerical hypothesis that to complete the argument. ∎
3. Support Merger
The next step of the algorithm merges the support of the current signal approximation with the newly identified set of components. The following result shows that components of the signal outside this set have very little energy.
Let be a set of at most indices. The set contains at most indices, and
Since , we find that
where the inequality follows from the containment . ∎
4. Estimation
The estimation step of the algorithm solves a least-squares problem to obtain values for the coefficients in the set . We need a bound on the error of this approximation.
Let be a set of at most indices, and define the least-squares signal estimate by the formulae
This result assumes that we solve the least-squares problem in infinite precision. In practice, the right-hand side of the bound contains an extra term owing to the error from the iterative least-squares solver. In Section 5, we study how many iterations of the least-squares solver are required to make the least-squares error negligible in the present argument.
Using the expression and the fact , we calculate that
The cardinality of is at most , and is -sparse, so Proposition 3.1 and Corollary 3.3 imply that
Finally, invoke the hypothesis that . ∎
5. Pruning
The final step of each iteration is to prune the intermediate approximation to its largest terms. The following lemma provides a bound on the error in the pruned approximation.
The pruned approximation satisfies
The intuition is that is close to , which is close to . Rigorously,
The second inequality holds because is the best -sparse approximation to . In particular, the -sparse vector is a worse approximation. ∎
6. Proof of Theorem 4.1
We now complete the proof of the iteration invariant for sparse signals, Theorem 4.1. At the end of an iteration, the algorithm forms a new approximation , which is evidently -sparse. Applying the lemmas we have established, we easily bound the error:
To obtain the second bound in Theorem 4.1, simply solve the error recursion and note that
Analysis of Iterative Least-squares
To develop an efficient implementation of CoSaMP, it is critical to use an iterative method when we solve the least-squares problem in the estimation step. The two natural choices are Richardson’s iteration and conjugate gradient. The efficacy of these methods rests on the assumption that the sampling operator has small restricted isometry constants. Indeed, since the set constructed in the support merger step contains at most components, the hypothesis ensures that the condition number
This condition number is closely connected with the performance of Richardson’s iteration and conjugate gradient. In this section, we show that Theorem 4.1 holds if we perform a constant number of iterations of either least-squares algorithm.
For completeness, let us explain how Richardson’s iteration can be applied to solve the least-squares problems that arise in CoSaMP. Suppose we wish to compute where is a tall, full-rank matrix. Recalling the definition of the pseudoinverse, we realize that this amounts to solving a linear system of the form
This problem can be approached by splitting the Gram matrix:
where . Given an initial iterate , Richardon’s method produces the subsequent iterates via the formula
Evidently, this iteration requires only matrix–vector multiplies with and . It is worth noting that Richardson’s method can be accelerated [1, Sec. 7.2.5], but we omit the details.
It is quite easy to analyze Richardson’s iteration [1, Sec. 7.2.1]. Observe that
In words, the iteration converges linearly.
In our setting, where is a set of at most indices. Therefore, the restricted isometry inequalities (1.1) imply that
We have assumed that , which means that the iteration converges quite fast. Once again, the restricted isometry behavior of the sampling matrix plays an essential role in the performance of the CoSaMP algorithm.
Conjugate gradient provides even better guarantees for solving the least-squares problem, but it is somewhat more complicated to describe and rather more difficult to analyze. We refer the reader to [1, Sec. 7.4] for more information. The following lemma summarizes the behavior of both Richardson’s iteration and conjugate gradient in our setting.
Conjugate gradient produces a sequence of iterates that satisfy
2. Initialization
Iterative least-squares algorithms must be seeded with an initial iterate, and their performance depends heavily on a wise selection thereof. CoSaMP offers a natural choice for the initializer: the current signal approximation. As the algorithm progresses, the current signal approximation provides an increasingly good starting point for solving the least-squares problem.
Let be an -sparse signal with noisy samples . Let be the signal approximation at the end of the th iteration, and let be the set of components identified by the support merger. Then
By construction of , the approximation is supported inside , so
Using Lemma 4.4, we may calculate how far lies from the solution to the least-squares problem.
Roughly, the error in the initial iterate is controlled by the current approximation error. ∎
3. Iteration Count
We need to determine how many iterations of the least-squares algorithm are required to ensure that the approximation produced is sufficiently good to support the performance of CoSaMP.
Suppose that we initialize the LS algorithm with . After at most three iterations, both Richardson’s iteration and conjugate gradient produce a signal estimate that satisfies
Combine Lemma 5.1 and Lemma 5.2 to see that three iterations of Richardson’s method yield
The bound for conjugate gradient is slightly better. Let . According to the estimation result, Lemma 4.4, we have
An application of the triangle inequality completes the argument. ∎
4. CoSaMP with Iterative least-squares
Finally, we need to check that the sparse iteration invariant, Theorem 4.1 still holds when we use an iterative least-squares algorithm.
Suppose that we use Richardson’s iteration or conjugate gradient for the estimation step, initializing the LS algorithm with the current approximation and performing three LS iterations. Then Theorem 4.1 still holds.
We repeat the calculation in Section 4.6 using Corollary 5.3 instead of the simple estimation lemma. To that end, recall that the residual . Then
This bound is precisely what is required for the theorem to hold. ∎
Extension to General Signals
In this section, we finally complete the proof of the main result for CoSaMP, Theorem 2.1. The remaining challenge is to remove the hypothesis that the target signal is sparse, which we framed in Theorems 4.1 and 5.4. Although this difficulty might seem large, the solution is simple and elegant. It turns out that we can view the noisy samples of a general signal as samples of a sparse signal contaminated with a different noise vector that implicitly reflects the tail of the original signal.
Decompose to obtain where . To compute the size of the error term, we simply apply the triangle inequality and Proposition 3.5:
Finally, invoke the fact that to obtain . ∎
This lemma is just the tool we require to complete the remaining argument.
Let be a general signal, and use Lemma 6.1 to write the noisy vector of samples . Apply the sparse iteration invariant, Theorem 4.1, or the analog for iterative least-squares, Theorem 5.4. We obtain
Invoke the lower and upper triangle inequalities to obtain
Finally, recall the estimate for from Lemma 6.1, and simplify to reach
where is the unrecoverable energy (2.1). ∎
Discussion and Related Work
CoSaMP draws on both algorithmic ideas and analytic techniques that have appeared before. This section describes the other major signal recovery algorithms, and it compares them with CoSaMP. It also attempts to trace the key ideas in the algorithm back to their sources.
We begin with a short discussion of the major algorithmic approaches to signal recovery from compressive samples. We focus on provably correct methods, although we acknowledge that some ad hoc techniques provide excellent empirical results.
The initial discovery works on compressive sampling proposed to perform signal recovery by solving a convex optimization problem . Given a sampling matrix and a noisy vector of samples , consider the mathematical program
provided that the sampling matrix has restricted isometry constant . In , the hypothesis on the restricted isometry constant is sharpened to . The error bound for CoSaMP is equivalent, modulo the exact value of the constants.
Tropp and Gilbert proposed the use of a greedy iterative algorithm called orthogonal matching pursuit (OMP) for signal recovery . The algorithm initializes the current sample vector . In each iteration, it forms the signal proxy and identifies a component of the proxy with largest magnitude. It adds the new component to the set of previously identified components. Then OMP forms a new signal approximation by solving a least-squares problem: . Finally, it updates the samples . These steps are repeated until a halting criterion is satisfied.
Donoho et al. invented another greedy iterative method called stagewise OMP, or StOMP . This algorithm uses the signal proxy to select multiple components at each step, using a rule inspired by ideas from wireless communications. The algorithm is faster than OMP because of the selection rule, and it sometimes provides good performance, although parameter tuning can be difficult. There are no rigorous results available for StOMP.
Very recently, Needell and Vershynin developed and analyzed another greedy approach, called regularized OMP, or ROMP . This algorithm is similar to OMP but uses a more sophisticated selection rule. Among the largest entries of the signal proxy, it identifies the largest subset whose entries differ in magnitude by at most a factor of two. The work on ROMP represents an advance because the authors establish under restricted isometry hypotheses that their algorithm can approximately recover any compressible signal from noisy samples. More precisely, suppose that the sampling matrix has restricted isometry constant . Given noisy samples , ROMP produces a -sparse signal approximation that satisfies
This result is comparable with the result for convex relaxation, aside from the extra logarithmic factor in the restricted isometry hypothesis and the error bound. The results for CoSaMP show that it does not suffer these parasitic factors, so its performance is essentially optimal.
After we initially presented this work, Dai and Milenkovic developed an algorithm called Subspace Pursuit that is very similar to CoSaMP. They established that their algorithm offers performance guarantees analogous with those for CoSaMP. See for details.
Finally, we note that there is a class of sublinear algorithms for signal reconstruction from compressive samples. A sublinear algorithm uses time and space resources that are asymptotically smaller than the length of the signal. One of the earliest such techniques is the Fourier sampling algorithm of Gilbert et al. . This algorithm uses random (but structured) time samples to recover signals that are compressible with respect to the discrete Fourier basis. Given samples The term indicates a function that is dominated by a polynomial in the logarithm of its argument., Fourier sampling produces a signal approximation that satisfies
except with probability . The result for Fourier sampling holds for each signal (rather than for all). Later, Gilbert et al. developed two other sublinear algorithms, chaining pursuit and HHS pursuit , that offer uniform guarantees for all signals. Chaining pursuit has an error bound
which is somewhat worse than (7.2). HHS pursuit achieves the error bound (7.2). These methods all require more measurements than the linear and superlinear algorithms (by logarithmic factors), and these measurements must be highly structured. As a result, the sublinear algorithms may not be useful in practice.
The sublinear algorithms are all combinatorial in nature. They use ideas from group testing to identify the support of the signal quickly. There are several other combinatorial signal recovery methods due to Cormode–Muthukrishnan and Iwen . These algorithms have drawbacks similar to the sublinear approaches.
2. Relative Performance
Table 2 summarizes the relative behavior of these algorithms in terms of the following criteria.
Does the algorithm work for a variety of sampling schemes? Or does it require structured samples? The designation “RIP” means that a bound on a restricted isometry constant suffices. “Subgauss.” means that the algorithm succeeds for the class of subgaussian sampling matrices.
Does the algorithm recover all signals given a fixed sampling matrix? Or do the results require a sampling matrix to be drawn at random for each signal?
Does the algorithm succeed when (a) the signal is compressible but not sparse and (b) when the samples are contaminated with noise? In most cases, stable algorithms have error bounds similar to (7.2). See the discussion above for details.
Of the linear and superlinear algorithms, CoSaMP achieves the best performance on all these metrics. Although CoSaMP is slower than the sublinear algorithms, it makes up for this shortcoming by allowing more general sampling matrices and requiring fewer samples.
3. Key Ideas
We conclude with a historical overview of the ideas that inform the CoSaMP algorithm and its analysis.
The overall greedy iterative structure of CoSaMP has a long history. The idea of approaching sparse approximation problems in this manner dates to the earliest algorithms. In particular, methods for variable selection in regression, such as forward selection and its relatives, all take this form . Temlyakov’s survey describes the historical role of greedy algorithms in nonlinear approximation. Mallat and Zhang introduced greedy algorithms into the signal processing literature and proposed the name matching pursuit . Gilbert, Strauss, and their collaborators showed how to incorporate greedy iterative strategies into fast algorithms for sparse approximation problems, and they established the first rigorous guarantees for greedy methods . Tropp provided a new theoretical analysis of OMP in his work . Subsequently, Tropp and Gilbert proved that OMP was effective for compressive sampling .
Unlike the simplest greedy algorithms, CoSaMP identifies many components during each iteration, which allows the algorithm to run faster for many types of signals. It is not entirely clear where this idea first appeared. Several early algorithms of Gilbert et al. incorporate this approach , and it is an essential feature of the Fourier sampling algorithm . More recent compressive sampling recovery algorithms also select multiple indices, including chaining pursuit , HHS pursuit , StOMP , and ROMP .
CoSaMP uses the restricted isometry properties of the sampling matrix to ensure that the identification step is successful. Candès and Tao isolated the restricted isometry conditions in their work on convex relaxation methods for compressive sampling . The observation that restricted isometries can also be used to ensure the success of greedy methods is relatively new. This idea plays a role in HHS pursuit , but it is expressed more completely in the analysis of ROMP .
The pruning step of CoSaMP is essential to maintain the sparsity of the approximation, which is what permits us to use restricted isometries in the analysis of the algorithm. It also has significant ramifications for the running time because it impacts the speed of the iterative least-squares algorithms. This technique originally appeared in HHS pursuit .
The iteration invariant, Theorem 2.1, states that if the error is large then CoSaMP makes substantial progress. This approach to the overall analysis echoes the analysis of other greedy iterative algorithms, including the Fourier sampling method and HHS Pursuit .
Finally, mixed-norm error bounds, such as that in Theorem A, have become an important feature of the compressive sampling literature. This idea appears in the work of Candès–Romberg–Tao on convex relaxation ; it is used in the analysis of HHS pursuit ; it also plays a role in the theoretical treatment of Cohen–Dahmen–DeVore .
Acknowledgment
We would like to thank Martin Strauss for many inspiring discussions. He is ultimately responsible for many of the ideas in the algorithm and analysis. We would also like to thank Roman Vershynin for suggestions that drastically simplified the proofs.
Appendix A Algorithmic Variations
This appendix describes other possible halting criteria and their consequences. It also proposes some other variations on the algorithm.
There are three natural approaches to halting the algorithm. The first, which we have discussed in the body of the paper, is to stop after a fixed number of iterations. Another possibility is to use the norm of the current samples as evidence about the norm of the residual. A third possibility is to use the magnitude of the entries of the proxy to bound the magnitude of the entries of the residual.
It suffices to discuss halting criteria for sparse signals because Lemma 6.1 shows that the general case can be viewed in terms of sampling a sparse signal. Let be an -sparse signal, and let be an -sparse approximation. The residual . We write for the induced noisy samples of the residual and for the signal proxy.
The discussion proceeds in two steps. First, we argue that an a priori halting criterion will result in a guarantee about the quality of the final signal approximation.
The halting criterion ensures that
The halting criterion ensures that
Since is -sparse, Proposition 3.1 ensures that
If , it is immediate that
The definition and the numerical bound dispatch the first claim.
Let , and note that . Proposition 3.1 results in
we find that the requirement ensures that
The numerical bound completes the proof.
Second, we check that each halting criterion is triggered when the residual has the desired property.
The halting criterion is triggered as soon as
The halting criterion is triggered as soon as
ensures that . Note that to complete the first part of the argument.
Now let be the singleton containing the index of a largest-magnitude coefficient of . Proposition 3.1 implies that
By the first part of this theorem, the halting criterion is triggered as soon as
Since is -sparse, we have the bound . To wrap up, recall that . ∎
A.2. Other Variations
This section briefly describes several natural variations on CoSaMP that may improve its performance.
Here is a version of the algorithm that is, perhaps, simpler than Algorithm 2.1. At each iteration, we approximate the current residual rather than the entire signal. This approach is similar to HHS Pursuit . The inner loop changes in the following manner.
As before, select .
Solve a least-squares problem with the current samples instead of the original samples to obtain an approximation of the residual signal. Formally, . In this case, one initializes the iterative least-squares algorithm with the zero vector to take advantage of the fact that the residual is becoming small.
Add this approximation of the residual to the previous approximation of the signal to obtain a new approximation of the signal: .
Construct the -sparse signal approximation: .
Update the samples as before: .
We can show that this algorithm satisfies a result similar to Theorem 2.1 by adapting the current argument. We were unable to verify an analog of Theorem 2.2. Nevertheless, we believe that this version of the algorithm is also promising.
After the inner loop of the algorithm is complete, we can solve another least-squares problem in an effort to improve the final result. If is the approximation at the end of the loop, we set . Then solve and output the -sparse signal approximation . Note that the output approximation is not guaranteed to be better than because of the noise vector , but it should never be much worse.
Another variation is to prune the merged support down to entries before solving the least-squares problem. One may use the values of the proxy as surrogates for the unknown values of the new approximation on the set . Since the least-squares problem is solved at the end of the iteration, the columns of that are used in the least-squares approximation are orthogonal to the current samples . As a result, the identification step always selects new components in each iteration. We have not attempted an analysis of this algorithm.
Appendix B Iteration Count
In this appendix, we obtain an estimate on the number of iterations of the CoSaMP algorithm necessary to identify the recoverable energy in a sparse signal, assuming exact arithmetic. Except where stated explicitly, we assume that is -sparse. It turns out that the number of iterations depends heavily on the signal structure. Let us explain the intuition behind this fact.
When the entries in the signal decay rapidly, the algorithm must identify and remove the largest remaining entry from the residual before it can make further progress on the smaller entries. Indeed, the large component in the residual contaminates each component of the signal proxy. In this case, the algorithm may require an iteration or more to find each component in the signal.
To quantify these intuitions, we want to collect the components of the signal into groups that are comparable with each other. To that end, define the component bands of a signal by the formulae
The profile of the signal is the number of bands that are nonempty:
In words, the profile counts how many orders of magnitude at which the signal has coefficients. It is clear that the profile of an -sparse signal is at most . See Figure 1 for images of stylized signals with different profiles.
First, we prove a result on the number of iterations needed to acquire an -sparse signal. At the end of the section, we extend this result to general signals, which yields Theorem 2.2.
Let be an -sparse signal, and define . After at most
iterations, CoSaMP produces an approximation that satisfies
For a fixed , the bound on the number of iterations achieves its maximum value at . Since , the number of iterations never exceeds .
Let us instate some notation that will be valuable in the proof of the theorem. We write . For each , the signal is the approximation after the th iteration. We abbreviate , and we define the residual signal . The norm of the residual can be viewed as the approximation error.
For a nonnegative integer , we may define an auxiliary signal
In other words, is the part of contained in the bands , , , …. For each , we have the estimate
by definition of the bands. These auxiliary signals play a key role in the analysis.
B.2. Proof of Theorem B.1
The proof of the theorem involves a sequence of lemmas. The first object is to establish an alternative that holds in each iteration. One possibility is that the approximation error is small, which means that the algorithm is effectively finished. Otherwise, the approximation error is dominated by the energy in the unidentified part of the signal, and the subsequent approximation error is a constant factor smaller.
For each iteration , at least one of the following alternatives holds. Either
Define as the merged support that occurs during iteration . The pruning step ensures that the support of the approximation at the end of the iteration is a subset of the merged support, so
At the end of the th iteration, the pruned vector becomes the next approximation , so the estimation and pruning results, Lemmas 4.4 and 4.5, together imply that
Note that the same relation holds trivially for iteration because and .
Suppose that there is an iteration where
We can introduce this bound directly into the inequality (B.6) to obtain the first conclusion (B.3).
Suppose on the contrary that in iteration we have
Introducing this relation into the inequality (B.6) leads quickly to the conclusion (B.4). We also have the chain of relations
Therefore, the sparse iteration invariant, Theorem 4.1 ensures that (B.5) holds. ∎
The next lemma contains the critical part of the argument. Under the second alternative in the previous lemma, we show that the algorithm completely identifies the support of the signal, and we bound the number of iterations required to do so.
Fix . Assume that (B.4) and (B.5) are in force for each iteration . Then .
First, we check that, once the norm of the residual is smaller than each element of a band, the components in that band persist in the support of each subsequent approximation. Define to be the set of nonempty bands, and fix a band . Suppose that, for some iteration , the norm of the residual satisfies
Then it must be the case that . If not, then some component appears in the residual: . This supposition implies that
an evident contradiction. Since (B.5) guarantees that the norm of the residual declines in each iteration, (B.7) ensures that the support of each subsequent approximation contains .
Next, we bound the number of iterations required to find the next nonempty band , given that we have already identified the bands where . Formally, assume that the support of the current approximation contains for each . In particular, the set of missing components . It follows from relation (B.4) that
We discover that the total number of iterations required to identify all the (nonempty) bands is at most
For each iteration , it follows that .
It remains to bound in terms of the profile of the signal. For convenience, we focus on a slightly different quantity. First, observe that . Using the geometric mean–arithmetic mean inequality, we discover that
To bound the remaining sum, we recall the relation (B.2). Then we invoke Jensen’s inequality and simplify the result.
The final equality holds because the total number of elements in all the bands equals the signal sparsity . Combining these bounds, we reach
Take logarithms, multiply by , and divide through by . We conclude that the required number of iterations is bounded as
Finally, we check that the algorithm produces a small approximation error within a reasonable number of iterations.
Abbreviate . Suppose that (B.3) never holds during the first iterations of the algorithm. Under this circumstance, Lemma B.2 implies that both (B.4) and (B.5) hold during each of these iterations. It follows from Lemma B.3 that the support of the th approximation equals the support of . Since is contained in the merged support , we see that the vector . Therefore, the estimation and pruning results, Lemmas 4.4 and 4.5, show that
It follows that there is an iteration where (B.3) is in force. Repeated applications of the iteration invariant, Theorem 4.1, allow us to conclude that
B.3. Proof of Theorem 2.2
Finally, we extend the sparse iteration count result to the general case.
Let be an arbitrary signal, and define . After at most
iterations, CoSaMP produces an approximation that satisfies
Let be a general signal, and let . Lemma 6.1 allows us to write the noisy vector of samples . The sparse iteration count result, Theorem B.1, states that after at most
iterations, the algorithm produces an approximation that satisfies
Apply the lower triangle inequality to the left-hand side. Then recall the estimate for the noise in Lemma 6.1, and simplify to reach
where is the unrecoverable energy. ∎
Invoke Theorem B.4. Recall that the estimate for the number of iterations is maximized with , which gives an upper bound of iterations, independent of the signal. ∎