What Does Convergence Mean for a Factor Model?
A factor-estimation algorithm can stop because it has reached a useful solution, because its stopping rule has been met prematurely, or because numerical or modeling difficulties have stalled progress. These are different outcomes. Convergence diagnostics help distinguish them before scores, loadings, or other fitted quantities are used downstream.
For an iterative optimizer, convergence usually means that successive updates have become small and the algorithm is near a stationary point of its specified objective. It does not establish that the point is a global optimum, that the model is well specified, or that the inferred factors are scientifically meaningful. For Bayesian estimation by simulation, convergence concerns whether chains have adequately explored the target posterior distribution. A chain settling into a narrow range is not, on its own, evidence that it has explored that distribution.
The diagnostics below apply to multi-omics factor estimation whether a procedure optimizes a likelihood, a penalized objective, a posterior mode, or a variational objective, or generates posterior draws. The appropriate target must be identified first: for example, a log likelihood, a log posterior, or a variational evidence lower bound (ELBO). These objectives are not interchangeable.
State the Target and Its Assumptions
Let \(\theta\) denote the fitted parameters, including any factor scores, loadings, variance parameters, and model-specific effects. For an optimization-based fit, write its target as \(J(\theta)\), with larger values preferred. If the algorithm minimizes a loss, the same checks apply with the direction reversed. The objective must be evaluated consistently across iterations: the data, model, constraints, and objective definition must not change partway through a run.
A gradient-based stationarity check assumes that the objective is differentiable at the point being checked. If parameters are constrained, such as by a nonnegativity or normalization constraint, an unconstrained gradient need not be zero at a valid optimum; the relevant boundary or constrained optimality conditions must be checked instead. Numerical gradients are only useful if their approximation is sufficiently accurate. A tiny update alone can also be misleading: a very small step size or a failed line search can freeze an algorithm far from a stationary point.
For Bayesian sampling, the model and prior define a posterior distribution, and the simulation procedure must target that distribution correctly. Trace-plot and chain-comparison diagnostics assume that the chains were run with comparable settings and that warm-up draws, when needed, are excluded from summaries of retained draws. Diagnostics assess the sampled quantities, not the validity of the model or prior.
A factor model adds an important complication. Sign changes, permutations, or rotations can leave the fit unchanged under the model’s invariances. Consequently, raw factor-parameter traces or differences between fitted loading matrices may reflect equivalent representations rather than failed convergence. The earlier material on rotational invariance and scale and sign constraints motivates checking suitable constrained or invariant summaries, such as the reconstructed signal or implied covariance, alongside parameter-level diagnostics.
Optimization Diagnostics: Trajectories, Updates, and Gradients
Record the objective at every iteration, and inspect both the overall trajectory and the size of its successive changes. A consistent increase is expected for an algorithm whose stated guarantee is ascent; a decrease is expected for a descent algorithm. A plateau can be consistent with convergence, but it can also arise from numerical precision, a poor step size, or an implementation error. For EM, exact E- and M-steps under the usual regularity conditions do not decrease the observed-data likelihood. In practice, approximate steps, penalties, or a different objective can change what monotonicity is guaranteed.
The basic justification for EM’s likelihood check follows from a lower bound. Write \(Z\) for latent variables, \(Y\) for observed data, and \(q(Z)\) for any distribution over the latent variables. Jensen’s inequality gives
In EM, the E-step sets \(q(Z)\) to the current conditional distribution of \(Z\) given \(Y\), making the bound tight at the current parameter value. An exact M-step chooses a new \(\theta\) that does not decrease the bound. Since the bound is tight at the old value and is a lower bound at the new value, the observed-data log likelihood cannot decrease. This argument does not guarantee a global maximum; it only justifies a nondecreasing trajectory under the stated exact-step conditions.
Check successive parameter updates as well as objective changes. For parameters on very different scales, use scaled updates or a relative update measure rather than comparing unscaled changes directly. A small relative update combined with a small objective change is more persuasive than either alone. Where a differentiable, unconstrained objective is maximized, a small gradient norm supports stationarity. For constrained or penalized fits, use the relevant projected gradient or optimality check.
Worked Example: Reading an EM Objective Trajectory
Suppose a hypothetical EM fit to a multi-omics data set reports observed-data log likelihoods of \(-1250.00\), \(-1190.00\), \(-1176.00\), \(-1172.00\), \(-1171.80\), and \(-1171.79\) at successive iterations. Assume the algorithm is intended to perform exact EM updates for the same likelihood throughout.
Each value is at least as large as the preceding one, as expected under the exact-EM assumptions. The final increase is \[ -1171.79-(-1171.80)=0.01. \] Its magnitude relative to the absolute preceding log likelihood is \[ \frac{0.01}{1171.80}=0.00000854, \] or about \(8.54\times 10^{-6}\). This is a small change, but whether it meets a stopping rule depends on a tolerance chosen in advance and on the scale and numerical precision of the computation.
The trajectory is consistent with a plateau; it does not prove convergence by itself. The analyst should also check the update size, any available gradient or EM fixed-point residual, and whether the reported likelihood can be independently recomputed. If an exact-EM implementation instead showed a decrease, the stated assumptions would fail or the implementation or objective calculation would need investigation.
Worked Example: Combining Update and Gradient Checks
At a hypothetical unconstrained maximization step, let \(\theta=(0.800,1.200)\) and the next iterate be \(\theta_{\mathrm{new}}=(0.802,1.199)\). Suppose the gradient at the new iterate is \((0.004,-0.003)\), and the pre-specified checks require a relative update below \(0.002\) and a gradient norm below \(0.010\).
The relative update is \[ \frac{\sqrt{(0.802-0.800)^2+(1.199-1.200)^2}} {\sqrt{0.800^2+1.200^2}} = \frac{\sqrt{0.000005}}{\sqrt{2.080} } = \frac{0.002236}{1.442} =0.00155. \] The gradient norm is \[ \sqrt{0.004^2+(-0.003)^2}=0.00500. \] Both values are below their respective thresholds, so both checks pass for this iteration. They provide evidence of local numerical convergence under the example’s unconstrained, differentiable setup, but do not rule out a different solution from another initialization.
Bayesian Diagnostics: Trace Plots and Chain Comparisons
For Bayesian factor estimation, a trace plot displays retained draws of a scalar quantity against iteration, with separate traces for independent chains. Examine quantities that matter for the analysis, including suitable factor-model summaries. Look for persistent trends, long stretches with little movement, abrupt transitions, or chains occupying clearly different ranges. Also inspect autocorrelation: highly correlated consecutive draws contain less information than the same number of nearly independent draws.
A common numerical summary compares variation within chains with variation between chains. For \(m\) chains with \(n\) retained draws each, let \(W\) be the average within-chain variance and let \(B\) be \(n\) times the variance of the chain means. The classical estimate of the marginal variance is
When chains overlap and have similar variation, \(\hat{R}\) is near 1. A materially larger value signals that between-chain differences remain relative to within-chain variation. This is a diagnostic, not a hypothesis test or a proof of convergence. In practice, split, rank-normalized \(\hat{R}\) is generally preferred to the classical form above, especially for detecting some forms of non-normality and chain disagreement.
Effective sample size (ESS) summarizes how autocorrelation reduces the information in retained draws. For \(m\) chains of length \(n\), a basic approximation is \[ \mathrm{ESS}\approx \frac{mn}{1+2\sum_{k=1}^{\infty}\rho_k}, \] where \(\rho_k\) is the lag-\(k\) autocorrelation of the quantity being monitored. Actual implementations use finite-sample estimators and may report bulk and tail ESS. A large number of draws does not guarantee a large ESS, and a satisfactory ESS for one summary does not ensure adequate estimation of every other quantity.
Worked Example: Interpreting \(\hat{R}\) and ESS
Consider four hypothetical chains, each with \(n=1000\) retained draws of one scalar posterior summary. Suppose the average within-chain variance is \(W=0.960\), and \(B=4.00\). Then \[ \widehat{V}=\frac{999}{1000}(0.960)+\frac{4.00}{1000} =0.95904+0.00400=0.96304, \] and \[ \hat{R}=\sqrt{\frac{0.96304}{0.960}}=1.00158. \] This value is close to 1, suggesting little between-chain disagreement for this summary according to this diagnostic. It does not establish that the chains explored all relevant posterior regions.
Suppose the autocorrelation sum for this summary is approximately \(\sum_{k=1}^{\infty}\rho_k=4.50\). The basic ESS approximation gives \[ \mathrm{ESS}\approx \frac{4(1000)}{1+2(4.50)} =\frac{4000}{10}=400. \] Thus, 4000 retained draws provide roughly 400 independent-draw equivalents for this summary under the approximation. Trace plots, modern \(\hat{R}\), and ESS for other important summaries should also be checked before judging the run adequate.
Why Multiple Initializations Matter
An iterative factor fit can depend on its starting values. Fit the same model and objective from several deliberately different initializations, using the same data, constraints, and stopping criteria. Compare final objective values and convergence checks. Also compare fitted quantities that are meaningful under the model’s invariances; raw signs or factor order may differ even when the fitted solutions are equivalent.
Repeatedly reaching similar objective values is reassuring about reproducibility across those starts, but it is not proof of a global optimum: all starts may enter the same suboptimal basin. Conversely, distinct parameter values do not automatically imply distinct fits when rotations, signs, or permutations preserve the model’s fit. Distinct final objective values or substantively different invariant fitted quantities are stronger evidence of sensitivity requiring investigation.
Worked Example: Comparing Three Initializations
Suppose three hypothetical runs maximize the same penalized objective from different starts. Their final objective values are \(-1171.80\), \(-1171.82\), and \(-1174.20\). Assume all are checked for small updates and appropriate stationarity, and the first two yield nearly identical reconstructed signals, while the third yields a different reconstructed signal.
The first two objective values differ by \[ |-1171.80-(-1171.82)|=0.02, \] whereas the third is lower than the best value by \[ -1171.80-(-1174.20)=2.40. \] The close agreement of the first two runs supports reproducibility, while the third run’s lower objective and different reconstruction suggest a potentially inferior local solution. The evidence does not prove that \(-1171.80\) is globally optimal. A reasonable response is to use more starts, verify numerical stability, and report the initialization strategy rather than treating one run as definitive.
Failure Modes and Choosing a Diagnostic
| Warning sign | Possible explanation | Useful next check |
|---|---|---|
| Objective decreases during a procedure expected to ascend | Approximate update, inconsistent objective, or implementation error | Recompute the objective and verify the algorithm’s monotonicity assumptions |
| Objective is flat but updates remain large | Flat or ill-conditioned region, or a parameterization problem | Inspect scaled updates, gradients, and numerical conditioning |
| Updates are tiny but the gradient remains large | Stalled step size or failed optimization step | Check line search, step size, and gradient calculation |
| Bayesian chains occupy different ranges | Insufficient mixing, unresolved modes, or distinct equivalent parameterizations | Inspect invariant summaries, trace plots, and modern \(\hat{R}\) |
| Different starts yield different objective values | Local optima, numerical instability, or inconsistent fitting settings | Verify identical settings and increase the number and diversity of starts |
No single alternative replaces all the others. An objective trajectory is central for optimization but is not a substitute for gradients or update checks. Multiple starts probe sensitivity to initialization but cannot certify a global optimum. For Bayesian runs, \(\hat{R}\) emphasizes chain agreement, ESS addresses information lost to autocorrelation, and trace plots expose patterns that a single number may miss. Use several diagnostics suited to the procedure and the quantities that will be reported.
Factor nonidentifiability is a limitation of raw-parameter diagnostics: chains or optimizers may move among equivalent representations, making individual loadings appear unstable even when an invariant fitted quantity is stable. The converse also matters: a stable objective or reconstruction does not establish that a particular biological interpretation is valid. Convergence is a computational property of a fit, not evidence of causal effects, model adequacy, or scientific importance.
Common Pitfall
Wrong reasoning: “The objective changed by almost nothing, so the algorithm has converged and the solution is reliable.”
A flat objective is only one piece of evidence. The algorithm may be stalled, the objective may be numerically inaccurate, or a different initialization may produce a better solution. For Bayesian estimation, a visually stable trace from one chain can still miss other posterior regions. Correction: check objective behavior against the algorithm’s guarantees, inspect updates and gradients where applicable, compare multiple starts for optimization, and assess trace plots, \(\hat{R}\), and ESS across chains for Bayesian simulation. State the scope of the conclusion: diagnostics support practical convergence; they do not prove global optimality or model validity.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- An EM log likelihood decreases from \(-800.0\) to \(-800.3\). What should be checked before concluding that the fit is converged?
- Why can a very small parameter update fail to demonstrate stationarity?
- Four chains have similar traces and \(\hat{R}\) near 1 for one summary. What does this support, and what does it not prove?
- Two optimization starts have different loading signs but the same objective and reconstructed signal. Does this alone show a convergence failure?
Solutions. (1) Exact EM for a fixed observed-data likelihood should not decrease it under its standard exact-step conditions. Check that the same likelihood was evaluated both times, verify the E- and M-steps and numerical calculations, and determine whether the actual procedure uses approximate or modified updates. The decrease is a warning, not evidence of convergence. (2) A step can be tiny because of a stalled step size or failed line search while the gradient remains large. Check a suitable gradient or constrained optimality residual as well as the update. (3) The diagnostics support agreement between chains and practical convergence for that monitored summary, but do not prove full posterior exploration, adequate ESS for every quantity, or model validity. (4) No. A sign change can represent an equivalent factor parameterization. Compare appropriate invariant fitted quantities and inspect the fitting diagnostics before deciding whether the runs differ substantively.