Optimal Shrinkage of Singular Values
Matan Gavish, David L. Donoho
Introduction
For example, when choosing the square Frobenius loss, or mean square error (MSE)
where and are -by- matrices, we would like to find an estimator with small mean square error (MSE). The default technique for estimating a low rank matrix in noise is the Truncated SVD (TSVD) : write
where , assumed known, and . Being the best approximation of rank to the data in the least squares sense , and therefore the Maximum Likelihood estimator when has Gaussian entries, the TSVD is arguably as ubiquitous in science and engineering as linear regression .
The TSVD estimator shrinks to zero some of the data singular values, while leaving others untouched. More generally, for any specific choice of scalar nonlinearity , also known as a shrinker, there is a corresponding singular value shrinkage estimator given by
For scalar and vector denoising, univariate shrinkage rules have proved to be simple and practical denoising methods, with near-optimal performance guarantees under various performance measures . Shrinkage makes sense for singular values, too: presumably, the observed singular values are “inflated” by the noise, and applying a carefully chosen shrinkage function, one can obtain a good estimate of the original signal .
Indeed, there is a growing body of literature on matrix denoising by shrinkage of singular values, going back, to the best of our knowledge, to Owen and Perry and Shabalin and Nobel . Soft thresholding of singular values has been considered in , and hard thresholding in . In fact, and, very recently, considered shrinkers that are developed specifically for singular values, and measured their performance using Frobenius loss.
These developments suggest the following question: Is there a simple, natural shrinkage nonlinearity for singular values? If there is a simple answer to this question, surely it depends on the loss function and on specific assumptions on the signal matrix .
In we have performed a narrow investigation that focused on hard and soft thresholding of singular values under the Frobenius loss (1). We adopted a simple asymptotic framework that models the situation where is low-rank, originally proposed in and inspired by Johnstone’s Spiked Covariance Model . In this framework, the signal matrix dimensions and both to infinity, such that their ratio converges to an asymptotic aspect ratio: , with , while the column span of the signal matrix remains fixed. Building on a recent probabilistic analysis of this framework we have discovered that, in this framework, there is an asymptotically unique admissible threshold for singular values, in the sense that it offers equal or better asymptotic MSE to that of any other threshold choice, no matter which specific low-rank model may be in force.
The main discovery reported here is that this phenomenon is in fact much more general: in this asymptotic framework, which models low-rank matrices observed in white noise, for each of a variety of loss functions, there exists a single asymptotically unique admissible shrinkage nonlinearity, in the sense that it offers equal or better asymptotic loss than any other shrinkage nonlinearity, at each specific low-rank model that can occur. In other words, once the loss function has been decided, in a definite asymptotic sense, there is a single rational choice of shrinkage nonlinearity.
In this paper, we develop a general method for finding the optimal shrinkage nonlinearity for a variety of loss functions. We explicitly work out the optimal shrinkage formula for the Frobenius norm loss, the nuclear norm loss, and the operator norm loss. Let us denote the Frobenius, Operator and Nuclear matrix norms by , and , respectively. If the singular values of the matrix are , then these losses are given by
As we will see, the optimal nonlinearity for the Frobenius norm loss (4), in a natural noise scaling, is
In the asymptotically square case this reduces to
Optimal shrinker for Operator norm loss.
The operator norm loss (5) for matrix estimation has mostly been studied in the context of covariance estimation . Let us define
As we will see, the optimal nonlinearity for operator loss is just
Optimal Shrinkage for Nuclear norm loss.
The Nuclear norm loss (6) has also been proposed for matrix estimation. See and references within for discussion of the Nuclear norm and, more generally, of Schatten- norms as losses for matrix estimation.
As we will see, the optimal nonlinearity for nuclear norm loss is
where is given in (8). Note that the formulas above are calibrated for the natural noise level ; see Section 8.1 below for usage in known noise level or unknown noise level. In the code supplement for this paper we offer a Matlab implementation of each of these shrinkers in known or unknown noise.
Figure 2 shows the three nonlinearities (7), (9) and (10). As we will see, these nonlinearities, and many others that are not calculated explicitly in this paper, flow from a single general method for calculating optimal nonlinearities, developed here.
1 Optimal shrinkers vs. hard and soft thresholding
The optimal shrinkers presented have simple, closed-form formulas. Yet there are shrinkage rules that are simpler still, namely, hard and soft thresholding. These nonlinearities are extremely popular for scalar and vector denoising, due to their simplicity and various optimality properties . Recall that for ,
It is worthwhile to ask how our optimal shrinkers differ, in shape and performance, from the popular hard and soft thresholding. To make a comparison, one should first decide how to tune the thresholds and . In our asymtotic framework, fortunately, there is a decisive answer to the tuning question: in previous work , we have restricted our attention to hard and soft thresholding under the Frobenius loss (4). It was shown that there exist optimal values and , which are unique admissible in the sense that they offer asymptotic performance equal to or better than the performance of any other thresold. The optimal thresholds are given by
where again is the limiting aspect ratio, .
Consider, for example, the square matrix case . Under the MSE loss, the optimal hard threshold is then , and the optimal soft threshold is . Figure 2 shows the nonlinearities and against our optimal shrinkers (7), (9) and (10). In high SNR () the optimal shrinkers agree with hard thresholding and neither performs any shrinkage, while soft thresholding shrinks even strong signals. As shown in , the worst-case asymptotic MSE over a rank- matrix observed in noise level is for our optimal shrinker (7), for the optimally tuned hard thresholding nonlinearity and for the optimally tuned soft thresholding nonlinearity . Hard thresholding is worse in intermediate SNR levels; Soft thresholding is worse in strong SNR. For further discussion on this phenomenon, which stems from the random rotation of the data singular vectors due to noise, see . We conclude that optimal shrinkage, developed in this paper, offers significant performance improvement over hard and soft thresholding - even when they are optimally tuned.
Preliminaries
In the general model , the noise level in the singular values of is . Instead of specifying a different shrinkage rule that depends on the matrix size , we calibrate our shrinkage rules to the “natural” model . In this convention, shrinkage rules stay the same for every value of , and we conveniently abuse notation by writing as in (3) for any , keeping and implicit. To apply any denoiser below to data from the general model , use the denoiser
Throughout the text, we use to denote singular value shrinker calibrated for noise level . In Section 8.1 below we provide a recipe for applying any denoiser calibrated for noise level for data in the presence of unknown noise level.
2 Asymptotic framework and problem statement
In this paper, we consider a sequence of increasingly larger denoising problems
with , satisfying the following assumptions:
Invariant white noise: The entries of are i.i.d samples from a distribution with zero mean, unit variance and finite fourth moment. To simplify the formal statement of our results, we assume that this distribution is orthogonally invariant in the sense that follows the same distribution as , for every orthogonal and . This is the case, for example, when the entries of are Gaussian. In Section 8.2 we revisit this restriction and discuss general (not necessarily invariant) white noise.
Asymptotic aspect ratio : The sequence is such that . To simplify our formulas, we assume that .
Note that while the signal rank and nonzero signal singular values are shared by all matrices , the signal left and right singular vectors and are unknown and arbitrary. We also remark that the assumption, whereby the signal singular values are non-degenerate (, ), is not necessary for our results to hold, yet it simplifies the analysis considerably.
Our results imply that the asymptotic loss exists and is well-defined, as a function of the signal singular values , for a large class of nonlinearities.
Optimal Shrinker. Let be a loss family. If a shrinker has an asymptotic loss that satisfies
3 Our contribution
At first glance, it seems too much to hope that optimal shrinkers in the sense of Definition 2 even exist. Indeed, existence of an optimal shrinker for a loss family implies that, asymptotically, the decision-theoretic picture is extremely simple and actionable: from the asymptotic loss perspective, there is a single rational choice for shrinker.
In our current terminology, Shabalin and Nobel have effectively shown that an optimal shrinker exists for Frobenius loss. The estimator they derive can be shown to be equivalent to the optimal shrinker (7), yet was given in a more complicated form. (In Section 4 we visit the special case of Frobenius loss in detail, and prove that (7) is the optimal shrinker.)
Our contribution in this paper is as follows.
We rigorously establish the existence of an optimal shrinker for a variety of loss families, including the popular Frobenius, operator and nuclear norm losses.
We provide a framework for finding the optimal shrinkers for a variety of loss families including these popular losses. As discussed in Section 8.1, our framework can be applied whether the noise level is known or unknown.
We use our framework to find simple, explicit formulas for the optimal shrinkers for Frobenius, operator and nuclear norm losses, and show that it allows simple numerical evaluation of optimal shrinkers when a closed-form formula for the optimal shrinker is unavailable.
In the related problem of covariance estimation in the Spiked Covariance Model, in collaboration with I. Johnstone we identified a similar phenomenon, namely, existence of optimal eigenvalue shrinkers for covariance estimation .
The Asymptotic Picture
In the “null case” , the empirical distribution of the singular values of famously converges as to the generalized quarter-circle distribution , whose density is
This distribution is compactly supported on , with
Moreover, in this null case we have , see . We say that the singular values of form a (generalized) quarter circle bulk and call the bulk edge.
Expanding seminal results of and many other authors, Benaych-Georges and Nadakuditi have provided a thorough analysis of a collection of models, which includes the model (12) as a special case. In this section we summarize some of their results regarding asymptotic behaviour of the model (12), which are relevant to singular value shrinkage.
Additional notation is required to state these facts formally. We rewrite the sequence of signal matrices in our asymptotic framework (13) as
Asymptotic location of the top data singular values. For ,
Asymptotic angle between signal and data singular vectors. Let and assume that is non-degenerate, namely, the value appears only once in . Then
If however , then we have
We also note the following fact regarding the data singular values [25, proof of Theorem 2.9]:
Let be fixed. Then .
Optimal Shrinker for Frobenius Loss
As an introduction to the more general framework developed below, we first examine the Frobenius loss case, following the work of Shabalin and Nobel . Using Definition 1, let be the Frobenius loss family, namely is given by (4).
Directly expanding the Frobenius matrix norm, we obtain:
Frobenius loss of singular value shrinkage. For any shrinker , we have
This implies a lower bound on Frobenius loss of any singular value shrinker:
For any shrinker , we have
Combining Corollary 1, Lemma 1 and Lemma 2 we obtain a lower bound for the asymptotic Frobenius loss (see ):
For any continuous shrinker , we have
The notation in (26) will be made apparent below, see (48).
2 Optimal shrinker matching the lower bound
The singular value shrinker , for which minimizes the asymptotic lower bound, thus becomes a natural candidate for the optimal shrinker for Frobenius loss. Indeed, by definition, for the limits of (23) and (24) are the smallest possible. It remains to show that the limit of (25) is the smallest possible.
It is clear from (25) that a necessary condition for a shrinker to be successful, let alone optimal, is that it must set to zero data eigenvalues that do not correspond to signal. With (25) in mind, we should only consider shrinkers for which for any . The following is a sufficient condition for a shrinker to achieve the lowest limit possible in the term (25), namely, for this term to converge to zero.
Assume that a continuous shrinker satisfies whenever for some fixed . We say that is a Conservative shrinker.
By Lemma 1 and Lemma 2, it is clear that conservative shrinkers set to zero all data singular values which originate from pure noise (), as well as all data singular values which are “engulfed” in the noise bulk, rendering their corresponding singular vectors useless (). Conservative shrinkers are so called since they leave a (possibly infinitesimally small) safety margin . They enjoy the following key property:
Let be a conservative shrinker. Then
By Lemma 3 we have . Let be the (random) index such that for all . Then for all and all we have , hence . The desired almost sure convergence follows. ∎
Ironically, careful inspection of the candidate (7) reveals that it is continuous yet not strictly conservative: it only satisfies for , leaving no margin above the bulk edge . In fact, building on Lipschitz continuity of the Frobenius loss itself, it can be shown that Lemma 5 remains true for the shrinker (7) as well ; this is however outside our present scope. Consequently, the asymptotic loss of (7) matches the lower bound from Corollary 2, and is lower than the asymptotic loss of any other continuous shrinker, for any low-rank model .
A Framework for Finding Optimal Shrinkers
With the previous section in mind, our main result may be summarized as follows: the basic ingredients that enabled us to find the optimal shrinker for Frobenius loss allow us to find the optimal shrinker for each of a variety of loss families. For these loss families, an optimal shrinker exists and is given by a simple formula. To avoid some technical nuisance, we focus on finding the optimal shrinker among conservative shrinkers.
To get started, let us describe the loss families to which our method applies.
Orthogonally invariant loss. A loss is orthogonally invariant if for all we have , for any orthogonal and .
Decomposable loss family. Let and let and . Assume that there are matrices , , such that
in the sense that and are block-diagonal with blocks and , respectively. A loss family is sum-decomposable if, for all and with block diagonal structure as above,
As primary examples, we consider loss families defined in Section 1: The Frobenius norm loss , the operator norm loss and the nuclear norm loss . It is easy to check that (i) each of these losses are orthogonally invariant, and (ii) the families and are sum-decomposable, while the family is max-decomposable. Our framework for finding optimal shrinkers can now be stated as follows.
Characterization of the optimal singular value shrinker. Let
and suppose that for any there exists a unique minimizer
such that is a conservative shrinker on . Further suppose that there exists a point such that
where is defined in Eq. (8). Then for any conservative shrinker , the asymptotic losses and exist, and
1 Discussion
Before we proceed to prove Theorem 1, we review the information it encodes about the problem at hand and its operational meaning. Theorem 1 is based on a few simple observations:
First, if is a sum– (resp. max–) decomposable family of orthogonally invariant losses, and if is a conservative shrinker, then the asymptotic loss at can be written as a sum (resp. a maximum) over terms. These terms have identical functional form. When , these terms have the form , and when , these terms have the form (resp. ). As a result, one finds that the zero shrinker is necessarily optimal for . For , one just needs to minimize the loss of a specific -by- matrix, namely the function from (29), to obtain the shrinker of (30).
Second, the asymptotic loss curve necessarily crosses the asymptotic loss curve of the zero shrinker at a point we will denote by , with .
Finally, by concatenating the zero shrinker and the shrinker precisely at the point where their asymptotic losses cross, one obtains a shrinker which is continuous () or possibly discontinuous (). However, this shrinker always has a well-defined asymptotic loss. This loss dominates the asymptotic loss of any conservative shrinker.
For some loss families , it is possible to find an explicit formula for the optimal shrinker using the following steps:
Write down an explicit expression for the function from (29).
Explicitly solve for the minimizer from (30).
Write down an explicit expression for the minimum .
Solve (31) for the crossing point .
Compose with the transformation from (8) to obtain an explicit form of the optimal shrinker from (32).
In Sections 6 and 7 we offer examples of this process: in Section 6 we follow it analytically and derive simple, explicit formulae of the optimal shrinkers for the Frobenius, operator and nuclear norm losses. In Section 7 we follow it numerically and compute the optimal shrinker for any Schatten- norm loss.
In the remainder of this section we describe a sequence of constructions and lemmas leading to the proof of Theorem 1.
2 Simultaneous Block Diagonalization
Let us start by considering a fixed signal matrix and noise matrix, without placing them in a sequence. To allow a gentle exposition of the main ideas, we initially make two simplifying assumptions: first, that , namely that is rank-, and second, that shrinks to zero all but the first singular values of , namely, , . Let be a signal matrix and let be a corresponding data matrix. Denote their SVD by
Thus, if is a sum- or max-decomposable family of orthogonally invariant functions, we have
A similar argument gives a similar statement for rank- matrix with non-degenerate singular values:
where is a sequence of -by- matrices such that
The lemma follows by permuting the coordinates, and then using the invariance and the decomposability properties of the loss family .
3 Deterministic formula for the asymptotic loss
In Section 5.2 we analyzed a single matrix and shown that, for fixed and , the loss decomposes to “atomic” units of the form
Let us now return to the sequence model and find the limiting value of these “atomic” units as . This will lead to a simple formula for the asymptotic loss .
for . Combining Lemma 7, Lemma 1 and Lemma 2 we obtain:
Let be a matrix sequence in our asymptotic framework with signal singular values . Assume that is continuous at for some fixed . If then
where is given by (28), while if then
As a result, we now obtain the asymptotic loss as a deterministic function of the nonzero signal singular values . Observe that by Lemma 3, if is a conservative shrinker, then eventually for all . Therefore the assumption for , required for Lemma 7, is satisfied eventually. Combining Lemma 7 and Lemma 8, we obtain
A formula for the asymptotic loss of a conservative shrinker. Assume that is a sum- or max- decomposable family of orthogonally invariant losses. Extend the definition of from (28) by setting for . If is a conservative shrinker, then
The final step toward the proof of Theorem 1 involves the case when the shrinker is given as a special concatenation of two conservative shrinkers. Even if the two parts of do not match, forming a discontinuity point in which the limits from the left and from the right disagree, we may still have a formula for the asymptotic loss – provided that the loss functions match.
Assume that there exist a point and two shrinkers, and , such that
We say that the asymptotic loss functions of and cross at .
A formula for the asymptotic loss of a concatenation of two conservative shrinkers. Assume that is a sum- or max- decomposable family of orthogonally invariant losses. Extend the definition of from (28) by setting for . Assume that there exist two shrinkers, and , whose asymptotic loss functions cross at some point . Define
Then exists and is given by (41) if is sum-decomposable, or (42) if is max-decomposable.
Consider the shrinker . By Lemma 8, dominates any other conservative shrinker when . By assumption, there exists a point such that also dominates any conservative shrinker on , and such that dominates any other conservative shrinker on . Finally, by assumption, the asymptotic loss functions of and cross at . By Lemma 10, the concatenated shrinker dominates any conservative shrinker on . ∎
Finding Optimal Shrinkers Analytically: Frobenius, Operator & Nuclear Losses
Theorem 1 provides a general recipe for finding optimal singular value shrinkers, which was provided in Section 5.1. To see it in action, we turn to our three primary examples, namely, the Frobenius norm loss, the operator norm loss and the nuclear norm loss. In this section we find explicit formulas for the optimal singular value shrinkers in each of these losses.
We will need the following lemmas regarding -by- matrices (see ):
The eigenvalues of any -by- matrix with trace and determinant are given by
These are the roots of the characteristic polynomial of . ∎
Let be a -by- matrix with singular values . Define , and . Assume that depends on a parameter and let , and denote the derivative of these quantities w.r.t the parameter . Then
By Lemma 11 we have and therefore
Differentiating and expanding we obtain the relation
and the singular values of are given by
Theorem 1 allows us to rediscover the optimal shrinker for Frobenius norm loss, which was derived from first principles in Section 4. To this end, observe that by (45) we have
2 Operator norm loss
The optimal shrinker for operator norm loss simply shrinks the data singular value back to the ”original” location of its corresponding signal singular value.
3 Nuclear norm loss
we find that only zero of occurs when , namely at
recovering the optimal shrinker (9). Inspection of (9) reveals that this optimal shrinker is in fact a conservative shrinker.
Finding Optimal Shrinkers Numerically: Schatten norm losses
In Section 6 we have followed the recipe discussed in Section 5.1 analytically, and explicitly solved for the optimal shrinkers of the Frobenius, Operator and Nuclear norm losses. In some cases, the optimization problem (30) does not admit a closed-form solution, and in other cases, the closed-form solution is unreasonably complicated. For such cases, we note that it is extremely easy to solve the problem (30) numerically, as it only involves minimization of a univariate function that depends on the two eigenvalues of a -by- matrix. To demonstrate that our recipe for finding optimal shrinkers can be easily executed numerically, rather than analytically, in this section we find the optimal shrinker for any Schatten- norm loss numericallyWe thank the anonymous referee for this helpful suggestion., for any value .
where the matrix size has been suppressed in the notation for simplicity.
Schatten- norms and quasi-norms have been considered in the literature for matrix estimation: see and references therein. (The case is of special interest in matrix completion problems due to its low-rank inducing behavior.) So far in this paper we have carefully studied three special cases: , and . Observe that for any , the Schatten- loss is orthogonally invariant and sum-decomposable, hence amenable to the our analysis.
While it is in principle possible to derive the optimal shrinker for the Schatten- loss analytically using Lemma 12 and Lemma 13, the result would be a very complicated expression. Instead, we follow the recipe of Section 5.1 numerically: We select points of interest in which we would like to evaluate the optimal shrinker . We define where is the transformation from (8). For each of the values we form a symbolic expression for the function from (29), and minimize it numerically to obtain the minimizer from (30). The desired value of the optimal shrinker is then given by .
Figure 4 and Figure 5 show the optimal shrinker discovered numerically for the Schatten- loss, for a few values of . Figure 4 focuses on the case , where the Schatten- loss is given by a norm. Note the familiar shapes for the values (the latter is indistinguishable from the case , namely the operator norm). It seems that the optimal shrinker for all cases are continuous, and that the discontinuity found analytically for the case forms only in the limit . Figure 5 focuses on the case , where the Schatten- loss is given by a quasi-norm. The numerical findings are fascinating and prompt further research: for instance, while the optimal shrinker for is continuous, at an unknown value the shrinkers become discontinuous, with a discontinuity resembling that of the case. Furthermore, for small values of , the optimal shrinkers are very similar to the hard thresholding nonlinearities, with a “hard threshold” that depends on and on the aspect ratio . In other words, in these cases, the optimal shrinker and the optimal hard thresholding nonlinearity seem to approximately coincide. It also seems that as , the optimal shrinkers tend to the zero shrinker. All these phenomena can be studied and evaluated precisely in further research using the framework developed in this paper.
Extensions
Our main results have been formulated and calibrated specifically for the model , where the distribution of the noise matrix is orthogonally invariant. In this section we extend our main results to include the model , and consider:
The setting where is either known but does not necessarily equal , or is altogether unknown.
The setting where the noise matrix has i.i.d entries, but its distribution is not necessarily orthogonally invariant.
Consider an asymptotic framework slightly more general than the one in Section 2.2, in which , with and as defined there. In this section we keep the loss family and the asymptotic aspect ratio fixed and implicit. We extend Definition 1 and write
When the noise level is known, Eq. (11) allows us to re-calibrate any nonlinearity , originally calibrated for noise level , to a different noise level. For a nonlinearity , write
If is an optimal shrinker for , namely,
When the noise level is unknown, we are required to estimate it. See and references therein for existing literature on this estimation problem. The method below has been proposed in .
Consider the following robust estimator for the parameter in the model :
where is a median singular value of and is the median of the Marcenko-Pastur distribution, namely, the unique solution in to the equation
where . Note that the median is not available analytically but can easily be obtained by numerical quadrature.
Let . For the sequence in our asymptotic framework,
Let be a sequence in our asymptotic framework and let be an optimal shrinker calibrated for . Then the random sequence of shrinkers converges to the optimal shrinker :
Consequently, asymptotically achieves optimal performance:
In practice, for denoising a matrix , assumed to satisfy , where is low-rank and has i.i.d entries, we have the following approximately optimal singular value shrinkage estimator:
when is unknown. Here, is an optimal shrinker with respect to desired loss family in the natural scaling.
2 General white noise
Our results were formally stated for the sequence of models of the form , where is a non-random matrix to be estimated, and the entries of are i.i.d samples from a distribution that is orthogonally invariant (in the sense that the matrix follows the same distribution as , for any orthogonal and ). While Gaussian noise is orthogonally invariant, many common distributions, which one could consider to model white observation noise, are not.
The singular values of a signal matrix constitute a very widely used measure of the complexity, or information content, of . In particular, they capture its rank. One attractive feature of the framework we adopt is that the loss only depends on the signal matrix through its nonzero singular values . This allows the loss to be directly related to the complexity of the signal . If the distribution of is not orthogonally invariant, the loss no longer enjoys this property. This point is discussed extensively in .
In general white noise, which is not necessarily orthogonally invariant, one can still allow the loss to depend on only through its singular values by placing a prior distribution on and shifting to a model where it is a random, instead of a fixed, matrix. Specifically, consider an alternative asymptotic framework to the one in Section 2.2, in which the sequence denoising problems satisfies the following assumptions:
General white noise: The entries of are i.i.d samples from a distribution with zero mean, unit variance and finite fourth moment.
is a singular value decomposition of , where and are uniformly distributed random orthogonal matrices. Formally, and are sampled from the Haar distribution on the -by- and -by- orthogonal group, respectively.
Asymptotic aspect ratio : The sequence is such that .
The second assumption above implies that is a “generic” choice of matrix with nonzero singular values , or equivalently, a generic choice of coordinate systems in which the linear operator corresponding to is expressed.
The results of , which we have used, hold in this case as well. It follows that Lemma 1 and Lemma 2, and consequently all our main results, hold under this alternative framework. In short, in general white noise, all our results hold if one is willing to only specify the signal singular values, rather than the signal matrix, and consider a “generic” signal matrix with these singular values.
Simulation
Our results are exact only in the limit as the matrix size grows to infinity. To study the accuracy of the asymptotic loss on finite matrices, and to compare the optimal shrinker with optimally tuned hard and soft thresholding, we conducted two simulation studies.
We studied -by- matrices of the form . The signal matrix had exactly identical nonzero singular values. For brevity, we focused on the asymptotic Frobenius loss. Figure 6 compares the case with the case . Figure 7 compares the case with the case . In each case we show three different noise distributions: the entries of the noise matrix are i.i.d draws from a Gaussian distribution (thin tails), uniform distribution (no tails) and Student-t with 6 degrees of freedom (fat tails). We overlay the predicted asymptotic loss from Eq. (41) and the observed loss for different values of the signal singular value . The observed loss was obtained by averaging 50 Monte Carlo iterations. The shrinkers shown are the optimal shrinker for Frobenius loss from Eq. (7), and the optimally tuned hard and soft thresholds as described in Section 1.1. Simulations show qualitatively that our results are useful already for relatively small matrices, and that the low-rank assumption remains valid when , say.
Comparing optimal shrinkers with a brute-force calculation of the optimal shrinkage.
We studied -by- matrices of the form . The signal matrix was rank- and the noise matrix was i.i.d Gaussian. For each of the three losses Frobenius, nuclear, operator , we calculated the optimal shrinkers using brute-force by scanning over a grid of possible values and finding the value that minimized the empirical loss as calculated by averaging over monte carlo draws. Figure 8 overlays the shrinkage calculated by brute-force over the asymptotically optimal shrinkers calculated for the three losses in Section 6. Note the agreement with the asymptotic formulae already for and rank fraction of .
Conclusion
We have presented a general framework for finding optimal shrinkers, either analytically or numerically, for a variety of loss functions.
Note that our general method, summarized in Theorem 1, is guaranteed to find a shrinker that is asymptotically unique admissible, or optimal, among conservative shrinkers (in the sense of Definition 3). This is an artifact of our proof method, and it is best to think of Theorem 1 as a formal machine for finding “good” shrinkers, rather than a definite summary of their optimality properties. In fact, for all three loss functions considered in this paper, the optimal shrinkers we found dominate, in asymptotic loss, a much wider class of shrinkers. In particular, for all three losses, these optimal shrinkers dominate the class of continuous shrinkers with the property that for all , namely, shrinkers that truncate data singular values below the bulk edge . In some sense, this is the class of “reasonable” shrinkers.
The challenging issue is how to control the manner in which “null” singular values () affect the loss function. When the noise distribution is Gaussian, is possible to prove an analogy of Lemma 5, showing that the cumulative effect of these “null” singular values is negligible. To formally appeal to this fact, we are required to consider only loss functions that enjoy a Lipschitz regularity property (on top of being decomposable and orthogonally invariant). Then one can show that the optimal shrinkers characterized in Theorem 1 dominate all “reasonable” shrinkers as above. See for more details.
Finally, we remark that closed-form solutions for the optimal shrinkers for Schatten- losses, and a generalization of our method to include Ky-Fan norms, both remain interesting problems for further study.
Reproducible Research
In the code supplement we offer a Matlab software library that includes:
A function that calculates the optimal singular value shrinkage w.r.t the Frobenius, operator and nuclear norm losses, both in known or unknown noise level.
Scripts that generate each of the figures in this paper.
Notably, the script which generates Figure 4 and Figure 5 includes an example of numerical evaluation of optimal shrinkers.
Acknowledgements
We thank Iain Johnstone for helpful comments. We also thank Amit Singer and Boaz Nadler for discussions stimulating this work, and Santiago Velasco-Forero for pointing out an error in an earlier version of the manuscript. We thank the anonymous referees for their helpful suggestions. This work was partially supported by NSF DMS-0906812 (ARRA). MG was partially supported by a William R. and Sara Hart Kimball Stanford Graduate Fellowship.