Minimize trace of inverse of convex combination of matrices. - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-20T05:28:48Z http://mathoverflow.net/feeds/question/68321 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/68321/minimize-trace-of-inverse-of-convex-combination-of-matrices Minimize trace of inverse of convex combination of matrices. Josh Dillon 2011-06-20T21:38:04Z 2011-06-22T11:25:35Z <p>Hello! (First question--please forgive me if its unclear.) </p> <p>I am interested in efficient/approximate optimization techniques for minimizing a norm of a convex combination of symmetric, positive semi-definite matrices. In particular I am wondering what techniques exist to efficiently solve the following problem:</p> <p>$\alpha^{*}=\arg\min\big\{\operatorname{trace}((\sum_i\alpha_i \mathcal{I}_i)^{-1}):\sum_i\alpha_i=1, \alpha_i\ge0 \big\}$</p> <p>where $\mathcal{I}_i$ are positive semi-definite matrices and $\operatorname{trace}$ is the sum of the eigenvalues. Edit: Furthermore, assume $\mathcal{I}_i\succ0$ for at least one $i$.</p> <p>Approximations are acceptable--I am interested in any "standard" approaches, should they exist. Should some other scalar function be more convenient this would be interesting to me too (ie determinant, nuclear norm, spectral radius, etc). The matrices are often sparse and could be extremely large.</p> <p>The simplest idea I had was to lower bound the sum of matrices using Weyl's theorem, ie, $\lambda_i(A+B)\ge \lambda_j(A)+\lambda_{n+i-j}(B)$ for $j\ge i$ giving me an upper bound to the trace of the inverse of the sum. I am wondering if another bound would be tighter or better still some clever variational approach exists.</p> <p>The motivation (shouldn't be relevant to the answer) for this problem comes from statistical machine learning. I would like to develop techniques for characterizing <a href="http://biomet.oxfordjournals.org/content/92/3/519.abstract" rel="nofollow">maximum composite likelihood estimators</a> (a generalization of the maximum likelihood estimator). Classical statistical analysis yields a convex combination of the expected Hessian matrices and is as above. (The $\mathcal{I}$ denotes the Fisher information matrix.)</p> <p>There is some similarity to the <a href="http://mathoverflow.net/questions/4224/eigenvalues-of-matrix-sums" rel="nofollow">Eigenvalues of Matrix Sums</a> question although I believe this question is sufficiently different to ask anew.</p> <p>Thanks,</p> <p>Josh</p> http://mathoverflow.net/questions/68321/minimize-trace-of-inverse-of-convex-combination-of-matrices/68333#68333 Answer by S. Sra for Minimize trace of inverse of convex combination of matrices. S. Sra 2011-06-21T02:50:30Z 2011-06-21T02:50:30Z <p>Define, </p> <p>$$A(\alpha) = \sum_i \alpha_i A_i.$$</p> <p>In your case (ignoring constraints for the moment), you have </p> <p>$$\min\quad\mbox{trace}(A(\alpha)^{-1}) = \sum_i e_i^TA(\alpha)^{-1}e_i,$$</p> <p>which makes it somewhat tricky to optimize.</p> <p>So, as per your request, here is a somewhat simpler setup that you may find useful. Consider,</p> <p>Now, look at the following two problems:</p> <p>$$\min_{\alpha}\quad \|A(\alpha)\|_2,$$</p> <p>and</p> <p>$$\min_{\alpha}\quad c^TA(\alpha)^{-1}c.$$</p> <p>Both of these can be cast into SDPs. For the first, we replace it by $$\begin{eqnarray} \min_{\alpha,t}\quad &amp;t\\ &amp;\begin{bmatrix} tI &amp; A(\alpha)\\ A(\alpha) &amp; tI \end{bmatrix} \succeq 0 \end{eqnarray}$$</p> <p>For the second, use a similar Schur-complement based idea to obtain $$\begin{eqnarray} \min_{\alpha,t}\quad &amp;t\\ &amp;\begin{bmatrix} A(\alpha) &amp; c\\ c^T &amp; t \end{bmatrix} \succeq 0 \end{eqnarray}$$</p> <p>You can add more constraints on $\alpha$ if you want. However, because these things are SDPs, they won't be too easy to solve for really large-matrices. </p> http://mathoverflow.net/questions/68321/minimize-trace-of-inverse-of-convex-combination-of-matrices/68355#68355 Answer by Roland Bacher for Minimize trace of inverse of convex combination of matrices. Roland Bacher 2011-06-21T09:40:45Z 2011-06-21T09:40:45Z <p>It is perhaps useful to restate your problem as the obviously equivalent problem of minimizing $-\gamma_1/\gamma_0$ where $x^n+\sum_{i=0}^{n-1}\gamma_ix^i$ is the characteristic polynomial of a matrix in the set ${\sum \alpha_i\mathcal I_i,\sum \alpha_i=1}$. Usual numerical methods applied to the rational function (in terms of parameters) $-\gamma_1/\gamma_0$ work perhaps well.</p> <p>It is perhaps also useful to have information on local maxima of $\det(A)=\pm \alpha_0$ for $A$ in your set. Solutions for your problem are perhaps not too far away.</p> http://mathoverflow.net/questions/68321/minimize-trace-of-inverse-of-convex-combination-of-matrices/68499#68499 Answer by fedja for Minimize trace of inverse of convex combination of matrices. fedja 2011-06-22T11:25:35Z 2011-06-22T11:25:35Z <p>Since the functional is convex, I would try modified gradient descent. The main problem with this approach is that you'll really have to compute the inverse matrix a few times, which may be out of question due to the "extremely large size" condition. If so, just disregard this answer.</p> <p>The algorithm is fairly simple: if you have $m$ matrices $A_j$ start with $a_j=1/m$ for all $j$. Compute $A(a)=\sum_j a_j A_j$. Compute $b_j=\operatorname{trace} A_jA^{-2}$. Now trace the path in the simplex $a_j\ge 0,\sum_j a_j=1$ that goes from $a$ in the direction of $b$ until it reaches some vertex (so you start moving in the direction of the projection of $b$ to the plane $\sum_j x_j=0$ until you reach a face, then move along the face in the direction that is the projection of $b$ to that face and so on). Let $a(t)$ be the point on that path at distance $t$ (along the path) and $T$ be the path length (you can use the $\ell^2$ or the $\ell^1$ distance, it doesn't seem to matter). Now start computing $\operatorname{trace}A(a(2^{-k}T))^{-1}$ ($k\ge 0$) until $2^{-k}T&lt;\varepsilon$. If the minimal one you attained is less than $\operatorname{trace}A(a)^{-1}$, move $a$ to the corresponding point and repeat.</p> <p>To keep track of how close you are to the optimal value, just compare $\max_j b_j$ and $\operatorname{trace}A(a)^{-1}$. Their difference dominates the error. </p> <p>I tried it with thirty 100 by 100 random matrices and it converged pretty fast but, as I said, if you are in no position to attempt a single matrix inversion or multiplication, this is pretty useless.</p>