Tutorials › Multi-Omics Data Integration › Comparing Competing Factor Solutions

Latent Factor Models and Their Interpretation · Tutorial 259 of 597

Comparing Competing Factor Solutions

Compare candidate factor solutions using complementary evidence, and identify which scientific interpretations are robust to the choice of model.

Advanced 12 min read

What You'll Learn

  • Compare training and held-out fit without treating a small improvement as decisive.
  • Diagnose residual patterns that a global fit statistic can conceal.
  • Align factors before comparing their loading profiles or stability.
  • Separate shared interpretations from conclusions specific to one factor solution.
  • State the assumptions and limitations behind common model-comparison approaches.

Why Compare Factor Solutions?

A factor analysis does not usually deliver one uniquely determined answer. Two candidate solutions may both represent the same multi-omics data reasonably well while differing in factor number, allocation of variation, or detail in their loading profiles. The practical task is not simply to select the solution with the smallest residual sum of squares. It is to assess whether improvements in fit are meaningful, whether important residual structure remains, whether the factors admit useful interpretations, and whether those interpretations recur under resampling.

The comparison is most informative when both candidates use the same subjects, features, transformations, missing-data treatment, and evaluation scheme. If those differ, a numerical fit difference may reflect preprocessing rather than the factor solutions. This tutorial uses a common matrix representation; the same reasoning can be applied block by block when features come from several omics assays.

Definition: Let \(X\) be an \(n \times p\) matrix of analyzed features, with rows representing subjects and columns representing features. A candidate solution with \(K\) factors approximates the data as \(X \approx \mathbf{1}\mu^T + FL^T\), where \(\mu\) is a vector of feature means, \(F\) is an \(n \times K\) matrix of subject scores, and \(L\) is a \(p \times K\) matrix of feature loadings. Its residual matrix is \(R = X - \mathbf{1}\mu^T - FL^T\). A factor solution comprises the specified model and its fitted scores and loadings; two solutions can differ in \(K\), constraints, or estimated parameters.

For a fair comparison, first verify that each candidate was fitted to the same analysis target. If features were standardized, use the same scaling parameters; if they were centered, use the same centering convention. Align loading profiles before comparing factors: factor order can be permuted, and multiplying a factor's scores and loadings by \(-1\) leaves the fitted matrix unchanged. A rotation can also change individual loading columns while preserving the fitted low-rank component. Consequently, compare factors only after reasonable matching and alignment, and distinguish the fitted subspace from a particular rotated representation.

Fit: Improvement, Generalization, and Complexity

A direct measure of in-sample discrepancy is the residual sum of squares, \(RSS = \sum_{i=1}^{n}\sum_{j=1}^{p} R_{ij}^{2}\). If features are on comparable scales, a per-cell mean squared error is \(RSS/(np)\); its square root is an RMSE in the analyzed feature units. These measures summarize overall discrepancy but do not show where it occurs. A more flexible solution can lower training RSS simply by adapting more closely to the observed data.

Evaluate generalization by fitting on training subjects and computing squared prediction errors on held-out subjects, using a prediction procedure defined before examining the held-out results. For a held-out set \(\mathcal{H}\) of subject-feature pairs, define \(MSE_{\mathcal{H}} = |\mathcal{H}|^{-1}\sum_{(i,j)\in\mathcal{H}}(X_{ij}-\widehat{X}_{ij})^2\). If the scientific goal is to predict new subjects, split by subject, not by individual cells: putting some cells from the same subject in training and others in validation can leak subject-specific information. All preprocessing that estimates parameters from the data must be learned from the training set and applied to validation data.

The tendency of training error to decrease with added factors has a simple justification in an unconstrained low-rank least-squares fit. Any rank-at-most-\(K\) fit is also an allowed rank-at-most-\(K+1\) fit, by adding a zero component. Thus the minimum training RSS over the larger feasible set cannot exceed the minimum over the smaller set. This argument does not guarantee that every optimization algorithm finds the global minimum, and added constraints or different likelihoods can change the comparison. It does explain why a training-fit gain alone is weak evidence for adding a factor.

$$ \min_{\operatorname{rank}(A)\leq K+1}\|X-\mathbf{1}\mu^T-A\|_F^2 \leq \min_{\operatorname{rank}(A)\leq K}\|X-\mathbf{1}\mu^T-A\|_F^2 $$

Information criteria can penalize complexity, but they require care. A likelihood-based criterion is meaningful only when both solutions define comparable likelihoods for the same observations and use compatible likelihood assumptions; a parameter count must also reflect the fitted model and its constraints. AIC or BIC calculated from incompatible likelihoods, different preprocessing, or informal effective parameter counts should not be treated as an objective ranking. Held-out fit, likelihood criteria, and residual diagnostics answer related but different questions.

Worked Example: A Small Held-Out Gain

Suppose two hypothetical solutions are fitted to the same 80 subjects and 100 standardized features. Sixty subjects are used for training and 20 are held out. The \(K=2\) solution has training RSS 4,800 and held-out RSS 1,200. The \(K=3\) solution has training RSS 4,400 and held-out RSS 1,176.

There are \(60 \times 100 = 6{,}000\) training cells. The training RMSE values are \(\sqrt{4{,}800/6{,}000}=\sqrt{0.8000}=0.8944\) and \(\sqrt{4{,}400/6{,}000}=\sqrt{0.7333}=0.8563\), in standardized feature units.

There are \(20 \times 100 = 2{,}000\) held-out cells. The validation RMSE values are \(\sqrt{1{,}200/2{,}000}=\sqrt{0.6000}=0.7746\) and \(\sqrt{1{,}176/2{,}000}=\sqrt{0.5880}=0.7668\). The held-out MSE decreases by \((0.6000-0.5880)/0.6000=0.0200\), or 2.00%.

The \(K=3\) model fits both sets slightly better in this split, but that small validation improvement does not establish that the extra factor is useful. The split's uncertainty, residual patterns, factor interpretability, and stability still matter. A repeated subject-level validation scheme can show whether a small difference is consistent across splits.

Residual Structure and Interpretation

Residual checks ask whether the candidate has left systematic structure unexplained. Examine residual variances by feature and by omics block, residual correlations between features, and residual patterns against fitted scores or relevant covariates. A few large residuals may be influential; a cluster of correlated residuals can indicate a missing shared pattern or model mismatch. A global RSS can conceal both. Conversely, a residual pattern need not mean that another factor should be added: it may reflect technical effects, an unsuitable likelihood, an outlier, or a feature-specific process outside the model's intended scope.

Interpretability is another comparison dimension, not a substitute for fit. Ask whether the loading profiles identify coherent feature sets, whether those profiles are distinguishable from one another, and whether the interpretation depends on an arbitrary rotation or threshold. In multi-omics analyses, check whether a proposed signal is supported across blocks or is driven by one block's scale or feature count. A factor's association with a biological label is descriptive unless the design and analysis justify a causal interpretation.

For two solutions, record conclusions at more than one level. A broad conclusion may be that a coordinated immune-related pattern is present. A narrower conclusion may assign a particular feature set to a specific factor, or claim that a factor combines two pathways. The broad conclusion can remain credible even when the narrower allocation changes between solutions.

Worked Example: Residual Checks Beyond the Total Fit

In a hypothetical analysis of 80 subjects and 100 standardized features, the \(K=2\) model leaves residual correlations of 0.42 and 0.35 for two feature pairs measured in different omics blocks. Under \(K=3\), those correlations fall to 0.08 and 0.10. However, a third pair's residual correlation changes only from 0.40 to 0.39.

The first two pairs show that the extra factor may capture some previously unmodeled cross-feature structure. The third pair remains strongly correlated in the residuals, so the added factor has not resolved all structured discrepancy. These correlations are diagnostics, not tests with automatic pass-or-fail thresholds; their importance depends on the data, the number of pairs inspected, and the scientific goal.

Suppose the held-out RMSE also falls only from 0.7746 to 0.7668, as in the preceding example. The evidence supports a modest predictive gain and improved fit for two residual relationships, not a claim that the \(K=3\) model has solved all residual dependence. Inspecting residuals by block and checking whether the remaining pair is a technical or biological pattern would be a sensible next step.

Resampling Stability and Robust Conclusions

Resampling asks whether a candidate's salient structure recurs when the observed subjects or features are perturbed. For subject resampling, refit each solution in bootstrap samples and compare its factors with the reference fit. Before computing profile similarities, match factors, account for sign changes, and use a consistent scaling. If factors cannot be matched, record that rather than forcing a misleading correspondence. Stability measures can include loading-profile correlations, agreement among selected high-loading features, or the frequency with which a factor is recovered. These quantities describe reproducibility under the chosen resampling scheme; they do not establish biological truth.

When comparing two solutions, stability should be considered alongside fit and interpretation. A factor that appears in nearly every resample with a similar profile is stronger evidence for a reproducible pattern than a factor that appears only occasionally. But high stability can occur for a systematic artifact, and low stability can reflect correlated or weakly identified factors that exchange or split across fits. Resampling diagnostics from the earlier material on factor stability are useful here, provided the factor matching and perturbation scheme are appropriate to the comparison.

Worked Example: An Extra Factor Is Not Recovered Reliably

Consider 30 hypothetical subject-bootstrap fits of \(K=2\) and \(K=3\) solutions. After matching and sign alignment, the two \(K=2\) factors have correlations with their reference loading profiles above 0.80 in 27 of 30 and 24 of 30 resamples. In the \(K=3\) fits, two factors are matched similarly, but the added factor has a correlation above 0.80 in only 9 of 30 resamples. Its median matched-profile correlation is 0.42; the two main factors have median correlations of 0.91 and 0.86.

The recovery frequencies are \(27/30=0.900\), \(24/30=0.800\), and \(9/30=0.300\). This pattern suggests that the two main profiles are more reproducible than the added one under this bootstrap procedure. It does not prove that the third factor is absent: it could be weak, split across other factors, or difficult to identify in samples of this size. The defensible conclusion is that the extra factor's specific loading interpretation is less robust to subject resampling.

A Disciplined Comparison

A practical comparison keeps the evidence separate before making an overall judgment. Do not combine incomparable measures into an arbitrary score. Instead, state what each measure shows, note where the candidates agree or disagree, and explain which conclusions remain supported under both.

1
Confirm comparability.
Check that the models use the same subjects, features, preprocessing, missing-data treatment, and evaluation target. Record differences that prevent a direct numerical comparison.
2
Compare fit at more than one scale.
Report training discrepancy and, when relevant, subject-level held-out prediction. Use a likelihood criterion only when its likelihood and complexity assumptions are appropriate.
3
Inspect residuals and factor meaning.
Identify residual structure that remains, and assess whether loading profiles give coherent, distinguishable interpretations across omics blocks.
4
Check reproducibility and scope conclusions.
Align factors across resamples and solutions. Separate interpretations supported by both candidates from claims that depend on one factor count or allocation.

Alternative approaches emphasize different goals. A variance-explained or scree-style summary is compact but can favor additional factors and says little about held-out prediction. Cross-validation evaluates prediction for a defined target but can be noisy, and its result depends on the split and preprocessing pipeline. Likelihood-based information criteria account for fit and a complexity penalty under their model assumptions. Posterior predictive checks assess whether simulated data from a fitted probabilistic model reproduce relevant features of the observed data. None replaces careful inspection of residuals, interpretability, or stability. The appropriate comparison depends on whether the main objective is prediction, compact representation, or interpretable and reproducible structure.

Common Pitfall and Limitations

A common mistake is to conclude, “The model with more factors has lower RSS, so it is the better solution.” This reasoning confuses the ability to fit the training data with evidence that the added factor captures a useful, generalizable pattern. Training RSS is expected not to increase when the fitting procedure can use a larger nested low-rank class. The correction is to check held-out performance, residual structure, factor coherence, and resampling stability, and to state what remains uncertain.

No comparison can remove dependence on modeling choices. Results can change with feature scaling, missingness, sample size, likelihood, prior or penalty, and rotation. Held-out performance estimates performance for the validation design, not universal predictive ability. Bootstrap stability concerns the selected perturbations and sample; it does not guarantee external reproducibility. If two factors are highly correlated or weakly identified, their separate labels may not be stable even when their combined subspace is. Report robust conclusions at the level the evidence supports, and avoid treating one solution as uniquely correct merely because it has the most attractive fit statistic.

Key takeaway: Compare factor solutions using complementary evidence. A conclusion is more robust when its fit is adequate, its residual structure is understood, its interpretation is coherent, and its central loading pattern recurs across resamples and plausible solutions.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. Two solutions have training RSS values of 900 and 820. What can be concluded from this comparison alone?
  2. A model's held-out sum of squared errors is 450 over 1,000 held-out cells. Calculate its held-out MSE and RMSE.
  3. Two aligned loading profiles have correlation \(-0.88\). What should be done before treating them as different factors?
  4. An added factor is recovered in 12 of 40 bootstrap fits. Calculate its recovery frequency and state one cautious interpretation.

Solutions. (1) The second solution has lower training RSS, but this alone does not show that it predicts better or that its extra structure is useful; compare held-out fit, residuals, interpretation, and stability. (2) The MSE is \(450/1{,}000=0.4500\) squared feature units, and the RMSE is \(\sqrt{0.4500}=0.6708\) feature units. (3) Check whether the profiles differ only by sign; multiplying one factor's scores and loadings by \(-1\) preserves the fitted component, so sign-align before comparing. (4) The recovery frequency is \(12/40=0.3000\), or 30.00%. The factor is not consistently recovered under this resampling scheme, so its specific interpretation is less robust; this does not prove that the underlying signal is absent.

Clinical Biostats