An Instability in Variational Inference for Topic Models
Behrooz Ghorbani, Hamid Javadi, Andrea Montanari
Introduction
In fully Bayesian topic models, the parameters of the Dirichlet distribution, as well as the topic distributions are themselves unknown and to be learned from data. Here we will work in an idealized setting in which they are known. We will also assume that data are in fact distributed according to the postulated generative model. Since we are interested in studying some limitations of current approaches, our main point is only reinforced by assuming this idealized scenario.
As is common with Bayesian approaches, computing the posterior distribution of the factors , given the data is computationally challenging. Since the seminal work of Blei, Ng and Jordan [BNJ03], variational inference is the method of choice for addressing this problem within topic models. The term ‘variational inference’ refers to a broad class of methods that aim at approximating the posterior computation by solving an optimization problem, see [JGJS99, WJ08, BKM17] for background. A popular starting point is the Gibbs variational principle, namely the fact that the posterior solves the following convex optimization problem:
Even for discrete, the Gibbs principle has exponentially many decision variables. Variational methods differ in the way the problem (1.3) is approximated. The main approach within topic modeling is naive mean field, which restricts the optimization problem to the space of probability measures that factorize over the rows of :
The main result of this paper is that naive mean field presents an instability for learning Latent Dirichlet Allocations. We will focus on the limit with fixed. Hence, an LDA distribution is determined by the parameters . We will show that there are regions in this parameter space such that the following two findings hold simultaneously:
Any estimator , of the topic or weight matrices is asymptotically uncorrelated with the real model parameters . In other words, the data do not contain enough signal to perform any strong inference.
Given the above, one would hope the Bayesian posterior to be centered on an unbiased estimate. In particular, (the posterior distribution over weights of document ) should be centered around the uniform distribution . In contrast, we will show that the posterior produced by naive mean field is centered around a random distribution that is uncorrelated with the actual weights. Similarly, the posterior over topic vectors is centered around random vectors uncorrelated with the true topics.
One key argument in support of Bayesian methods is the hope that they provide a measure of uncertainty of the estimated variables. In view of this, the failure just described is particularly dangerous because it suggests some measure of certainty, although the estimates are essentially random.
Is there a way to eliminate this instability by using a better mean field approximation? We show that a promising approach is provided by a classical idea in statistical physics, the Thouless-Anderson-Palmer (TAP) free energy [TAP77, OW01]. This suggests a variational principle that is analogous in form to naive mean field, but provides a more accurate approximation of the Gibbs principle:
We show that the instability of naive mean field is remedied by using the TAP free energy instead of the naive mean field free energy. The latter can be optimized using an iterative scheme that is analogous to the naive mean field iteration and is known as approximate message passing (AMP).
While the TAP approach is promising –at least for synthetic data– we believe that further work is needed to develop a reliable inference scheme.
Over the last fifteen years, topic models have been generalized to cover an impressive number of applications. A short list includes mixed membership models [EFL04, ABFX08], dynamic topic models [BL06], correlated topic models [LB06, BL07], spatial LDA [WG08], relational topic models [CB09], Bayesian tensor models [ZBHD15]. While other approaches have been used (e.g. Gibbs sampling), variational algorithms are among the most popular methods for Bayesian inference in these models. Variational methods provide a fairly complete and interpretable description of the posterior, while allowing to leverage advances in optimization algorithms and architectures towards this goal (see [HBB10, BBW+13]).
Despite this broad empirical success, little is rigorously known about the accuracy of variational inference in concrete statistical problems. Wang and Titterington [WT04, WT06] prove local convergence of naive mean field estimate to the true parameters for exponential families with missing data and Gaussian mixture models. In the context of Gaussian mixtures, the same authors prove that the covariance of the variational posterior is asymptotically smaller (in the positive semidefinite order) than the inverse of the Fisher information matrix [WT05]. All of these results are established in the classical large sample asymptotics with fixed. In the present paper we focus instead on the high-dimensional limit and prove that also the mode (or mean) of the variational posterior is incorrect. Notice that the high-dimensional regime is particularly relevant for the analysis of Bayesian methods. Indeed, in the classical low-dimensional asymptotics Bayesian approaches do not outperform maximum likelihood.
In order to correct for the underestimation of covariances, [WT05] suggest replacing its variational estimate by the inverse Fisher information matrix. A different approach is developed in [GBJ15], building on linear response theory.
Naive mean field variational inference was used in [CDP+12, BCCZ13] to estimate the parameters of the stochastic block model. These works establish consistency and asymptotic normality of the variational estimates in a large signal-to-noise ratio regime. Our work focuses on estimating the latent factors: it would be interesting to consider implications on parameter estimation as well.
The recent paper [ZZ17] also studies variational inference in the context of the stochastic block model, but focuses on reconstructing the latent vertex labels. The authors prove that naive mean field achieves minimax optimal statistical rates. Let us emphasize that this problem is closely related to topic models: both are models for approximately low-rank matrices, with a probabilistic prior on the factors. The results of [ZZ17] are complementary to ours, in the sense that [ZZ17] establishes positive results at large signal-to-noise ratio (albeit for a different model), while we prove inconsistency at low signal-to-noise ratio. General conditions for consistency of variational Bayes methods are proposed in [PBY17].
Our work also builds on recent theoretical advances in high-dimensional low-rank models, that were mainly driven by techniques from mathematical statistical physics (more specifically, spin glass theory). An incomplete list of relevant references includes [KM09, DM14, DAM17, KXZ16, BDM+16, LM16, Mio17, LKZ17, AK18]. These papers prove asymptotically exact characterizations of the Bayes optimal estimation error in low-rank models, to an increasing degree of generality, under the high-dimensional scaling with .
Related ideas also suggest an iterative algorithm for Bayesian estimation, namely Bayes Approximate Message Passing [DMM09, DMM10]. As mentioned above, Bayes AMP can be regarded as minimizing a different variational approximation known as the TAP free energy. An important advantage over naive mean field is that AMP can be rigorously analyzed using a method known as state evolution [BM11, JM13, BMN17].
Let us finally mention that a parallel line of work develops polynomial-time algorithms to construct non-negative matrix factorizations under certain structural assumptions on the data matrix , such as separability [AGM12, AGKM12, RRTB12]. It should be emphasized that the objective of these algorithms is different from the one of Bayesian methods: they return a factorization that is guaranteed to be unique under separability. In contrast, variational methods attempt to approximate the posterior distribution, when the data are generated according to the LDA model.
2 Notations
It is known that for no algorithm can estimate from data with positive correlation in the limit . The following is an immediate consequence of [KM09, DAM17], see Appendix C.1.
How does variational inference perform on this problem? Any product probability distribution can be parametrized by the means , and it is immediate to get
Here is obtained from by setting the diagonal entries to , and is the binary entropy function. In view of Lemma 2.1, the correct posterior distribution should be essentially uniform, resulting in vanishing. Indeed, is a stationary point of the mean field free energy : . We refer to this as the ‘uninformative fixed point’.
Is a local minimum? Computing the Hessian at the uninformative fixed point yields
The matrix is a rank-one deformation of a Wigner matrix and its spectrum is well understood [BBAP05, FP07, BGN11]. For , its eigenvalues are contained with high probability in the interval $\lambda_{\min}(\boldsymbol{X})\to-2\lambda_{\max}(\boldsymbol{X})\to 2n\to\infty\lambda>1\lambda_{\max}(\boldsymbol{X})\to\lambda+\lambda^{-1}$. This implies
In other words, is a local minimum for , but becomes a saddle point for . In particular, for , variational inference will produce an estimate , although the posterior should be essentially uniform. In fact, it is possible to make this conclusion more quantitative.
In other words, although no estimator is positively correlated with the true signal , variational inference outputs biases that are non-zero (and indeed of order one, for a positive fraction of them).
The last statement immediately implies that naive mean field leads to incorrect inferential statements for . In order to formalize this point, given any estimators of the posterior marginals, we define the per-coordinate expected coverage as
This is the expected fraction of coordinates that are estimated correctly by choosing according to the estimated posterior. Since the prior is assumed to be correct, it can be interpreted either as the expectation (with respect to the parameters) of the frequentist coverage, or as the expectation (with respect to the data) of the Bayesian coverage. On the other hand, if the were accurate, Bayesian theory would suggest claiming the coverage
The following corollary is a direct consequence of Proposition 2.2, and formalizes the claim that naive mean field leads to incorrect inferential statements. More precisely, it overestimates the coverage achieved.
While similar formal coverage statements can be obtained also for the more complex case of topic models, we will not make them explicit, since they are relatively straightforward consequences of our analysis.
Instability of variational inference for topic models
Let denote the mutual information between the data and the factors under the LDA model (1.2). Then, the following limit holds almost surely
It is also shown in Appendix C.2 that is a stationary point of the free energy . We shall refer to as the uninformative point. Let be the supremum value of such that the infimum in Eq. (3.1) is uniquely achieved at :
As formalized below, for the data do not contain sufficient information for estimating , in a non-trivial manner.
Let . Then is a stationary point of the function . Further, it is a local minimum provided where the spectral threshold is given by
Finally, if , for any estimator , we have
for a constant.
We refer to Appendix C for a proof of this statement.
Note that Eq. (3.4) compares the mean square error of an arbitrary estimator , to the mean square error of the trivial estimator that replaces each column of by its average. This is equivalent to estimating all the weights by the uniform distribution . Of course, . However, this upper bound appears to be tight for small .
Solving numerically the -dimensional problem (3.1) indicates that for and .
2 Naive mean field free energy
We consider a trial joint distribution that factorizes according to rows of and according to Eq. (1.5). It turns out (see Appendix D.2) that, for any stationary point of over such product distributions, the marginals take the form
When restricted to a product-form ansatz with parametrization (3.5), the mean field free energy takes the form (see Appendix D.3)
(Such a solution always exists.) Further define
Then the naive mean field free energy of Eq. (3.9) admits a stationary point whereby, for all , ,
The proof of this lemma is deferred to Appendix D.4. We note that Eq. (3.13) appears to always have a unique solution. Although we do not have a proof of uniqueness, in Appendix J we prove that the solution is unique conditional on a certain inequality that can be easily checked numerically.
3 Naive mean field iteration
4 Instability
A minimum consistency condition for variational inference is that the uninformative stationary point is a local minimum of the posterior for . The next theorem provides a necessary condition for stability of the uninformative point, which we expect to be tight. As discussed below, it implies that this point is a saddle in an interval of below . We recall that the index of a smooth function at stationary point is the number of the negative eigenvalues of the Hessian .
Define , as in Eqs. (3.13), (3.14), and let
Correspondingly is an unstable critical point of the mapping in the sense that the Jacobian has spectral radius larger than one at .
In the following, we will say that a fixed point is stable if the linearization of at (i.e. the Jacobian matrix ) has spectral radius smaller than one. By the Hartman-Grobman linearization theorem [Per13], this implies that is an attractive fixed point. Namely, there exists a neighborhood of such that, initializing the naive mean field iteration within that neighborhood, results in as . Vice-versa, we say that is unstable if the Jacobian has spectral radius larger than one. In this case, for any neighborhood of , and a generic initialization in that neighborhood, does not converge to the fixed point.
Motivated by Theorem 2, we define the instability threshold by
Let us emphasize that, while we discuss the consequences of the instability at on the naive mean field iteration, this is a problem of the variational free energy (3.9) and not of the specific optimization algorithm.
5 Numerical results for naive mean field
In order to investigate the impact of the instability described above, we carried out extensive numerical simulations with the variational algorithm (3.19), (3.20). After any number of iterations , estimates of the factors , are obtained by computing expectations with respect to the marginals (3.5). This results in
Note that can be used as the state of the naive mean-field iteration instead of .
We select a two-dimensional grid of ’s and generate different instances according to the LDA model for each grid point. We report various statistics of the estimates aggregated over the instances. We have performed the simulations for and . For space considerations, we focus here on the case , , and discuss other results in Appendix E. (Simulations for other values of also yield similar results.)
We initialize both the naive mean field iteration near the uninformative fixed-point as follows:
Here has entries and and is the estimate at the uninformative fixed point. We run a maximum of and a minimum of iterations, and assess convergence at iteration by evaluating
where the minimum is over the set of permutation matrices. We declare convergence when . We denote by , the estimates obtained at convergence.
Recall the definition . In order to investigate the instability of Theorem 2, we define the quantities
It is clear from Figures 1, 2, that variational inference stops converging to the uninformative fixed point (although we initialize close to it) when is still significantly smaller than the Bayes threshold (i.e. in a regime in which the uninformative fixed point would a reasonable output). The data are consistent with the hypothesis that variational inference becomes unstable at , as predicted by Theorem 2.
In contrast, for large , we expect to be positively correlated with , and should concentrate around a non-random positive value. As a consequence, .
In Figures 3 we report our empirical results for and for four different values of , and several values of . As expected, these quantities grow from to as grows, and the transition is centered around . Figure 4 reports the results on a grid of values. Again, the transition is well predicted by the analytical curve . These data support our claim that, for , the output of variational inference is non-uniform but uncorrelated with the true signal.
Fixing the instability
The fact that naive mean field is not accurate for certain classes of random high-dimensional probability distributions is well understood within statistical physics. In particular, in the context of mean field spin glasses [MPV87], naive mean field is known to lead to an asymptotically incorrect expression for the free energy. We expect the same mechanism to be relevant in the context of topic models.
where .
We can now repeat the analysis of Section 2 with this new free energy approximation. It is easy to see that is again a stationary point. However, the Hessian is now
In particular, for , converges to : the uninformative stationary point is (with high probability) a local minimum.
2 TAP free energy for topic models
We now turn to topic models. The TAP approach replaces the free energy (3.9) with the following (see Appendix F.1 for a derivation)
When substituting in Eq. (4.3), the supremum of Eq. (4.4) is achieved at
Calculus shows that stationary points of this free energy are in one-to-one correspondence (via Eq. (4.5)) with the fixed points of the following iteration:
The stationarity conditions for the TAP free energy (4.3) are known as TAP equations, and the corresponding iterative algorithm (4.7), (4.8) is a special case of approximate message passing (AMP), with Bayesian updates. Note that the specific choice of time indices in Eqs. (4.7), (4.8) is instrumental for the analysis in the next section to hold. We also note that the general AMP analysis of [BM11, JM13] allows for quite general choices of the sequence of matrices . However, stationarity of the TAP free energy (4.3) requires that at convergence the condition (4.9) holds at the fixed point
It is not hard to see that the AMP iteration admits an uninformative fixed point, which is a stationary point of the TAP free energy, see proof in Appendix F.3.
This corresponds to a stationary point of the TAP free energy (4.3), via Eq. (4.5):
Further, this is the only stationary point that is unchanged under permutations of the topics.
3 State evolution analysis
State evolution provides an asymptotically exact characterization of the behavior of AMP, as formalized by the next theorem (which is a direct application of [JM13]).
where it is understood that with . In particular
Further , .
Using state evolution, we can establish a stability result for AMP. First of all, notice that the state evolution iteration (4.16), (4.17) admits a fixed point of the form , , for , see Appendix G.2. This is an uninformative fixed point, in the sense that the topics are asymptotically identical. The next theorem is proved in Appendix G.3.
If , then the uninformative fixed point is stable under the state evolution iteration (4.16), (4.17).
In particular, for , there exists such that, if we initialize AMP as in Theorem 3 with , then (recalling )
4 Stability of the uninformative fixed point
The next theorem establishes that the uninformative fixed point of the TAP free energy is a local minimum for all below the spectral threshold . Since , this shows that the instability we discovered in the case of naive mean field is corrected by the TAP free energy.
Let us emphasize that this result is not implied by the state evolution result of Theorem 4, which only establishes stability in a certain asymptotic sense. Vice-versa, Theorem 5 does not directly imply Theorem 4.
5 Numerical results for TAP free energy
In order to confirm the stability analysis at the previous section, we carried out numerical simulations analogous to the ones of Section 3.5. We found that the AMP iteration of Eqs. (4.7), (4.8) is somewhat unstable when . In order to remedy this problem, we used a damped version of the same iteration, see Appendix H.1. Notice that damping does not change the stability of a local minimum or saddle, it merely reduces oscillations due to aggressive step sizes.
We initialize the iteration as for naive mean field, and monitor the same quantities, as in Section 3.5. In particular, here we report results on the distance from the uninformative subspace , , in Figures 6 and 7, and the Binder cumulants and , measuring the correlation between AMP estimates and the true factors , in Figures 8, 9. We focus on the case , deferring to the appendices.
In the intermediate regime , the behavior of AMP is strikingly different from the one of naive mean field. AMP remains close to the uninformative fixed point, confirming that this is a local minimum of the TAP free energy. The distance from the uninformative subspace starts growing only at the spectral threshold (which coincides, in the present cases, with the Bayes threshold ). At the same point, the correlation with the true factors , also becomes strictly positive.
Discussion
Bayesian methods are particularly attractive in unsupervised learning problems such as topic modeling. Faced with a collection of documents ,…, it is not clear a priori whether they should be modeled as convex combinations of topics, or how many topics should be used. Even after a low-rank factorization is computed, it is still unclear how to evaluate it, or to which extent it should be trusted.
Bayesian approaches provide estimates of the factors , , but also a probabilistic measure of how much these estimates should be trusted. To the extent that the posterior concentrates around its mean, this can be considered as a good estimate of a true underlying signal.
It is well understood that Bayesian estimates can be unreliable if the prior is not chosen carefully. Our work points at a second reason for caution. When variational inference is used for approximating the posterior, the result can be incorrect even if the data are generated according to the prior. More precisely, we showed that for a certain regime of parameters, naive mean field ‘believes’ that there is a signal, even if it is information-theoretically impossible to extract any non-trivial estimate from the data.
Given that naive mean field is the method of choice for inference with topic models [BNJ03], it would be of great interest to remedy this instability. We showed that the TAP free energy provides a better mean field approximation, and in particular does not have the same instability. However, this approximation is also based on the correctness of the generative model, and further investigation is warranted on its robustness.
Acknowledgements
H.J. and A.M. were partially supported by grants NSF CCF-1714305 and NSF IIS-1741162. B.G. was supported by Stanford’s Caroline and Fabian Pease Graduate Fellowship.
References
Appendix A Some remarks on alternating minimization
We then define the alternating minimization iteration
If and , are bijective, we also define the dual iteration
The Hessian {\boldsymbol{H}}=\nabla^{2}_{({\boldsymbol{x}},{\boldsymbol{y}})}f\big{|}_{({\boldsymbol{x}},{\boldsymbol{y}})=({\boldsymbol{x}}^{*},{\boldsymbol{y}}^{*})} is strictly positive definite.
is a stable fixed point of the alternate minimization algorithm (A.3).
is strongly convex in a neighborhood of (and in particular, is a local minimum of ).
Further, if and the matrix is invertible, then the following are equivalent:
is a stable fixed point of the dual algorithm (A.4).
is strongly concave in a neighborhood of (and in particular, is a local maximum).
(A1)(A2) We compute the linearization of the iterations in (A.3) around the fixed point . Note that since is a minimizer of , using the implicit function theorem for the Jacobian of the update rule for in (A.3) we have
Similarly, for the Jacobian of the update rule for in (A.3) we have
Hence, is stable if and only if the operator
Since is strongly convex, the matrices are positive definite. Hence, the eigenvalues of are real and equal to the eigenvalues of the symmetric positive semi-definite matrix . Therefore, if and only if
Note that since is convex, . Therefore, if and only if . Hence, the fixed point is stable if and only if and this completes the proof.
(A1) (A3) By differentiating , we obtain
(B1) (B2) Linearizing the iteration (A.4), we get that is a stable fixed point if and only if the operator
Using the fact that , we have that if and only if
As shown above, the last condition is equivalent to , and by continuity of the Hessian, this is equivalent to being strongly concave in a neighborhood of . ∎
Appendix B Proof of Proposition 2.2
It is useful to first prove a simple random matrix theory remark.
For , let be the submatrix of with rows and columns with index in . Then, for any , the following holds with high probability:
Without loss of generality we can assume (because the rank-one deformation cannot decrease the maximum eigenvalue), and (because is non-decreasing in ). Note that is distributed as times a matrix. Large deviation bounds on the eigenvalues of matrices imply that, for any , there exists such that
for all large enough. The claim follows by union bound since there is at most such sets . ∎
First notice that Lemma B.1 continues to hold if is replaced by since (where the last bound holds with high probability since .
Note that if , whence any local minimum must be in the interior of . Let be a local minimum of . By the second-order minimality conditions, we must have
The last inequality holds with high probability by Lemma B.1. Inverting it, we get
The claim follows by taking a small constant (for which the right-hand side is lower bounded by for all ), or (for which the right-hand side is lower bounded by ). ∎
Appendix C Information-theoretic limits
C.2 Proof of Proposition 3.1
where expectations are with respect to independent of and . We then have
Further, the function on Eq. (C.4) is separately strictly concave in and , and in particular the last supremum is uniquely achieved at a point .
By Lemma D.1, for , , we have
Therefore, this is a stationary point of provided and (in particular, ). Since , for a differentiable function, it also follows that is a stationary point of .
In order to prove that is a local minimum of for , we apply Lemma A.1 to the function , whence . It follows from Eqs. (C.6) and (C.7) that the dynamics (A.4) then coincides with the state evolution dynamics discussed in Section 4.3, namely
Hence, the claim follows immediately from Theorem 4 and Lemma A.1.
(where we used and by the law of large numbers) and
Setting , and substituting in Eq. (C.14), we obtain
which coincides with Eq. (C.13) as claimed.
Appendix D Naive Mean Field: Analytical results
Again, can be written explicitly as
D.2 Derivation of the iteration (3.19), (3.20)
Let , the set of joint distributions that factorize over the rows of , namely
The goal in variational inference is to find the distribution in that minimizes the Kullback-Leibler (KL) divergence with respect to the actual posterior distribution of given
The function is known as Gibbs free energy or –within the topic models literature– as the opposite of the evidence lower bound [BKM17]. Since does not depend on , minimizing the KL divergence is equivalent to minimizing the Gibbs free energy.
Similarly, by taking fixed, we have
Therefore, the naive mean field iterations have the form
where are given in (D.2), (D.7) and
where are given in (D.1), (D.6) and
D.3 Derivation of the variational free energy (3.9)
where is the Gibbs free energy. In this appendix we derive an explicit form for when is factorized. We have
(The last term is the KL divergence between and the prior.)
Since both and have product form, their KL divergence is just a sum of KL divergences for each row of and each row of :
and the claim (3.10) follows by strong duality.
Putting together Eqs. (D.46), (D.47), and (D.48)-(D.49), we obtain the desired expression (3.9).
Using (3.10), we get the following expressions for the gradients of
D.4 Proof of Lemma 3.2
Therefore, the right hand side of (3.13) is non-negative, continuous, bounded for . Hence, using intermediate value theorem, (3.13) has a solution in .
Now we consider the first equation in (3.20). Using Lemma D.1, we have
For the second equation in (3.19), note that using Lemma D.1, we have
Finally, we check the second equation in (3.20). Using Lemma D.1, we have
D.5 Proof of Theorem 2
Since is positive definite, if and only if
Hence, has a negative eigenvalue if and only if
As explained above, has rank at most . Therefore, by Cauchy’s interlacing inequality, if ,
Hence, for , has a negative eigenvalue.
Appendix E Naive Mean Field: Further numerical results
In this section we report on additional numerical simulations using the alternate minimization to minimize the naive mean field free energy. These results confirm the one presented in the main text in Section 3.5.
In Figures 10 and 11 we plot Bayesian credible intervals for the weights as computed within naive mean field, for , . These simulations are analogous to the one reported in the main text in Figure 5, but we use () in Figure 10 and () in Figure 10.
The nominal coverage of these intervals is , but we obtain a smaller empirical coverage. For , the empirical coverage was (for ), (for ), and (for ). For , the empirical coverage was (for ), (for ), and (for ).
E.2 Results for k=3𝑘3k=3 topics
In Figures 12 to 15 we report our results using alternating minimization to minimize the naive mean field free energy for .
In Figures 14, 15 we consider the correlation between the estimates and the true factorization , and define a Binder cumulant as follows for . Let be the matrix with entries
Figures 14, 15 are consistent with the prediction that the correlation between the AMP estimates and the true factors starts to be non-negligible at the Bayes threshold.
Appendix F TAP free energy and approximate message passing
The posterior takes the form
The stationarity conditions for correspond to the belief propagation fixed point equations
Using the expression (F.10) in Eq. (F.4), and repeating a similar calculation for (F.3), we get
We can similarly expand for large :
Therefore, using again the central limit theorem,
Putting together Eqs. (F.11), (F.12), and (F.15), we obtain
Substituting the last two expressions in Eq. (F.20), we obtain
F.2 Gradient of the TAP free energy
Using these derivatives we can compute the gradient of the free energy
These coincide with the fixed point of the AMP algorithm in Section 4.2.
F.3 Uninformative critical point: Proof of Lemma 4.1
Substituting this in Eqs. (4.10), (4.11), and using again Lemma D.1, we get
Appendix G State evolution analysis
G.2 Uninformative fixed point
The state evolution recursion in (4.16), (4.17) admit uninformative fixed point of the form
First note that for this value of , for some (random) . Hence, using Eq. (D.58)
In addition, using the explicit form (D.5)
Hence, the pair in (G.4) is a fixed point for the iterations in (4.16), (4.17). ∎
G.3 Stability of state evolution and proof of Theorem 4
The following theorem characterizes the region of parameters in which the uninformative fixed point of the state evolution iterations in Lemma G.1 is stable.
Consider the state evolution equations in (4.16), (4.17). The uninformative symmetric fixed point of these equations is stable if and only if
We linearize Eqs. (4.16), (4.17) around the fixed point in (G.4) by setting , and expanding Eqs. (4.16), (4.17) to first order in . First note that Eq. (4.17) takes the explicit form
In the following, we shall decompose and in the components along and the ones orthogonal
and similarly for . Note that the linearization (G.9) preserves these subspaces
Next we consider Eq. (4.16). We compute the value of
for . We have
where . Therefore, we have
where . Expanding the exponential, we get
Therefore, linearizing Eq. ((4.16)), we get (below, we denote by the symmetric part of matrix , namely )
We next decompose in the component along and the one orthogonal, as per Eq. (G.10), and note that
Using this identity together with Eqs. (G.24), (G.25) in Eq. (G.31) we get
Together with Eqs. (G.11) to (G.13), these yield
Hence the uninformative fixed point is stable if and only if
Note that this is the same condition as the spectral threshold. ∎
G.4 Stability of the uninformative point: Proof of Theorem 5
We will establish an expansion of the form
Setting variables as per Eq. (G.44), we have
Considering next the second term in Eq. (G.53), we get
Setting variables as per Eq. (G.44), we have
where .
Let and, as in the previous proof, define the orthogonal decomposition , where , , . Using the representation (G.44), we get
Hence, we obtain immediately the claim. ∎
Setting variables as per Eq. (G.44), we have
Since is strongly convex, the maximum is realized when and can be computed order-by-order in . Hence, substituting (G.49) we obtain the claim. ∎
Setting variables as per Eq. (G.44), we have
where .
We are left with the task of proving that for . We will use the following random matrix theory lemma.
Finally define , and
Then, denoting by the largest singular value of , we have in probability.
Note that, almost surely, [BS10], and therefore almost surely.
Recall that, as long as is not an eigenvalue of , we have
It is immediate to see that (unless or ), almost surely, and therefore is given by the largest solution of the equation
where is the Stieltjes transform of the limit eigenvalues distribution of a Wishart matrix, which is given by the Marcenko-Pastur law [BS10]
Recall that is increasing on , , with (for a constant ) as , and as . We therefore can consider the following asymptotic version of Eq. (G.79):
We next state a general lemma that can be used to check whether a matrix of the form (G.74) is positive semidefinite.
Assume that one of the following two conditions holds:
and
and
Then, there exists a constant such that, almost surely, for all large enough.
Let us first prove that, under the stated conditions, . Since , we have if and only if
Hence, condition (G.90) is equivalent to , where
Note that is of the form of Lemma G.7, with
The claim that then follows by using the asymptotic characterization of in Lemma G.7.
We next prove that in fact . If the stated conditions hold, there exists small enough such that they hold also after replacing with and with . Let us write for the matrix of Eq. (G.87), where we emphasized the dependence on the parameters . We have , and hence the thesis follows since . ∎
In order to apply the last lemma, we will show that, for , the LDA model of Eq. (1.2) is equivalent for our purposes to a simpler model.
Recalling that , , and letting , we have
where and . Since is distributes as , and independent of , it is sufficient to prove that the law of is contiguous to the law of .
Note that by the law of large numbers, almost surely (see Eq. (G.23))
For , we have , and therefore the rank- perturbation in does not produce an outlier eigenvalue [BGN12].
Let as per Eq. (G.86), with , be a vector with i.i.d. entries , independent of , and , and define
If , then the law of the eigenvalues of the Hessian defined in Eq. (G.74) is contiguous to the law of the eigenvalues of .
where is defined as in the statement of Lemma G.9. Applying that lemma, we obtain that the law of is contiguous to the one of , and therefore we obtain the desired contiguity for the laws of eigenvalues. ∎
The next lemma establishes that the simplified Hessian is positive semidefinite.
Let be defined as per Eq. (G.98) where with , be a vector with i.i.d. entries , independent of , and .
If , then there exists such that, almost surely, for all large enough.
The matrix fits the setting of Lemma G.8 with
The claim follows by checking that condition 2 in Lemma G.8 holds. Indeed we have
Hence . Further, setting , we have
(The last inequality follows since .) This completes the proof. ∎
The proof of Theorem 5 follows immediately from the above lemmas. Since the law of the eigenvalues of is contiguous to the law of the eigenvalues of (by Lemma G.10), and with high probability, we have
Appendix H TAP free energy: Numerical results
AMP turns out to converge poorly near the spectral threshold, i.e. for . Note that this appears to be an algorithmic problem, rather than a problem related to the free energy approximation. To alleviate this issue, we used damped AMP for our numerical simulations. Damped AMP iterations are as follows
The matrices and are smoothed sum of Jacobian matrices and are computed as
In these calculations, is the smoothing parameter that throughout our simulations is fixed to .
The specific choice of this damping scheme (and –in particular– the construction of matrices , ) is dictated by the fact that this specific choice admits a state evolution analysis, analogous to the one holding on the undamped case.
Appendix I Approximate Message Passing: Numerical results for k=3𝑘3k=3
In Figures 16 to 19 we report our numerical results using damped AMP for the case of topics. These simulations are analogous to the one presented in the main text for , cf. Section 4.5.
Figures 16 and 17 report results on the normalized distance from the uninformative subspace , . These are consistent with the claim that AMP converges to a fixed point that is significantly distant from this subspace only if . In Figures 18 and 19 we present our results on the correlation between the AMP estimates , and the true factors , . We measure this correlation through the same Binder parameter introduced in Section E.2.
Appendix J Uniqueness of the solution to (3.13)
In this appendix, we prove that the solution to (3.13) is unique under the following conjecture
where and are the standard deviation and skewness of .
For a Gaussian random vector so that ,
Using the above conjecture, it can be shown that the solution to (3.13) is unique.
Note that using the proof of Lemma (3.2), is non-negative, continuous and monotone increasing for . Further,
Since , if we show that is decreasing, then for where is the smallest solution to , . This will imply that for that proves the uniqueness. We have
Hence, is decreasing if and only if
Therefore, it is sufficient to show that for ,
Note that if we let where is as in Conjecture J.1, we have
using Conjecture J.1. Therefore, is concave and (3.13) has a unique solution in .