Tutorials › Multivariate Statistics (Graduate) › Flip-Flop Maximum Likelihood for Kronecker Factors

Structured Covariance Models · Tutorial 887 of 975

Flip-Flop Maximum Likelihood for Kronecker Factors

Learn the conditional likelihood updates for the two covariance factors, and distinguish monotone likelihood improvement from guaranteed convergence of the factor estimates.

Advanced 12 min read

What You'll Learn

  • Write the matrix-normal likelihood for independent matrix-valued observations with Kronecker covariance.
  • Derive each factor’s conditional maximum-likelihood update and identify when it is positive definite.
  • Apply the alternating updates in a small numerical example.
  • Normalize factors without changing their Kronecker covariance.
  • State sufficient conditions for monotone likelihood improvement and characterize accumulation points.
  • Recognize when singular conditional scatter makes the likelihood unbounded.

Alternating estimation of Kronecker factors

A Kronecker covariance model replaces one large covariance matrix by factors that describe variation along separate dimensions. This structure can make estimation more manageable, but the two factors enter the likelihood together. Holding one factor fixed turns estimation of the other into a familiar covariance maximization; alternating these conditional maximizations gives the flip-flop algorithm.

The algorithm is an exact block-coordinate maximum-likelihood procedure, not a promise that every dataset has a finite estimate or that every run converges to a unique global maximum. The existence of each update, the scale ambiguity between factors, and the geometry of the likelihood all matter.

Model and notation: Let \(Y_1,\ldots,Y_n\) be independent \(p\times q\) random matrices with \(Y_k\sim MN_{p,q}(M,U,V)\). Here \(M\) is a fixed mean matrix, and \(U\) and \(V\) are symmetric positive-definite \(p\times p\) and \(q\times q\) covariance factors. The convention is \(\operatorname{Cov}(\operatorname{vec}(Y_k))=V\otimes U\), where \(\operatorname{vec}\) stacks columns. Write \(X_k=Y_k-M\).

For simplicity, the derivation first treats \(M\) as known. If the common mean is unknown, its conditional maximum-likelihood estimate for fixed \(U,V\) is \(\bar Y=n^{-1}\sum_{k=1}^nY_k\); the factor updates then use residuals \(X_k=Y_k-\bar Y\). The formulas below apply to either set of residual matrices when the mean is held fixed during the factor updates.

The likelihood and its conditional maximizers

The matrix-normal density has determinant factor \(|U|^{-q/2}|V|^{-p/2}\) and quadratic form \(\operatorname{tr}(U^{-1}X_kV^{-1}X_k^T)\). Thus, up to a constant independent of \(U,V\), the log-likelihood is

$$ \ell(U,V)=-\frac{nq}{2}\log|U|-\frac{np}{2}\log|V| -\frac12\sum_{k=1}^n\operatorname{tr}(U^{-1}X_kV^{-1}X_k^T). $$

The two factors are coupled in the quadratic term. If \(V\) is fixed, however, define \(A_V=\sum_{k=1}^nX_kV^{-1}X_k^T\). The terms involving \(U\) are \(-nq\log|U|/2-\operatorname{tr}(U^{-1}A_V)/2\). Similarly, with \(U\) fixed, define \(B_U=\sum_{k=1}^nX_k^TU^{-1}X_k\).

Theorem (conditional maximum-likelihood updates): If \(A_V\) is positive definite, the unique maximizer over \(U\succ0\), holding \(V\) fixed, is \(U_{\mathrm{new}}=A_V/(nq)\). If \(B_U\) is positive definite, the unique maximizer over \(V\succ0\), holding \(U\) fixed, is \(V_{\mathrm{new}}=B_U/(np)\).

To prove the first formula, set \(W=A_V^{1/2}U^{-1}A_V^{1/2}\), which is positive definite. Then \(\log|U|=\log|A_V|-\log|W|\), and \(\operatorname{tr}(U^{-1}A_V)=\operatorname{tr}(W)\). Apart from terms constant in \(W\), the conditional log-likelihood is

$$ \frac{nq}{2}\log|W|-\frac12\operatorname{tr}(W). $$

If \(\lambda_1,\ldots,\lambda_p\) are the positive eigenvalues of \(W\), this expression is the sum of \(nq\log(\lambda_j)/2-\lambda_j/2\). Each scalar term has derivative \(nq/(2\lambda_j)-1/2\), positive for \(\lambda_j<nq\) and negative for \(\lambda_j>nq\). It has its unique maximum at \(\lambda_j=nq\). Therefore the matrix maximum is \(W=nqI_p\), which implies \(U=A_V/(nq)\). Applying the same argument to \(B_U\), with \(np\) in place of \(nq\), gives the update for \(V\). \(\square\)

The denominators are the numbers of scalar measurements in each direction across the \(n\) matrices: \(nq\) for the \(p\)-dimensional factor, and \(np\) for the \(q\)-dimensional factor. Under the stated positive-definiteness conditions, each update is a genuine conditional maximum, so it cannot decrease the likelihood when the other factor is held fixed.

Worked updates and scale normalization

Worked Example: One Full Alternating Sweep

Let \(p=q=2\), \(n=2\), and take the residual matrices \(X_1=I_2\) and \(X_2=\begin{pmatrix}1&0\\0&2\end{pmatrix}\). Start with \(V=I_2\). Compute first the update for \(U\), then the update for \(V\) using that new \(U\).

Since \(V^{-1}=I_2\), \(A_V=X_1X_1^T+X_2X_2^T=\operatorname{diag}(2,5)\). Here \(nq=4\), so \(U_{\mathrm{new}}=\operatorname{diag}(2,5)/4=\operatorname{diag}(0.5,1.25)\), which is positive definite.

For the second update, \(U_{\mathrm{new}}^{-1}=\operatorname{diag}(2,0.8)\). The two contributions to \(B_U\) are \(X_1^TU_{\mathrm{new}}^{-1}X_1=\operatorname{diag}(2,0.8)\) and \(X_2^TU_{\mathrm{new}}^{-1}X_2=\operatorname{diag}(2,3.2)\). Their sum is \(\operatorname{diag}(4,4)\). Since \(np=4\), \(V_{\mathrm{new}}=\operatorname{diag}(4,4)/4=I_2\). Both updates are well-defined, and the second is the exact conditional maximizer given the updated \(U\).

Even when both updates exist, the individual factors are not identifiable without a convention: for any \(c>0\), \(V\otimes U=(cV)\otimes(U/c)\). This is the scale nonidentifiability of Kronecker factors. A common convention is \(|V|=1\), which selects one representative from each scale-equivalent pair. After an update pair \((U_*,V_*)\), let \(c=|V_*|^{-1/q}\) and replace it by \((U_*/c,cV_*)\). The replacement has determinant-one second factor and leaves the Kronecker covariance unchanged. Such rescaling is not an additional likelihood improvement; it only fixes the scale convention.

Worked Example: Enforcing a Determinant Constraint

Suppose an update gives \(U_*=\operatorname{diag}(1,4)\) and \(V_*=\operatorname{diag}(2,8)\), with \(q=2\). Then \(|V_*|=16\), so \(c=16^{-1/2}=1/4\). The normalized factors are \(U_{\mathrm{norm}}=U_*/c=\operatorname{diag}(4,16)\) and \(V_{\mathrm{norm}}=cV_*=\operatorname{diag}(0.5,2)\).

Their second-factor determinant is \(0.5\times2=1\), as required. Also \(V_{\mathrm{norm}}\otimes U_{\mathrm{norm}}=(cV_*)\otimes(U_*/c)=V_*\otimes U_*\), because the scalar factors \(c\) and \(1/c\) cancel. The fitted covariance is therefore exactly unchanged.

When an update does not exist

An update formula produces a positive-definite estimate only when its scatter matrix is positive definite. If \(A_V\) is singular, the conditional likelihood over positive-definite \(U\) has no finite maximizer: a direction with zero scatter can be assigned an eigenvalue of \(U\) approaching zero, increasing the likelihood without bound. The analogous issue occurs for singular \(B_U\). Thus it is not enough to write down the matrix formula; its positive-definiteness must be checked at every step.

Worked Example: A Singular Conditional Scatter

Take one \(2\times2\) residual matrix \(X=\begin{pmatrix}1&0\\0&0\end{pmatrix}\), hold \(V=I_2\), and let \(U_\varepsilon=\operatorname{diag}(0.5,\varepsilon)\) for \(\varepsilon>0\). Then \(A_V=XX^T=\operatorname{diag}(1,0)\), which is singular. With \(n=1\) and \(q=2\), the \(U\)-dependent log-likelihood is \(-\log|U|-\operatorname{tr}(U^{-1}A_V)/2\).

Here \(|U_\varepsilon|=0.5\varepsilon\), and \(\operatorname{tr}(U_\varepsilon^{-1}A_V)=2\). Consequently the conditional log-likelihood equals \(-\log(0.5\varepsilon)-1\), which tends to \(+\infty\) as \(\varepsilon\) decreases to zero. The formal scatter update would be \(\operatorname{diag}(0.5,0)\), not a positive-definite covariance factor. There is no finite conditional maximum in the allowed parameter space.

What convergence does and does not mean

When every conditional scatter matrix is positive definite, a flip-flop sweep consists of maximizing over \(U\) at fixed \(V\), then maximizing over \(V\) at the updated \(U\). Each step weakly increases the same likelihood. This proves monotonicity of the likelihood values, but it does not by itself prove that the parameter estimates converge, that a maximum exists, or that the limiting fit is globally optimal.

Proposition (a sufficient convergence interpretation): Consider exact alternating updates, with the scale ambiguity handled by a fixed normalization such as \(|V|=1\). Suppose the updates exist throughout the iteration, the likelihood is continuous, and the iterates lie in a compact subset of the normalized parameter space on which both conditional updates are unique and continuous. Then the likelihood values converge, and every accumulation point is a fixed point of the alternating update map. In the unconstrained factor coordinates, such a point is a conditional maximum in each factor and hence is stationary for the joint likelihood. These conditions do not imply a unique accumulation point or a global maximum.

For the likelihood claim, write \(\ell_t\) for the value after sweep \(t\). Exact conditional maximization gives \(\ell_{t+1}\geq\ell_t\). Continuity and compactness imply that \(\ell_t\) is bounded above, so the nondecreasing sequence has a finite limit. It follows that \(\ell_{t+1}-\ell_t\to0\). Let \(z_t\) denote the normalized pair of factors at the start of a sweep, and let \(F\) be the full-sweep update map. Compactness gives convergent subsequences; take one with \(z_{t_j}\to z_*\). Continuity of \(F\) and \(\ell\) yields \(\ell(F(z_*))-\ell(z_*)=\lim_{j\to\infty}(\ell_{t_j+1}-\ell_{t_j})=0\).

The total gain in a sweep is the sum of two nonnegative conditional gains. A zero total gain means both are zero. Because each conditional maximizer is unique, neither factor can be improved in its block at \(z_*\); hence \(F(z_*)=z_*\). At an interior block maximum the derivative with respect to that block vanishes. Both block derivatives therefore vanish at the fixed point, giving joint stationarity in the unrestricted factor coordinates. The normalization only chooses a representative of the scale-equivalent factors. This proves the stated accumulation-point result, not convergence of the entire sequence to one point. \(\square\)

Worked Example: Interpreting a Stable Likelihood Trace

Suppose a normalized run produces likelihood values \(-120.4,-115.1,-113.8,-113.8\), with further values increasing toward \(-113.8\). The nondecreasing trace is consistent with exact conditional maximization, and convergence of the likelihood values follows if they are bounded above. It does not establish that the factors have converged: distinct factor pairs can have nearly identical likelihoods, and a sequence can have multiple accumulation points.

If the iterates also remain in a compact normalized region and the update map satisfies the proposition’s continuity and uniqueness conditions, every accumulation point is a fixed point. To claim convergence to one particular pair of factors, an additional argument is needed, such as proving uniqueness of the limiting fixed point in the relevant set. A flat or nearly flat likelihood trace alone supplies no such proof.

Common pitfall

A common mistake is to say, “Each block update is a maximum, so the algorithm converges to the global maximum.” The first clause only says that each step is optimal with the other factor held fixed. It implies nondecreasing likelihood, not global optimality; a fixed point may be only a local or coordinatewise optimum. Nor does monotonicity ensure a finite endpoint if the likelihood is unbounded or the iterates escape every compact set. Check positive definiteness of both conditional scatters, address the scale ambiguity, and state the boundedness and continuity conditions before interpreting convergence.

Key takeaway: The flip-flop updates are \(U\leftarrow\sum_kX_kV^{-1}X_k^T/(nq)\) and \(V\leftarrow\sum_kX_k^TU^{-1}X_k/(np)\), provided the corresponding scatter matrices are positive definite. They exactly maximize one factor at a time; convergence of the likelihood is weaker than convergence to a unique global estimate.

Check Your Understanding

Use the model and conditions developed above to answer these questions.

  1. Why does the update for \(U\) divide its scatter matrix by \(nq\), rather than by \(np\)?
  2. What positive-definiteness condition is needed for the conditional maximum over \(V\) to exist?
  3. Explain why replacing \((U,V)\) by \((U/c,cV)\) leaves the Kronecker covariance unchanged.
  4. In the singular-scatter example, why does the conditional log-likelihood diverge as \(\varepsilon\to0\)?
  5. What does monotonicity of the likelihood establish, and what does it not establish about convergence or global optimality?
Clinical Biostats