Bilinear Generalized Approximate Message Passing
Jason T. Parker, Philip Schniter, Volkan Cevher
I Introduction
and we likewise assume that the likelihood function of is known and separable, i.e.,
Recently, various special cases of this problem have gained the intense interest of the research community, e.g.,
Matrix Completion: In this problem, one observes a few (possibly noise-corrupted) entries of a low-rank matrix and the goal is to infer the missing entries. In our framework, would represent the complete low-rank matrix (with tall and wide ) and the observation mechanism, which would be (partially) informative about at the observed entries and non-informative at the missing entries .
Robust PCA: Here, the objective is to recover a low-rank matrix (or its principal components) observed in the presence of noise and sparse outliers. In our framework, could again represent the low-rank matrix, and the noise-and-outlier-corrupted observation mechanism. Alternatively, could also capture the outliers, as described in the sequel.
Dictionary Learning: Here, the objective is to learn a dictionary for which there exists a sparse data representation such that closely matches the observed data . In our framework, would be chosen to induce sparsity, would represent the noiseless observations, and would model the (possibly noisy) observation mechanism.
In the context of CS, the AMP framework yields algorithms with remarkable properties: i) solution trajectories that, in the large-system limit (i.e., as with fixed, under iid sub-Gaussian ) are governed by a state-evolution whose fixed points—when unique—yield the true posterior means and ii) a low implementation complexity (i.e., dominated by one multiplication with and per iteration, and relatively few iterations) . Thus, a natural question is whether the AMP framework can be successfully applied to the generalized bilinear problem described earlier.
In this manuscript, we propose an AMP-based approach to generalized bilinear inference that we henceforth refer to as Bilinear Generalized AMP (BiG-AMP), and we uncover special cases under which the general approach can be simplified. In addition, we propose an adaptive damping mechanism, an expectation-maximization (EM)-based method of tuning the parameters of , , and (in case they are unknown), and methods to select the rank (in case it is unknown). In the case that , , and/or are completely unknown, they can be modeled as Gaussian-mixtures with mean/variance/weight parameters learned via EM . Finally, we present a detailed numerical investigation of BiG-AMP applied to matrix completion, robust PCA, and dictionary learning. Our empirical results show that BiG-AMP yields an excellent combination of estimation accuracy and runtime when compared to existing state-of-the-art algorithms for each application.
Although the AMP methodology is itself restricted to separable known pdfs (1)-(3), the results of Part II suggest that this limitation is not an issue for many practical problems of interest. However, in problems where the separability assumption is too constraining, it can be relaxed through the use of hidden (coupling) variables, as originally proposed in the context of “turbo-AMP” and applied to BiG-AMP in . Due to space limitations, however, this approach will not be discussed here. Finally, although we focus on real-valued random variables, all of the methodology described in this work can be easily extended to circularly symmetric complex-valued random variables.
We now discuss related work. One possibility of applying AMP methods to matrix completion was suggested by Montanari in [31, Sec. 9.7.3] but the approach described there differs from BiG-AMP in that it was i) constructed from a factor graph with vector-valued variables and ii) restricted to the (incomplete) additive white Gaussian noise (AWGN) observation model. Moreover, no concrete algorithm nor performance evaluation was reported. Since we first reported on BiG-AMP in , Rangan and Fletcher proposed an AMP-based approach for the estimation of rank-one matrices from AWGN-corrupted observations, and showed that it can be characterized by a state evolution in the large-system limit. More recently, Krzakala, Mézard, and Zdeborová proposed an AMP-based approach to blind calibration and dictionary learning in AWGN that bears similarity to a special case of BiG-AMP, and derived a state-evolution using the cavity method. Their method, however, was not numerically successful in solving dictionary learning problems . The BiG-AMP algorithm that we derive here is a generalization of those in in that it handles generalized bilinear observations rather than AWGN-corrupted ones. Moreover, our work is the first to detail adaptive damping, parameter tuning, and rank-selection mechanisms for AMP based bilinear inference, and it is the first to present an in-depth numerical investigation involving both synthetic and real-world datasets. An application/extension of the BiG-AMP algorithm described here to hyperspectral unmixing (an instance of non-negative matrix factorization) was recently proposed in .
The remainder of the document is organized as follows. Section II derives the BiG-AMP algorithm, and Sec. III presents several special-case simplifications of BiG-AMP. Section IV describes the adaptive damping mechanism, and Sec. V the EM-based tuning of prior parameters and selection of rank . Application-specific issues and numerical results demonstrating the efficacy of our approach for matrix completion, robust PCA, and dictionary learning, are discussed in Sections VI–VIII, respectively, and concluding remarks are offered in Sec. IX.
II Bilinear Generalized AMP
For the statistical model (1)-(3), the posterior distribution is
where (4) employs Bayes’ rule and denotes equality up to a constant scale factor.
The posterior distribution can be represented with a factor graph, as depicted in Fig. 1. There, the factors of from (6) are represented by “factor nodes” that appear as black boxes, and the random variables are represented by “variable nodes” that appear as white circles. Each variable node is connected to every factor node in which that variable appears. The observed data are treated as parameters of the factor nodes in the middle of the graph, and not as random variables. The structure of Fig. 1 becomes intuitive when recalling that implies .
II-B Loopy Belief Propagation
In this work, we aim to compute minimum mean-squared error (MMSE) estimates of and , i.e., the meansAnother worthwhile objective could be to compute the joint MAP estimate ; we leave this to future work. of the marginal posteriors and , for all pairs and . Although exact computation of these quantities is generally prohibitive, they can be efficiently approximated using loopy belief propagation (LBP) .
In LBP, beliefs about the random variables (in the form of pdfs or log pdfs) are propagated among the nodes of the factor graph until they converge. The standard way to compute these beliefs, known as the sum-product algorithm (SPA) , stipulates that the belief emitted by a variable node along a given edge of the graph is computed as the product of the incoming beliefs from all other edges, whereas the belief emitted by a factor node along a given edge is computed as the integral of the product of the factor associated with that node and the incoming beliefs on all other edges. The product of all beliefs impinging on a given variable node yields the posterior pdf for that variable. In cases where the factor graph has no loops, exact marginal posteriors result from two (i.e., forward and backward) passes of the SPA . For loopy factor graphs, exact inference is in general NP hard and so LBP does not guarantee correct posteriors. That said, LBP has shown state-of-the-art performance in many applications, such as inference on Markov random fields , turbo decoding , LDPC decoding , multiuser detection , and compressive sensing .
In high-dimensional inference problems, exact implementation of the SPA is impractical, motivating approximations of the SPA. A notable example is the generalized approximate message passing (GAMP) algorithm, developed in to solve the generalized CS problem, which exploits the “blessings of dimensionality” that arise when is a sufficiently large and dense and which was rigorously analyzed in . In the sequel, we derive an algorithm for the generalized bilinear inference BiG-AMP algorithm that employs GAMP-like approximations to the SPA on the factor graph in Fig. 1. As we shall see, the approximations are primarily based on central-limit-theorem (CLT) and Taylor-series arguments.
II-C Sum-product Algorithm
Applying the SPA to the factor graph in Fig. 1, we arrive at the following update rules for the four messages in Table I.
where const is an arbitrary constant (w.r.t in (7) and (8), and w.r.t in (9) and (10)). In the sequel, we denote the mean and variance of the pdf by and , respectively, and we denote the mean and variance of by and . For the log-posteriors, the SPA implies
and we denote the mean and variance of by and , and the mean and variance of by and .
II-D Approximated Factor-to-Variable Messages
We now apply AMP approximations to the SPA updates (7)-(12). As we shall see, the approximations are based primarily on central-limit-theorem (CLT) and Taylor-series arguments that become exact in the large-system limit, where with fixed ratios and . (Due to the use of finite in practice, we still regard them as approximations.) In particular, our derivation will neglect terms that vanish relative to others as , which requires that we establish certain scaling conventions. First, we assume w.l.o.gOther scalings on , , and could be used as long as they are consistent with the relationship . that and scale as , i.e., that the magnitudes of these elements do not change as . In this case, the relationship implies that must scale as . These scalings are assumed to hold for random variables , , and distributed according to the prior pdfs, according to the pdfs corresponding to the SPA messages (7)-(10), and according to the pdfs corresponding to the SPA posterior approximations (11)-(12). These assumptions lead straightforwardly to the scalings of , , , , , , , , , and specified in Table II. Furthermore, because and differ by only one term out of , it is reasonable to assume that the corresponding difference in means and variances are both , which then implies that is also . Similarly, because and differ by only one term out of , where and are , it is reasonable to assume that is and that both and are . The remaining entries in Table II will be explained below.
We start by approximating the message . Expanding (7), we find
For large , the CLT motivates the treatment of , the random variable associated with the identified in (13), conditioned on , as Gaussian and thus completely characterized by a (conditional) mean and variance. Defining the zero-mean r.v.s and , where and , we can write
after which it is straightforward to see that
With this conditional-Gaussian approximation, (13) becomes
Unlike the original SPA message (7), the approximation (20) requires only a single integration. Still, additional simplifications are possible. First, notice that and differ from the corresponding -invariant quantities
by one term. In the sequel, we will assume that and are since these quantities can be recognized as the mean and variance, respectively, of an estimate of , which is . Writing the term in (20) using (22)-(23),
where in (25) we used the facts that and are both .
Rewriting (20) using a Taylor series expansion in about the point , we get
where and are the first two derivatives of w.r.t its first argument and is the first derivative w.r.t its second argument. Note that, in (26) and elsewhere, the higher-order terms in the Taylor’s expansion are written solely in terms of their scaling dependence on , which is what will eventually allow us to neglect these terms (in the large-system limit).
We now approximate (26) by dropping terms that vanish, relative to the second-to-last term in (26), as . Since this second-to-last term is due to the scalings of , , and , we drop terms that are of order , such as the final term. We also replace with , and with , since in both cases the difference is . Finally, we drop the terms inside the derivatives, which can be justified by taking a Taylor series expansion of these derivatives with respect to the perturbations and verifying that the higher-order terms in this latter expansion are . All of these approximations are analogous to those made in previous AMP derivations, e.g., , , and .
Applying these approximations to (26) and absorbing -invariant terms into the const term, we obtain
Note that (27) is essentially a Gaussian approximation to the pdf .
computed according to the (conditional) pdf
where here C=\int_{z}p_{\textsf{y}_{ml}|\textsf{z}_{ml}}(y_{ml}\,|\,z)\mathcal{N}\big{(}z;\widehat{p}_{ml}(t),\nu^{p}_{ml}(t)\big{)}. In fact, (35) is BiG-AMP’s iteration- approximation to the true marginal posterior . We note that (35) can also be interpreted as the (exact) posterior pdf for given the likelihood from (3) and the prior \textsf{z}_{ml}\sim\mathcal{N}\big{(}\widehat{p}_{ml}(t),\nu^{p}_{ml}(t)\big{)} that is implicitly assumed by iteration- BiG-AMP.
Since , the derivation of the BiG-AMP approximation of closely follows the derivation for . In particular, it starts with (similar to (13))
where again the CLT motivates the treatment of , conditioned on , as Gaussian. Eventually we arrive at the Taylor-series approximation (similar to (27))
II-E Approximated Variable-to-Factor Messages
We now turn to approximating the messages flowing from the variable nodes to the factor nodes. Starting with (8) and plugging in (27) we obtain
Since and are , and recalling and are , we take to be . Meanwhile, since is an estimate of , we reason that it is .
The mean and variance of the pdf associated with the approximation in (40) are
where here C=\int_{x}p_{\textsf{x}_{nl}}(x)\mathcal{N}\big{(}x;\widehat{r}_{m,nl}(t),\nu^{r}_{m,nl}(t)\big{)} and denotes the derivative of with respect to the first argument. The fact that (43) and (44) are related through a derivative was shown in .
We now derive approximations of and that avoid the dependence on the destination node . For this, we introduce -invariant versions of and :
Comparing (45)-(46) with (41)-(42) and applying previously established scalings from Table II reveals that is and that , so that (43) implies
Above, (48) follows from taking Taylor series expansions around each of the perturbations in (47); (II-E) follows from a Taylor series expansion in the first argument of (48) about the point ; and (50) follows by neglecting the term (which vanishes relative to the others in the large-system limit) and applying the definitions
which match (43)-(44) sans the dependence. Note that (50) confirms that the difference is , as was assumed at the start of the BiG-AMP derivation. Likewise, taking Taylor series expansions of in (44) about the point in the first argument and about the point in the second argument and then comparing the result with (52) confirms that is .
We then repeat the above procedure to derive an approximation to analogous to (40), whose corresponding mean is then further approximated as
Arguments analogous to the discussion following (42) justify the remaining scalings in Table II.
II-F Closing the Loop
The penultimate step in the derivation of BiG-AMP is to approximate earlier steps that use and in place of and . For this, we start by plugging (50) and (53) into (22), which yieldsRecall that the error of the approximation in (50) is and the error in (53) is .
where, for (60), we used in place of , used in place of , and neglected terms that are , since they vanish relative to the remaining terms in the large-system limit.
Next we plug (50), (53), , and into (23), giving
where (62) retains only the terms from (61).
Similarly, we plug (53) into (46) and (50) into (58) to obtain
where the approximations involve the use of in place of , of in place of , of in place of , and the dropping of terms that vanish in the large-system limit. Finally, we make the approximations
by neglecting the terms in (45) and (57), as explained in Appendix B.
II-G Approximated Posteriors
The final step in the BiG-AMP derivation is to approximate the SPA posterior log-pdfs in (11) and (12). Plugging (27) and (37) into those expressions, we get
using steps similar to (40). The associated pdfs are
for C_{x}\triangleq\int_{x}p_{\textsf{x}_{nl}}(x)\mathcal{N}\big{(}x;\widehat{r}_{nl}(t),\nu^{r}_{nl}(t)\big{)} and C_{a}\triangleq\int_{a}p_{\textsf{a}_{mn}}(a)\mathcal{N}\big{(}a;\widehat{q}_{mn}(t),\nu^{q}_{mn}(t)\big{)}, which are iteration- BiG-AMP’s approximations to the true marginal posteriors and , respectively.
Note that and from (51)-(52) are the mean and variance, respectively, of the posterior pdf in (69). Note also that (69) can be interpreted as the (exact) posterior pdf of given the observation under the prior model and the likelihood model p_{\textsf{r}_{nl}|\textsf{x}_{nl}}(\widehat{r}_{nl}(t)\,|\,x_{nl};\nu^{r}_{nl}(t))=\mathcal{N}\big{(}\widehat{r}_{nl}(t);x_{nl},\nu^{r}_{nl}(t)\big{)} implicitly assumed by iteration- BiG-AMP. Analogous statements can be made about the posterior pdf of in (70).
This completes the derivation of BiG-AMP.
II-H Algorithm Summary
The BiG-AMP algorithm derived in Sections II-C to II-G is summarized in Table III. There, we have included a maximum number of iterations, and a stopping condition (R17) based on the (normalized) change in the residual and a user-defined parameter . We have also written the algorithm in a more general form that allows the use of complex-valued quantities [note the complex conjugates in (R10) and (R12)], in which case in (D1)-(D3) would be circular complex Gaussian. For ease of interpretation, Table III does not include the important damping modifications that will be detailed in Sec. IV-A. Suggestions for the initializations in (I2) will be given in the sequel.
We note that BiG-AMP avoids the use of SVD or QR decompositions, lending itself to simple and potentially parallel implementations. Its complexity order is dominatedThe computations in steps (R4)-(R8) are , while the remainder of the algorithm is . Thus, as grows, the matrix multiplies dominate the complexity. by ten matrix multiplications per iteration [in steps (R1)-(R3) and (R9)-(R12)], each requiring multiplications, although simplifications will be discussed in Sec. III.
The steps in Table III can be interpreted as follows. (R1)-(R2) compute a “plug-in” estimate of the matrix product and a corresponding set of element-wise variances . (R3)-(R4) then apply “Onsager” correction (see and for discussions in the contexts of AMP and GAMP, respectively) to obtain the corresponding quantities and . Using these quantities, (R5)-(R6) compute the (approximate) marginal posterior means and variances of Z. Steps (R7)-(R8) then use these posterior moments to compute the scaled residual and a set of inverse-residual-variances . This interpretation becomes clear in the case of AWGN observations with noise variance , where
Steps (R9)-(R10) then use the residual terms and to compute and , where can be interpreted as a -variance-AWGN corrupted observation of the true . Similarly, (R11)-(R12) compute and , where can be interpreted as a -variance-AWGN corrupted observation of the true . Finally, (R13)-(R14) merge these AWGN-corrupted observations with the priors to produce the posterior means and variances ; (R15)-(R16) do the same for the quantities.
The BiG-AMP algorithm in Table III is a direct (although non-trivial) extension of the GAMP algorithm for compressive sensing , which estimates X assuming perfectly known A, and even stronger similarities to the A-uncertain GAMP from , which estimates X assuming knowledge of the marginal means and variances of unknown random A, but which makes no attempt to estimate A itself. In Sec. III-B, a simplified version of BiG-AMP will be developed that is similar to the Bayesian-AMP algorithm for compressive sensing.
III BiG-AMP Simplifications
We now describe simplifications of the BiG-AMP algorithm from Table III that result from additional approximations and from the use of specific priors , , and that arise in practical applications of interest.
The BiG-AMP algorithm in Table III stores and processes a number of element-wise variance terms whose values vary across the elements (e.g., can vary across and ). The use of scalar variances (i.e., uniform across ) significantly reduces the memory and complexity of the algorithm.
To derive scalar-variance BiG-AMP, we first assume and , so from (R1)
Note that using (74) in place of (R1) avoids two matrix multiplies. Plugging these approximations into (R3) gives
which, when used in place of (R3), avoids another matrix multiply. Even with the above scalar-variance approximations, from (R5) are not guaranteed to be equal (except in special cases like AWGN ). Still, they can be approximated as such using , in which case
Using (76) in place of (R9) and (77) in place of (R11) avoids two matrix multiplies and scalar divisions, and furthermore allows (R10) and (R12) to be implemented as
saving two more matrix multiplies, and leaving a total of only three matrix multiplies per iteration.
III-B Possibly Incomplete AWGN Observations
We now consider a particular observation model wherein the elements of are AWGN-corrupted at a subset of indices and unobserved at the remaining indices, noting that the standard AWGN model (71) is the special case where . This “possibly incomplete AWGN” (PIAWGN) model arises in a number of important applications, such as matrix completion and dictionary learning.
We can state the PIAWGN model probabilistically as
When the PIAWGN model is combined with the scalar-variance approximations from Sec. III-A, BiG-AMP simplifies considerably. To see this, we start by using from (75) in place of in (81)-(82), resulting in
since is a projection operator, and using (R4) and (83).
Scalar-variance BiG-AMP under PIAWGN observations is summarized in Table IV. Note that the residual matrix needs to be computed and stored only at the observed entries , leading to significant savingsSimilar computational savings also occur with incomplete non-Gaussian observations. when the observations are highly incomplete (i.e., ). The same is true for the Onsager-corrected residual, . Thus, the algorithm in Table IV involves only three (partial) matrix multiplies [in steps (R3p), (R8p), and (R10p), respectively], each of which can be computed using only scalar multiplies.
We note that Krzakala, Mézard, and Zdeborová recently proposed an AMP-based approach to blind calibration and dictionary learning that bears close similarityThe approach in does not compute (or use) as given in lines (R4p)-(R5p) of Table IV, but rather uses an empirical average of the squared Onsager-corrected residual in place of our throughout their algorithm. to BiG-AMP under the special case of AWGN-corrupted observations (i.e., ) and scalar variances. Their derivation differs significantly from that in Sec. II due to the many simplifications offered by this special case.
III-C Zero-mean iid Gaussian Priors on A and X
In this section we will investigate the simplifications that result in the case that both and are zero-mean iid Gaussian, i.e.,
which, as will be discussed later, is appropriate for matrix completion. In this case, straightforward calculations reveal that and and, similarly, that and . Combining these iid Gaussian simplifications with the scalar-variance simplifications from Sec. III-A yields an algorithm whose computational cost is dominated by three matrix multiplies per iteration, each with a cost of scalar multiplies. The precise number of multiplies it consumes depends on the assumed likelihood model that determines steps (R7g)-(R8g).
Additionally incorporating the PIAWGN observations from Sec. III-B reduces the cost of the three matrix multiplies to only scalar multiplies each, and yields the “BiG-AMP-Lite” algorithm summarized in Table V, consuming multiplies per iteration.
IV Adaptive Damping
The approximations made in the BiG-AMP derivation presented in Sec. II were well-justified in the large system limit, i.e., the case where with fixed and . In practical applications, however, these dimensions (especially ) are finite, and hence the algorithm presented in Sec. II may diverge. In case of compressive sensing, the use of “damping” with GAMP yields provable convergence guarantees with arbitrary matrices . Here, we propose to incorporate damping into BiG-AMP. Moreover, we propose to adapt the damping of these variables to ensure that a particular cost criterion decreases monotonically (or near-monotonically), as described in the sequel. The specific damping strategy that we adopt is similar to that described in and coded in .
In BiG-AMP, the iteration- damping factor is used to slow the evolution of certain variables, namely , , , , , and . To do this, steps (R1), (R3), (R7), and (R8) in Table III are replaced with
and the following are inserted between (R8) and (R9):
The newly defined state variables and are then used in place of and in steps (R9)-(R12) [but not (R1)-(R2)] of Table III. A similar approach can be used for the algorithm in Table IV (with the damping applied to instead of ) and those in Table V. Notice that, when , the damping has no effect, whereas when , all quantities become frozen in .
IV-B Adaptive Damping
The idea behind adaptive damping is to monitor a chosen cost criterion and decrease when the cost has not decreased sufficientlyThe following adaptation procedure is borrowed from GAMPmatlab, where it has been established to work well in the context of GAMP-based compressive sensing. When the current cost is not smaller than the largest cost in the most recent stepWindow iterations, then the “step” is deemed unsuccessful, the damping factor is reduced by the factor stepDec, and the step is attempted again. These attempts continue until either the cost criterion decreases or the damping factor reaches stepMin, at which point the step is considered successful, or the iteration count exceeds or the damping factor reaches stepTol, at which point the algorithm terminates. When a step is deemed successful, the damping factor is increased by the factor stepInc, up to the allowed maximum value stepMax. relative to for some “step window” . This mechanism allows the cost criterion to increase over short intervals of iterations and in this sense is similar to the procedure used by SpaRSA . We now describe how the cost criterion is constructed, building on ideas in .
Notice that, for fixed observations , the joint posterior pdf solves the (trivial) KL-divergence minimization problem
The factorized form (5) of the posterior allows us to write
To judge whether a given time- BiG-AMP approximation “” of the joint posterior is better than the previous approximation , one could in principle plug the posterior approximation expressions (69)-(70) into (103) and then check whether . But, since the expectation in (103) is difficult to evaluate, we approximate the cost (103) by using, in place of AX, an independent Gaussian matrixThe GAMP work uses a similar approximation. whose component means and variances are matched to those of AX. Taking the joint BiG-AMP posterior approximation to be the product of the marginals from (69)-(70), the resulting component means and variances are
In this way, the approximate iteration- cost becomes
Intuitively, the first term in (108) penalizes the deviation between the (BiG-AMP approximated) posterior and the assumed prior on X, the second penalizes the deviation between the (BiG-AMP approximated) posterior and the assumed prior on A, and the third term rewards highly likely estimates Z.
V Parameter Tuning and Rank Selection
Recall that BiG-AMP requires the specification of priors , , and . In practice, although one may know appropriate families for these distributions, the exact parameters that govern them are generally unknown. For example, one may have good reason to believe apriori that the observations are AWGN corrupted, justifying the choice , but the noise variance may be unknown. In this section, we outline a methodology that takes a given set of BiG-AMP parameterized priors and tunes the parameter vector using an expectation-maximization (EM) based approach, with the goal of maximizing the likelihood, i.e., finding . The approach presented here can be considered as a generalization of the GAMP-based work to BiG-AMP.
Taking X, A, and Z to be the hidden variables, the EM recursion can be written as
As a concrete example, consider updating the noise variance under the PIAWGN model (80). Equation (109) suggests
where the true marginal posterior is replaced with the most recent BiG-AMP approximation , where “most recent” is with respect to both EM and BiG-AMP iterations. Zeroing the derivative of the sum in (110) with respect to ,
where and are the BiG-AMP approximated posterior mean and variance from (33)-(34).
The overall procedure can be summarized as follows. From a suitable initialization , BiG-AMP is run using the priors and iterated to completion, yielding approximate marginal posteriors on . These posteriors are used in (109) to update the parameters one element at a time, yielding . BiG-AMP is then run using the priors , and so on. A detailed discussion in the context of GAMP, along with explicit update equations for the parameters of Bernoulli-Gaussian-mixture pdfs, can be found in .
V-B Rank Selection
BiG-AMP and EM-BiG-AMP, as described up to this point, require the specification of the rank , i.e., the number of columns in A (and rows in X) in the matrix factorization . Since, in many applications, the best choice of is difficult to specify in advance, we now describe two procedures to estimate from the data , building on well-known rank-selection procedures.
have been developed, such as the Bayesian Information Criterion (BIC) and Akaike’s Information Criterion (AIC) . In (112), is the ML estimate of under , and is a penalty function that depends on the effective number of scalar parameters estimated under model (which depends on ) and possibly on the number of scalar parameters that make up the observation .
Applying this methodology to EM-BiG-AMP, where , we obtain the rank-selection rule
Since depends on the application (e.g., matrix completion, robust PCA, dictionary learning), detailed descriptions of are postponed to .
To perform the maximization over in (113), we start with a small hypothesis and run EM-BiG-AMP to completion, generating the (approximate) MMSE estimates and ML estimate , which are then used to evaluateSince we compute approximate MMSE estimates rather than ML estimates, we are in fact evaluating a lower bound on the penalized log-likelihood. the penalized log-likelihood in (113). The hypothesis is then increased by a fixed value (i.e., ), initializations of are chosen based on the previously computed , and EM-BiG-AMP is run to completion, yielding estimates with which the penalized likelihood is again evaluated. This process continues until either the value of the penalized log-likelihood decreases, in which case is set at the previous (i.e., maximizing) hypothesis of , or the maximum-allowed rank is reached.
V-B2 Rank contraction
We now describe an alternative rank-selection procedure that is appropriate when Z has a “cliff” in its singular value profile and which is reminiscent of that used in LMaFit . In this approach, EM-BiG-AMP is initially configured to use the maximum-allowed rank, i.e., . After the first EM iteration, the singular values of the estimate and the corresponding pairwise ratios are computed,In some cases the singular values of could be used instead. from which a candidate rank estimate is identified, corresponding to the largest gap in successive singular values. However, this candidate is accepted only if this maximizing ratio exceeds the average ratio by the user-specified parameter (e.g., ), i.e., if
and if is sufficiently small. Increasing makes the approach less prone to selecting an erroneous rank during the first few iterations, but making the value too large prevents the algorithm from detecting small gaps between the singular values. If is accepted, then the matrices A and X are pruned to size and EM-BiG-AMP is run to convergence. If not, EM-BiG-AMP is run for one more iteration, after which a new candidate is identified and checked for acceptance, and so on.
In many cases, a rank candidate is accepted after a small number of iterations, and thus only a few SVDs need be computed. This procedure has the advantage of running EM-BiG-AMP to convergence only once, rather than several times under different hypothesized ranks. However, when the singular values of Z decay smoothly, this procedure can mis-estimate the rank, as discussed in .
VI Matrix Completion
In this and the next two sections, we detail the application of BiG-AMP to the problems of matrix completion (MC), robust principle components analysis (RPCA), and dictionary learning (DL), respectively. For each application, we discuss the BiG-AMP’s choice of matrix representation, priors, likelihood, initialization, adaptive damping, EM-driven parameter learning, and rank-selection. Also, for each application, we provide an extensive empirical study comparing BiG-AMP to state-of-the-art solvers on both synthetic and real-world datasets. These results demonstrate that BiG-AMP yields excellent reconstruction performance (often best in class) while maintaining competitive runtimes. For each application of BiG-AMP discussed in the sequel, we recommend numerical settings for necessary parameter values, as well as initialization strategies when appropriate. Although we cannot guarantee that our recommendations are universally optimal, they worked well for the range of problems considered in this paper, and we conjecture that they offer a useful starting point for further experimentation. Nevertheless, modifications may be appropriate when applying BiG-AMP outside the range of problems considered here. Our BiG-AMP Matlab code can be found as part of the GAMPmatlab package at https://sourceforge.net/projects/gampmatlab/, including examples of BiG-AMP applied to the MC, RPCA, and DL problems.
As in several existing Bayesian approaches to matrix completion (e.g., ), we choose Gaussian priors for the factors A and X. Although EM-BiG-AMP readily supports the use of priors with row- and/or column-dependent parameters, we focus on simple iid priors of the form
where the mean and variance in (116) can be tuned using EM-BiG-AMP, as described in the sequel, and where the variance in (115) is fixed to avoid a scaling ambiguity between A and X. Section VI-F demonstrates that this simple approach is effective in attacking several MC problems of interest. Assuming the observation noise to be additive and Gaussian, we then choose the PIAWGN model from (80) for the likelihood given by
Note that, by using (115)-(116) with and the scalar-variance approximation from Sec. III-A, the BiG-AMP algorithm from Table III reduces to the simpler BiG-AMP-Lite algorithm from Table V with .
VI-B Initialization
In most cases we advocate initializing the BiG-AMP quantities and using random draws from the priors and , although setting either or at zero also seems to perform well in the MC application. Although it is also possible to use SVD-based initializations of and (i.e., for SVD , set and ) as done in LMaFit and VSBL , experiments suggest that the extra computation required is rarely worthwhile for BiG-AMP.
As for the initializations and , we advocate setting them at times the prior variances in (115)-(116), which has the effect of weighting the measurements more than the priors during the first few iterations.
VI-C Adaptive damping
For the assumed likelihood (117) and priors (115)-(116), the adaptive-damping cost criterion described in Sec. IV-B reduces to
To derive (118), one can start with the first term in (108) and leverage the Gaussianity of the approximated posterior on :
which then directly yields the first term in (118). The second term in (118) follows using a similar procedure, and the third and fourth terms follow directly from the PIAWGN model.
In the noise free setting (i.e., ), the third term in (118) dominates, omitting the need to compute the other terms.
VI-D EM-BiG-AMP
For the likelihood (117) and priors (115)-(116), the distributional parameters can be tuned using the EM approach from Sec. V-A.For the first EM iteration, we recommend initializing BiG-AMP using , , , and drawn randomly from . After the first iteration, we recommend warm-starting BiG-AMP using the values from the previous EM iteration. To initialize for EM-BiG-AMP, we adapt the procedure outlined in to our matrix-completion problem, giving the EM initializations and
where is an initial estimate of the signal-to-noise ratio that, in the absence of other knowledge, can be set at .
VI-E Rank selection
For MC rank-selection under the penalized log-likelihood strategy (113), we recommend using the small sample corrected AIC (AICc) penalty . For the MC problem, , where counts the degrees-of-freedom in a rank- real-valued matrix and the three additional parameters come from . Based on the PIAWGN likelihood (117) and the standard form of the ML estimate of (see, e.g., [55, eq. (7)]), the update rule (113) becomes
We note that a similar rule (but based on BIC rather than AICc) was used for rank-selection in .
MC rank selection can also be performed using the rank contraction scheme described in Sec. V-B2. We recommend choosing the maximum rank to be the largest value such that and setting . Since the first EM iteration runs BiG-AMP with the large value , we suggest limiting the number of allowed BiG-AMP iterations during this first EM iteration to . In many cases, the rank learning procedure will correctly reduce the rank after these first few iterations, reducing the added computational cost of the rank selection procedure.
VI-F Matrix Completion Experiments
We now present the results of experiments used to ascertain the performance of BiG-AMP relative to existing state-of-the-art algorithms for matrix completion. For these experiments, we considered IALM , a nuclear-norm based convex-optimization method; LMaFit , a non-convex optimization-based approach using non-linear successive over-relaxation; GROUSE , which performs gradient descent on the Grassmanian manifold; Matrix-ALPS , a greedy hard-thresholding approach; and VSBL , a variational Bayes approach. In general, we configured BiG-AMP as described in Sec. VIUnless otherwise noted, we used the BiG-AMP parameters (see Sec. II-H for descriptions) and the adaptive damping parameters , , , , , and . (See Sec. IV-B for descriptions). and made our best attempt to configure the competing algorithms for maximum performance. That said, the different experiments that we ran required somewhat different parameter settings, as we detail in the sequel.
Defining “successful” matrix completion as NMSE dB, Fig. 2 shows the success rate of each algorithm over a grid of sampling ratios and ranks . As a reference, the solid line superimposed on each subplot delineates the problem feasibility boundary, i.e., the values of yielding , where is the degrees-of-freedom in a rank- real-valued matrix; successful recovery above this line is impossible by any method.
Figure 2 shows that each algorithm exhibits a sharp phase-transition separating near-certain success from near-certain failure. There we see that BiG-AMP yields the best PTC. Moreover, BiG-AMP’s PTC is near optimal in the sense of coming very close to the feasibility boundary for all tested and . In addition, Fig. 2 shows that BiG-AMP-Lite yields the second-best PTC, which matches that of BiG-AMP except under very low sampling rates (e.g., ). Recall that the only difference between the two algorithms is that BiG-AMP-Lite uses the scalar-variance simplification from Sec. III-A.
Figure 3 plots median runtimeThe reported runtimes do not include the computations used for initialization nor those used for runtime evaluation. to NMSE dB versus rank for several sampling ratios , uncovering orders-of-magnitude differences among algorithms. For most values of and , LMaFit was the fastest algorithm and BiG-AMP-Lite was the second fastest, although BiG-AMP-Lite was faster than LMaFit at small and relatively large , while BiG-AMP-Lite was slower than GROUSE at large and very small . In all cases, BiG-AMP-Lite was faster than IALM and VSBL, with several orders-of-magnitude difference at high rank. Meanwhile, EM-BiG-AMP was about to times slower than BiG-AMP-Lite. Although none of the algorithm implementations were fully optimized, we believe that the reported runtimes are insightful, especially with regard to the scaling of runtime with rank .
VI-F2 Approximately low-rank matrices
As in , we first tried to recover from the noiseless incomplete observations , with chosen uniformly at random. Figure 4 shows the performance of several algorithms that are able to learn the underlying rank: LMaFit,LMaFit was run under the settings provided in their source code for this example. VSBL,VSBL was allowed at most iterations and run with DIMRED_THR , UPDATE_BETA , and tolerance . and EM-BiG-AMP under the penalized log-likelihood rank selection strategy from Sec. V-B1.Rank-selection rule (113) was used with up to EM iterations for each rank hypothesis , a minimum of and maximum of BiG-AMP iterations for each EM iteration, and a BiG-AMP tolerance of . All three algorithms were allowed a maximum rank of . The figure shows that the NMSE performance of BiG-AMP and LMaFit are similar, although BiG-AMP tends to find solutions with lower rank but comparable NMSE at low sampling ratios . For this noiseless experiment, VSBL consistently estimates ranks that are too low, leading to inferior NMSEs.
Next, we examined noisy matrix completion by constructing the matrix as above but then corrupting the measurements with AWGN. Figure 5 shows NMSE and estimated rank versus the measurement signal-to-noise ratio (SNR) at a sampling rate of . There we see that, for SNRs dB, EM-BiG-AMP and VSBL offer similarly good NMSE performance and nearly identical rank estimates, whereas LMaFit overestimates the rank and thus performs worse in NMSE. Meanwhile, for SNRs dB, EM-BiG-AMP and LMaFit offer similarly good NMSE performance and nearly identical rank estimates, whereas VSBL underestimates the rank and thus performs worse in NMSE. Thus, in these examples, EM-BiG-AMP is the only algorithm to successfully estimate the rank across the full SNR range.
VI-F3 Image completion
We now compare the performance of several matrix-completion algorithms for the task of reconstructing an image from a subset of its pixels. For this, we repeated the experiment in the Matrix-ALPS paper , where the boat image was reconstructed from of its pixels sampled uniformly at random. Figure 6 shows the complete (full-rank) image, the images reconstructed by several matrix-completion algorithmsAll algorithms were run with a convergence tolerance of . VSBL was run with hand-tuned to maximize performance, as the adaptive version did not converge on this example. GROUSE was run with and . Matrix-ALPS II with QR was run under default parameters and allowed iterations. Other settings are similar to earlier experiments. under a fixed rank of , and the NMSE-minimizing rank- approximation of the complete image, computed using an SVD. In all cases, the sample mean of the observations was subtracted prior to processing and then added back to the estimated images, since this approach generally improved performance. Figure 6 also lists the median reconstruction NMSE over sampling-index realizations . From these results, it is apparent that EM-BiG-AMP provides the best NMSE, which is only dB from that of the NMSE-optimal rank- approximation.
VI-F4 Collaborative Filtering
In our final experiment, we investigate the performance of several matrix-completion algorithms on the task of collaborative filtering. For this, we repeated an experiment from the VSBL paper that used the MovieLens 100k dataset, which contains ratings , where and , from users about movies. The algorithms were provided with a randomly chosen training subset of the ratings (i.e., ) from which they estimated the unseen ratings . Performance was then assessed by computing the Normalized Mean Absolute Error (NMAE)
where the in the denominator of (123) reflects the difference between the largest and smallest user ratings (i.e., and ). When constructing , we used a fixed percentage of the ratings given by each user and made sure that at least one rating was provided for every movie in the training set.
Figure 7 reports the NMAE and estimated rank for EM-BiG-AMP under the PIAWGN model (117), LMaFit, and VSBL,VSBL was was allowed at most iterations and was run with DIMRED_THR and UPDATE_BETA. Both VSBL and EM-BiG-AMP used a tolerance of . LMaFit was configured as for the MovieLens experiment in . Each algorithm was allowed a maximum rank of . all of which include mechanisms for rank estimation. Figure 7 shows that, under the PIAWGN model, EM-BiG-AMP yields NMAEs that are very close to those of VSBLThe NMAE values reported for VSBL in Fig. 7 are slightly inferior to those reported in . We attribute the discrepancy to differences in experimental setup, such as the construction of . but slightly inferior at larger training fractions, whereas LMaFit returns NMAEs that are substantially worse all training fractions.The NMAE results presented here differ markedly from those in the MovieLens experiment in because, in the latter paper, the entire set of ratings was used for both training and testing, with the (trivial) result that high-rank models (e.g., ) yield nearly zero test error. Figure 7 also shows that LMaFit’s estimated rank is much higher than those of VSBL and EM-BiG-AMP, suggesting that its poor NMAE performance is the result of overfitting. (Recall that similar behavior was seen for noisy matrix completion in Fig. 5.) In addition, Fig. 7 shows that, as the training fraction increases, EM-BiG-AMP’s estimated rank remains very low (i.e., ) while that of VSBL steady increases (to ). This prompts the question: is VSBL’s excellent NMAE the result of accurate rank estimation or the use of a heavy-tailed (i.e., student’s t) noise prior?
To investigate the latter question, we ran BiG-AMP under
i.e., a possibly incomplete additive white Laplacian noise (PIAWLN) model, and used the EM-based approach from Sec. V-A to learn the rate parameter . Figure 7 shows that, under the PIAWLN model, EM-BiG-AMP essentially matches the NMAE performance of VSBL and even improves on it at very low training fractions. Meanwhile, its estimated rank remains low for all training fractions, suggesting that the use of a heavy-tailed noise model was the key to achieving low NMAE in this experiment. Fortunately, the generality and modularity of BiG-AMP made this an easy task.
VI-F5 Summary
In summary, the known-rank synthetic-data results above showed the EM-BiG-AMP methods yielding phase-transition curves superior to all other algorithms under test. In addition, they showed BiG-AMP-Lite to be the second fastest algorithm (behind LMaFit) for most combinations of sampling ratio and rank , although it was the fastest for small and relatively high . Also, they showed EM-BiG-AMP was about to times slower than BiG-AMP-Lite but still much faster than IALM and VSBL at high ranks. Meanwhile, the unknown-rank synthetic-data results above showed EM-BiG-AMP yielding excellent NMSE performance in both noiseless and noisy scenarios. For example, in the noisy experiment, EM-BiG-AMP uniformly outperformed its competitors (LMaFit and VSBL).
In the image completion experiment, EM-BiG-AMP again outperformed all competitors, beating the second best algorithm (Matrix ALPS) by more than dB and the third best algorithm (LMaFit) by more than dB. Finally, in the collaborative filtering experiment, EM-BiG-AMP (with the PIAWLN likelihood model) matched the best competitor (VSBL) in terms of NMAE, and significantly outperformed the second best (LMaFit).
VII Robust PCA
In robust principal components analysis (RPCA) , one seeks to estimate a low-rank matrix observed in the presence of noise and large outliers. The data model for RPCA can be written as
where —the product of tall and wide —is the low-rank matrix of interest, is a sparse outlier matrix, and is a dense noise matrix. We now suggest two ways of applying BiG-AMP to the RPCA problem, both of which treat the elements of as iid similar to (115), the elements of as iid similar to (116), the non-zero elements of as iid , and the elements of as iid , with .
In the first approach, is treated as additive noise on , leading to the likelihood model
where models outlier density.
and apply BiG-AMP to the “augmented” model . Here, remains iid , thus giving the likelihood
Meanwhile, we choose the following separable priors on and :
Essentially, the first columns of and first rows of model the factors of the low-rank matrix , and thus their elements are assigned iid Gaussian priors, similar to (115)-(116) in the case of matrix completion. Meanwhile, the last rows in are used to represent the sparse outlier matrix , and thus their elements are assigned a Bernoulli-Gaussian prior. Finally, the last columns of are used to represent the designed matrix , and thus their elements are assigned zero-variance priors. Since we find that BiG-AMP is numerically more stable when is chosen as a dense matrix, we set it equal to the singular-vector matrix of an iid matrix. After running BiG-AMP, we can recover an estimate of by left multiplying the estimate of by .
VII-B Initialization
We recommend initializing using a random draw from its prior and initializing at the mean of its prior, i.e., . The latter tends to perform better than initializing randomly, because it allows the measurements to determine the initial locations of the outliers in . As in Sec. VI-B, we suggest initializing and at times the variance of their respective priors to emphasize the role of the measurements during the first few iterations.
VII-C EM-BiG-AMP
The EM approach from Sec. V-A can be straightforwardly applied to BiG-AMP for RPCA: after fixing , EM can be used to tune the remaining distributional parameters, . To avoid initializing and with overly large values in the presence of large outliers , we suggest the following procedure. First, define the set \Gamma\triangleq\big{\{}(m,l):|y_{ml}|\leq\operatorname{median}\{|y_{ml}|\}\big{\}} and its complement . Then initialize
where, as in Sec. VI-D, we suggest setting in the absence of prior knowledge. This approach uses the median to avoid including outliers among the samples used to estimate the variances of the dense-noise and low-rank components. Under these rules, the initialization was found to work well for most problems.
VII-D Rank Selection
In many applications of RPCA, such as video separation, the singular-value profile of exhibits a sharp cutoff, in which case it is recommended to perform rank-selection using the contraction strategy from Sec. V-B2.
VII-E Avoiding Local Minima
Sometimes, when is very small, BiG-AMP may converge to a local solution that mistakes entire rows or columns of for outliers. Fortunately, this situation is easy to remedy with a simple heuristic procedure: the posterior probability that is outlier-corrupted can be computed for each at convergence, and if any of the row-wise sums exceeds or any of the column-wise sums exceeds , then BiG-AMP is restarted from a new random initialization. Experimentally, we found that one or two of such restarts is generally sufficient to avoid local minima.
VII-F Robust PCA Experiments
In this section, we present a numerical study of the two BiG-AMP formulations of RPCA proposed in Sec. VII, including a comparison to the state-of-the-art IALM , LMaFit , GRASTA , and VSBL algorithms. In the sequel, we use “BiG-AMP-1” when referring to the formulation that treats the outliers as noise, and “BiG-AMP-2” when referring to the formulation that explicitly estimates the outliers.
All algorithms under test were run to a convergence tolerance of and forced to use the true rank . GRASTA, LMaFit, and VSBL were run under their recommended settings.For LMaFit, however, we increased the maximum number of allowed iterations, since this improved its performance. Two versions of IALM were tested: “IALM-1,” which uses the universal penalty parameter , and “IALM-2,” which tries hypotheses of , logarithmically spaced from to and uses an oracle to choose the MSE-minimizing hypothesis. BiG-AMP-1 and BiG-AMP-2 were given perfect knowledge of the mean and variance of the entries of , , and (although their Bernoulli-Gaussian model of did not match the data generation process) as well as the outlier density , while EM-BiG-AMP-2 learned all model parameters from the data. BiG-AMP-1 was run under a fixed damping of , while BiG-AMP-2 was run under adaptive damping with and . Both variants used a maximum of restarts to avoid local minima.
Figure 8 shows the empirical success rate achieved by each algorithm as a function of corruption-rate and rank , averaged over trials, where a “success” was defined as attaining an NMSE of dB or better in the estimation of the low-rank component . The red curves in Fig. 8 delineate the problem feasibility boundary: for points above the curve, , the degrees-of-freedom in , exceeds , the number of uncorrupted observations, making it impossible to recover without additional information.
Figure 8 shows that all algorithms exhibit a relatively sharp phase-transition curve (PTC) separating success and failure regions, and that the BiG-AMP algorithms achieve substantially better PTCs than the other algorithms. The PTCs of BiG-AMP-1 and BiG-AMP-2 are similar (but not identical), suggesting that both formulations are equally effective. Meanwhile, the PTCs of BiG-AMP-2 and EM-BiG-AMP-2 are nearly identical, demonstrating that the EM procedure was able to successfully learn the statistical model parameters used by BiG-AMP. Figure 8 also shows that all RPCA phase transitions remain relatively far from the feasibility boundary, unlike those for matrix completion (MC) shown in Fig. 2. This behavior, also observed in , is explained by the relative difficulty of RPCA over MC: the locations of RPCA outliers (which in this case effectively render the corrupted observations as incomplete) are unknown, whereas in MC they are known.
Figure 9 plots runtime to NMSE dB as a function of rank for various outlier fractions. The results suggest that the BiG-AMP algorithms are moderate in terms of speed, being faster than GRASTAWe note that, for this experiment, GRASTA was run as a Matlab M-file and not a MEX file, because the MEX file would not compile on the supercomputer used for the numerical results. That said, since BiG-AMP was also run as an unoptimized M-file, the comparison could be considered “fair.” and much faster than the grid-tuned IALM-2, but slower than IALM-1, VSBL, and LMaFit. Notably, among the non-BiG-AMP algorithms, LMaFit offers both the fastest runtime and the best phase-transition curve on this synthetic test problem.
In summary, the results presented here suggest that BiG-AMP achieves state-of-the-art PTCs while maintaining runtimes that are competitive with existing approaches.
VII-F2 Rank Estimation
We now investigate the ability to estimate the underlying rank, , for EM-BiG-AMP-2 (using the rank-contraction strategy from Sec. V-B2The rank-selection rule (114) was used with , up to EM iterations, and a minimum of and maximum of BiG-AMP iterations per EM iteration.) IALM-1, IALM-2, LMaFit, and VSBL, all of which include either explicit or implicit rank-selection mechanisms. For this, we generated problem realizations of the form , where the rank- matrix and -sparse outlier matrix were generated as described in Sec. VII-F1 and the noise matrix was constructed with iid elements. The algorithms under test were not provided with knowledge of the true rank , which was varied between and . LMaFit, VSBL, and EM-BiG-AMP, were given an initial rank estimate of , which enforces an upper bound on the final estimates that they report.
Figure 10 reports RPCA performance versus (unknown) true rank in terms of the estimated rank and the NMSE on the estimate . All results represent median performance over Monte-Carlo trials. The figure shows that EM-BiG-AMP-2 and LMaFit returned accurate rank estimates over the full range of true rank , whereas VSBL returned accurate rank estimates only for , and both IALM-1 and IALM-2 greatly overestimated the rank at all . Meanwhile, Fig. 10 shows that EM-BiG-AMP-2 and LMaFit returned accurate estimates of for all (with EM-BiG-AMP-2 outperforming LMaFit by several dB throughout this range), whereas VSBL and IALM-1 and IALM-2 returned accurate estimates of only for small values of . We note that the relatively poor MSE performance of LMaFit and EM-BiG-AMP-2 for true rank is not due to poor rank estimation but rather due to the fact that, at , these operating points lie above the PTCs shown in Fig. 8.
VII-F3 Application to Video Surveillance
We now apply EM-BiG-AMP-2 to a video surveillance problem, where the goal is to separate a video sequence into a static “background” component and a dynamic “foreground” component. To do this, we stack each frame of the video sequence into a single column of the matrix , run EM-BiG-AMP-2 as described in Sec. VII, extract the background frames from the estimate of the low-rank component , and extract the foreground frames from the estimate of the (sparse) outlier component . We note that a perfectly time-invariant background would correspond to a rank-one and that the noise term in (125) can be used to account for small perturbations that are neither low-rank nor sparse.
We tested EM-BiG-AMPThe maximum allowed damping was reduced to for this experiment. To reduce runtime, a relatively loose tolerance of was used to establish EM and BiG-AMP convergence. on the popular “mall” video sequence,See http://perception.i2r.a-star.edu.sg/bk_model/bk_index.html. processing frames (of pixels each) using an initial rank estimate of . Figure 11 shows the result, with original frames in the left column and EM-BiG-AMP-2 estimated background and foreground frames in the middle and right columns, respectively. We note that, for this sequence, the rank-contraction strategy reduced the rank of the background component to after the first EM iteration. Similar results (not shown here for reasons of space) were obtained with other video sequences.
VIII Dictionary Learning
The BiG-AMP methodology is particularly well-suited to the DL problem, since both are inherently bilinear. In this work, for simplicity, we model the entries of A using the iid standard normal prior (115) and the entries of X using the iid zero-mean Bernoulli-Gaussian (BG) prior
where represents the activity rate and the active-component variance. However, other priors could be considered, such as truncated Gaussian mixtures with column-dependent prior parameters in the case of non-negative matrix factorization . For the likelihood , we again select the PIAWGN model (117), but note that in most applications of DL the observations are completely observed.
VIII-B Initialization
In general, we advocate initializing at the mean of the assumed prior on , and initializing the variances and at times the variance of and , respectively. We now discuss several strategies for initializing the dictionary estimates . One option is to draw randomly from the assumed prior on , as suggested for MC and RPCA. Although this approach works reasonably well, the prevalence of local minima in the DL problem motivates us to propose two alternative strategies. The first alternative is to exploit prior knowledge of a “good” sparsifying dictionary , in the case that such knowledge exists. With natural images, for example, the discrete cosine transform (DCT) and discrete wavelet transform (DWT) are known to yield reasonably sparse transform coefficients, and so the DCT and DWT matrices make appropriate initializations of .
The second alternative is to initialize using an appropriately chosen subset of the columns of , which is well motivated in the case that there exists a very sparse representation . For example, if there existed a decomposition in which had -sparse columns, then the columns of would indeed match a subset of the columns of (up to a scale factor). In the general case, however, it is not apriori obvious which columns of to choose, and so we suggest the following greedy heuristic, which aims for a well-conditioned : select (normalized) columns from sequentially, in random order, accepting each candidate if the mutual coherences with the previously selected columns and the condition number of the resulting submatrix are all sufficiently small. If all columns of are examined before finding acceptable candidates, then the process is repeated using a different random order. If repeated re-orderings fail, then is initialized using a random draw from A.
VIII-C EM-BiG-AMP
To tune the distributional parameters , we can straightforwardly apply the EM approach from Sec. V-A. For this, we suggest initializing (since Sec. VIII-E shows that this works well over a wide range of problems) and initializing and using a variation on the procedure suggested for MC that accounts for the sparsity of :
VIII-D Avoiding Local Minima
The DL problem is fraught with local minima (see, e.g., ), and so it is common to run iterative algorithms several times from different random initializations. For BiG-AMP, we suggest keeping the result of one initialization over the previous if bothAs an alternative, if both the previous and current solutions achieve sufficiently small residual error, then only the average sparsity is considered in the comparison. the residual error and the average sparsity (as measured by ) decrease.
VIII-E Dictionary Learning Experiments
In this section, we numerically investigate the performance of EM-BiG-AMP for DL, as described in Sec. VIII. Comparisons are made with the greedy K-SVD algorithm , the SPAMS implementation of the online approach , and the ER-SpUD(proj) approach for square dictionaries .
where is a generalized permutation matrix used to resolve the permutation and scale ambiguities.
The subplots on the left of Fig. 12 show the mean NMSE achieved by K-SVD, SPAMS, ER-SpUD(proj), and EM-BiG-AMP,EM-BiG-AMP was allowed up to EM iterations, with each EM iteration allowed a minimum of and a maximum of BiG-AMP iterations. K-SVD was allowed up to iterations and provided with knowledge of the true sparsity . SPAMS was allowed iterations and run using the hand-tuned penalty . The non-iterative ER-SpUD(proj) was run using code provided by the authors without modification. respectively, over problem realizations, for various combinations of dictionary size and data sparsity , using training examples. K-SVD, SPAMS, and EM-BiG-AMP were run with different random initializations for each problem realization. To choose among these initializations, EM-BiG-AMP used the procedure from Sec. VIII-D, while K-SVD and SPAMS used oracle knowledge to choose the NMSE-minimizing initialization.
The left column in Fig. 12 shows that the K-SVD, ER-SpUD(proj), and EM-BiG-AMP algorithms all exhibit a relatively sharp phase-transition curve (PTC) separating success and failure regions, and that ER-SpUD(proj)’s PTC is the best, while EM-BiG-AMP’s PTC is very similar. Meanwhile, K-SVD’s PTC is much worse and SPAMS performance is not good enough to yield a sharp phase transition,Our results for SPAMS and ER-SPUD(proj) in the left column of Fig. 12 are nearly identical to those in [63, Fig. 1], while our results for K-SVD are noticeably better. despite the fact that both use oracle knowledge. EM-BiG-AMP, by contrast, was not provided with any knowledge of the DL problem parameters, such as the true sparsity or noise variance (in this case, zero).
For the same problem realizations, Fig. 13 shows the runtime to NMSE dB (measured using MATLAB’s tic and toc) versus dictionary size . The results show that EM-BG-AMP runs within an order-of-magnitude of the fastest algorithm (SPAMS) and more than two orders-of-magnitude faster than ER-SpUD(proj)The simpler “SC” variant of ER-SpUD reduces the computational cost relative to the “proj” variant, but results in a significantly worse PTC (see [63, Fig. 1]) and remains slower than EM-BiG-AMP for larger problems. for larger dictionaries.
VIII-E2 Noisy Square Dictionary Recovery
Next we examined the recovery of square dictionaries from AWGN-corrupted observations. For this, we repeated the experiment from the previous section, but constructed the observations as , where and contained AWGN samples with variance adjusted to achieve an SNR of dB.
The right subplots in Fig. 12 show the mean value (over trials) of the relative NMSE from (140) when recovering an dictionary from training samples of sparsity , for various combinations of and . These subplots show that ER-SpUD(proj) falls apart in the noisy case, which is perhaps not surprising given that it is intended only for noiseless problems. Meanwhile, the K-SVD, SPAMS, and EM-BiG-AMP algorithms appear to degrade gracefully in the presence of noise, yielding NMSE dB at points below the noiseless PTCs.
VIII-E3 Recovery of Overcomplete Dictionaries
Finally, we consider recovery of overcomplete dictionaries, i.e., the case where . In particular, we investigated the twice overcomplete case, . For this, random problem realizations were constructed in the same manner as described earlier, except for the dictionary dimensions.
The left column of Fig. 14 shows the mean value (over trials) of the relative NMSE for noiseless recovery, while the right column shows the corresponding results for noisy recovery. In all cases, training samples were provided. EM-BiG-AMP, K-SVD, and SPAMS all give very similar results to Fig. 12 for the square-dictionary case, verifying that these techniques are equally suited to the recovery of over-complete dictionaries. ER-SpUD(proj), however, only applies to square dictionaries and hence was not tested here.
VIII-E4 Summary
In summary, Figs. 12-14 show that, for noiseless square dictionary learning, EM-BiG-AMP yields an empirical PTC that is nearly as good as the state-of-the-art ER-SpUD(proj) algorithm and much better than those of (genie-aided) K-SVD and SPAMS. However, the figures show that, in comparison to ER-SpUD(proj), EM-BiG-AMP is fast for large (square) dictionaries, robust to AWGN, and applicable to non-square dictionaries.
We recall that Krzakala, Mézard, and Zdeborová recently proposed an AMP-based approach to blind calibration and dictionary learning that bears similarity to our scalar-variance BiG-AMP under AWGN-corrupted observations (recall footnote 6). Although their approach gave good results for blind calibration, they report that it was “not able to solve” the DL problem . We attribute EM-BiG-AMP’s success with DL (as evidenced by Figs. 12-14) to the adaptive damping procedure proposed in Sec. IV-B, the initialization procedure proposed in Sec. VIII-B, the EM-learning procedure proposed in Sec. VIII-C, and the re-initialization procedure proposed in Sec. VIII-D.
IX Conclusion
In this work, we presented BiG-AMP, an extension of the G-AMP algorithm proposed for high-dimensional generalized-linear regression in the context of compressive sensing, to generalized-bilinear regression, with applications in matrix completion, robust PCA, dictionary learning, and related matrix-factorization problems. In addition, we proposed an adaptive damping mechanism to aid convergence under realistic problem sizes, an expectation-maximization (EM)-based method to automatically tune the parameters of the assumed priors, and two rank-selection strategies. Extensive numerical results, conducted with synthetic and realistic datasets for matrix completion, robust PCA, and dictionary learning problems, demonstrated that BiG-AMP yields excellent reconstruction accuracy (often best in class) while maintaining competitive runtimes, and that the proposed EM and rank-selection strategies successfully avoid the need to tune algorithmic parameters.
The excellent empirical results reported here motivate future work on the analysis of EM-BiG-AMP, on the extension of EM-BiG-AMP to, e.g., structured-sparse or parametric models, and on the application of EM-BiG-AMP to practical problems in high-dimensional inference. For example, preliminary results on the application of EM-BiG-AMP to hyperspectral unmixing have been reported in and are very encouraging.
Appendix A
for an appropriately defined function . Now, defining with normalization term Z(\widehat{q})\triangleq\int\exp\big{(}\phi(u)+\widehat{q}u\big{)}du, simple calculus yields
Thus, from (141) and (142) it follows that
Equation (31) is then established by applying definitions (33) and (35) to (144).
where is the expectation from (33). Equation (32) is then established by applying the definitions (34) and (35) to (145).
Appendix B
Here we explain the approximations (65)-(66). The term neglected in going from (45) to (65) can be written using (31)-(32) as
where the expectations are taken over \textsf{z}_{ml}\sim p_{\textsf{z}_{ml}|\textsf{p}_{ml}}\big{(}\cdot\,|\,\widehat{p}_{ml}(t);\nu^{p}_{ml}(t)\big{)} from (35). For GAMP, [32, Sec. VI.D] clarifies that, in the large system limit, under i.i.d priors and scalar variances, the true and the iterates converge empirically to a pair of random variables that satisfy . This result leads us to believe that the expectation in (147) is approximately unit-valued when averaged over , and thus (147) is approximately zero-valued. Similar reasoning applies to (66).
Acknowledgment
The authors would like to thank Sundeep Rangan, Florent Krzakala, and Lenka Zdeborová for insightful discussions on various aspects of AMP-based inference. We would also like to thank Subhojit Som, Jeremy Vila, and Justin Ziniel for helpful discussions about EM and turbo methods for AMP.