Tutorials › Multi-Omics Data Integration › Resampling-Based Factor Stability

Latent Factor Models and Their Interpretation · Tutorial 244 of 597

Resampling-Based Factor Stability

Learn to compare factor subspaces and aligned factors across subject-resampled fits, and to report what those stability summaries do—and do not—establish.

Advanced 11 min read

What You'll Learn

  • Define factor stability relative to a specified subject-sampling and refitting procedure
  • Distinguish stability of a factor subspace from stability of its individual axes
  • Compare equal-dimensional subspaces using projectors and principal angles
  • Use matched-factor similarities only after addressing sign and permutation ambiguity
  • Design subject resampling that preserves paired multi-omics measurements
  • Summarize resampling variability without confusing it with biological validity

What Does Factor Stability Mean?

A factor solution is an estimated representation of subjects and measured features in a lower-dimensional latent space. It is useful only if the structure is reproducible enough for the intended interpretation. Yet “stable” needs a precise meaning: a solution may recover nearly the same latent subspace across samples while assigning different axes within that subspace to individual factors. Resampling subjects makes this distinction visible by asking how the fitted structure changes when the observed subjects are perturbed.

Consider a centered, possibly feature-standardized multi-omics data matrix \(Y\), with \(n\) subjects in rows and \(p\) features across the omics views in columns. A rank-\(K\) factor representation can be written as

$$ Y \approx ZL^\mathsf{T}, $$

where \(Z\) is an \(n \times K\) matrix of subject scores and \(L\) is a \(p \times K\) matrix of feature loadings. In a multi-view analysis, the columns of \(Y\) may be arranged in blocks, one per view, and the corresponding rows of \(L\) retain that block structure. This notation describes the shared factor representation; it does not require that every factor affect every view.

Definition: Subject-resampling factor stability is the reproducibility of a specified aspect of a factor solution when subjects are resampled and the same analysis procedure is refitted. The aspect may be the estimated factor subspace, matched individual factors, or another prespecified summary. Stability is always relative to the sampling design, preprocessing, model, and fitting procedure used.

A resampling analysis does not establish that a factor is biologically real, causal, or free of technical effects. It measures sensitivity to the particular subject perturbation. It also does not automatically include uncertainty from changing the feature set, model family, prior, or preprocessing: those are held fixed unless deliberately included in the procedure.

Why a Subspace Can Be Stable While Factors Are Not

The product \(ZL^\mathsf{T}\) can remain unchanged under a change of latent coordinates. For any invertible \(K \times K\) matrix \(R\), replacing \(Z\) with \(ZR\) and \(L\) with \(LR^{-\mathsf{T}}\) preserves that product. Thus, without further constraints, the model’s \(K\)-dimensional span may be identified even when its particular factor axes are not. Sign changes and permutations are especially simple examples of this ambiguity; the earlier material on Matching Factors Under Sign And Permutation Ambiguity addresses those alignment issues.

For a loading matrix \(L\) of full column rank, the feature-space subspace is \(\operatorname{span}(L)\). Replacing \(L\) by \(LR^{-\mathsf{T}}\) changes its columns but not their span. A subspace comparison therefore asks whether the fitted \(K\)-dimensional feature directions are similar, without requiring each axis to reproduce the same labels or order.

An individual factor is more demanding to assess. After accounting for sign and permutation, a factor axis is reproducible only if the fitted model gives that axis a sufficiently distinct and consistent role. When two directions are nearly interchangeable, a resample can rotate them within a stable subspace. In that case, interpreting a low factor-by-factor match as evidence that the entire latent structure disappeared would be misleading.

Key distinction: Subspace stability concerns the span of the estimated loading directions. Individual-factor stability concerns particular axes within that span, after alignment. Strong subspace stability does not imply strong stability of each factor.

Comparing Estimated Subspaces

Suppose the reference fit and a resampled fit both estimate \(K\) dimensions. Let \(Q_0\) and \(Q_b\) be \(p \times K\) matrices whose columns are orthonormal bases for their loading subspaces. Their projection matrices are \(P_0=Q_0Q_0^\mathsf{T}\) and \(P_b=Q_bQ_b^\mathsf{T}\). These projectors do not depend on which orthonormal basis is used for either subspace.

The principal angles \(\theta_1,\ldots,\theta_K\), each between zero and \(\pi/2\), quantify the separation between two equal-dimensional subspaces. The singular values of \(Q_0^\mathsf{T}Q_b\) are \(\cos(\theta_j)\). A convenient bounded summary is the root-mean-square sine of those angles:

$$ d_{\mathrm{sub}}(0,b) = \sqrt{\frac{1}{K}\sum_{j=1}^{K}\sin^2(\theta_j)} = \frac{\lVert P_0-P_b\rVert_F}{\sqrt{2K}}. $$

Here \(\lVert \cdot \rVert_F\) is the square root of the sum of squared matrix entries. The distance is zero for identical subspaces and approaches one for orthogonal subspaces. It is a descriptive distance, not a p-value or a universal pass/fail threshold.

The equality follows from the trace of the squared projector difference. Since \(P_0\) and \(P_b\) are symmetric idempotent projectors of rank \(K\), their squared Frobenius distance is

$$ \begin{aligned} \lVert P_0-P_b\rVert_F^2 &=\operatorname{tr}\{(P_0-P_b)^2\}\\ &=\operatorname{tr}(P_0)+\operatorname{tr}(P_b)-2\operatorname{tr}(P_0P_b)\\ &=2K-2\lVert Q_0^\mathsf{T}Q_b\rVert_F^2\\ &=2\sum_{j=1}^{K}\{1-\cos^2(\theta_j)\}\\ &=2\sum_{j=1}^{K}\sin^2(\theta_j). \end{aligned} $$

This comparison requires the same subspace dimension and a common feature coordinate system. In multi-omics work, the feature ordering, transformations, and view scaling used to define that coordinate system must be held fixed across fits. Otherwise, a measured difference can reflect changing scales or coordinates rather than resampling instability.

Worked Example: Calculating a Subspace Distance

Suppose a hypothetical two-factor reference fit and a subject-resampled fit span subspaces with principal angles \(10^\circ\) and \(30^\circ\). Their dimensions match, and both are expressed using the same standardized features. The normalized subspace distance is

\(d_{\mathrm{sub}}=\sqrt{\{\sin^2(10^\circ)+\sin^2(30^\circ)\}/2}\).

Using \(\sin^2(10^\circ)\approx0.03015\) and \(\sin^2(30^\circ)=0.25\), \(d_{\mathrm{sub}}=\sqrt{(0.03015+0.25)/2}=\sqrt{0.1401}\approx0.3743\).

The fitted subspaces are neither identical nor orthogonal. The result summarizes their angular difference; it does not say that 37.43% of factors were lost or that a particular factor is stable. The interpretation must be made relative to the range of distances across the full resampling analysis.

Designing a Subject-Resampling Assessment

The resampling unit should match the unit that is considered independently sampled. For independent subjects with paired measurements across several omics views, resample subjects jointly: each selected subject brings all of their view measurements and relevant covariates into the resampled data set. Sampling each view independently would break the cross-view pairing and assess a different data-generating setup. If observations are clustered or repeatedly measured, the independent unit may instead be a cluster or subject-level trajectory; the resampling scheme must preserve that dependence.

A bootstrap samples \(n\) subjects with replacement from the observed \(n\), so a resampled data set can contain repeated subjects and omit others. Subsampling selects subjects without replacement, often using fewer than \(n\) at a time. These schemes perturb the data in different ways; the choice should be reported and justified for the inferential target. In either case, the model and preprocessing should be refitted consistently. If a fit fails to converge, that failure is part of the assessment and should be reported, not silently replaced by a favorable fit.

1
Specify the target.
Decide whether the primary target is the whole \(K\)-dimensional subspace, matched factor axes, or both. State whether \(K\) is fixed or selected by the same prespecified rule in each resample.
2
Choose the resampling unit.
Resample independent subjects, keeping all measurements for each subject together across omics views. Adapt the unit if the sampling design has clusters or repeated measurements.
3
Refit the defined pipeline.
Apply the same feature transformations, model specification, and fitting procedure in every resample. Record rank selection and fitting failures rather than obscuring them.
4
Align and compare.
Compare equal-dimensional subspaces using a stated distance. For individual-factor comparisons, first resolve sign and permutation ambiguity using the established matching procedure.
5
Summarize the distribution.
Report the number of resamples, failures, rank outcomes, and the distribution of the chosen stability summaries. Interpret these as sensitivity to the stated subject perturbation.

There are two useful targets when rank can vary. A conditional assessment fixes \(K\) and asks whether that particular dimension’s fitted structure is reproducible. An end-to-end assessment repeats the rank-selection rule and reports how often each rank is selected, alongside stability comparisons for resamples with a comparable dimension. Subspace distances are not directly comparable when the dimensions differ, so the dimension must be stated rather than hidden in a pooled summary.

Worked Example: Distinguishing Axis and Subspace Evidence

In a hypothetical analysis, the absolute similarities between two reference factors and two resampled factors are

Reference factor 1 has similarities \(0.94\) and \(0.35\) to resampled factors 1 and 2. Reference factor 2 has similarities \(0.29\) and \(0.88\), respectively. Assume these similarities were calculated using a common, prespecified factor-matching measure, and that signs and permutations are handled consistently.

The larger entries are \(0.94\) for the first-to-first match and \(0.88\) for the second-to-second match. The matched factors therefore have high similarity in this resample, while the cross-matches are smaller. This supports axis-level agreement for this particular fit, but one resample is not a stability distribution.

Now suppose another resample has only moderate matched similarities, \(0.62\) and \(0.65\), while its subspace distance from the reference is \(0.08\). The small subspace distance indicates that the two-dimensional spans are close. The less decisive axis matches could arise because directions within that span rotate or exchange roles. The appropriate conclusion is that the subspace appears more reproducible than the individual axes in this comparison—not that the latent structure is absent.

Summarizing Resampling Results

A stability report should show the distribution, not only an average. Useful summaries include the median and range or selected quantiles of the subspace distance, the frequency of rank outcomes when rank is reselected, the fraction of attempted fits that converge, and factor-match summaries when axis-level stability is a target. If a threshold is used to label a factor “matched,” specify it before examining results and show the underlying similarity distribution as well. A single threshold can conceal borderline matches.

Worked Example: Reporting Stability Across Ten Resamples

A hypothetical analysis fixes the reference rank at \(K=2\), uses the same standardized feature coordinates in every fit, and compares each successful resampled subspace with the reference. Ten resamples yield distances \(0.10, 0.12, 0.15, 0.15, 0.18, 0.18, 0.20, 0.22, 0.25,\) and \(0.25\). All ten fits converge with dimension two.

The mean distance is \( (0.10+0.12+0.15+0.15+0.18+0.18+0.20+0.22+0.25+0.25)/10=1.80/10=0.1800\). The ordered list has a median of \((0.18+0.18)/2=0.1800\), and the observed range is \(0.10\) to \(0.25\).

A careful report would say that, in these ten subject resamples, the mean distance from the reference subspace was \(0.1800\), the median was \(0.1800\), and the observed range was \(0.10\)–\(0.25\). These values describe the resampling results under this analysis pipeline. Ten resamples provide a limited view of the distribution, and the numbers alone do not define a universal standard for acceptable stability.

Diagnostics, Alternatives, and Limits

Several checks help distinguish genuine resampling sensitivity from implementation problems. Confirm that subjects, rather than individual feature rows, are the sampling units; verify that paired views remain paired; and check that all fits use the same feature order and transformations. Inspect convergence and the selected dimension in every fit. A change in rank, failed optimization, or a large change in view scaling can make a factor comparison uninterpretable unless it is explicitly addressed. For algorithms with random initialization, use a consistent fitting policy and distinguish variation due to subject resampling from variation due only to random starts.

Subspace distances are most interpretable when the dimension is fixed and estimates are well-defined. When one resample selects a different dimension, comparing projectors as though both were rank \(K\) is not appropriate. Individual-factor matches can also be ambiguous when directions are nearly tied or when the model permits substantial rotations. Report such ambiguity instead of forcing a confident factor label.

Subject resampling is one alternative to evaluating reproducibility. A held-out split compares fits across separate portions of the data, but may be inefficient in a small cohort and can depend strongly on the split. Model-based posterior uncertainty describes uncertainty under a specified probabilistic model and prior; it answers a different question from perturbing the empirical subject sample. None of these approaches by itself establishes biological validity. Resampling stability is conditional on the measured cohort, chosen features, model, preprocessing, and fitting protocol.

A common mistake is to say, “Factor 1 changed its loading pattern, so the factor model is unstable,” without checking whether the span of the factors remained similar. The correction is to separate the two questions: quantify subspace stability without depending on an arbitrary basis, then assess individual factors only after alignment and with attention to whether their axes are distinguishable. The reverse mistake is also possible: a stable subspace does not guarantee that each factor has a reproducible interpretation.

Key takeaway: Resampling-based factor stability is a designed sensitivity analysis. State what is being compared, preserve the subject-level structure of the multi-omics data, and report subspace and individual-factor evidence separately.

Check Your Understanding

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

  1. Why can two fits have similar factor subspaces but dissimilar individual factors?
  2. For principal angles \(0^\circ\) and \(60^\circ\) between two rank-two subspaces, calculate the normalized subspace distance.
  3. In a study where every subject has both RNA and protein measurements, what should be resampled together, and why?
  4. Ten fits produce subspace distances with a mean of \(0.18\). Does this mean 18% of the factor structure is unstable? Explain.
  5. What should be reported if some resamples select a different factor rank or fail to converge?

Solutions. (1) A rotation within the same \(K\)-dimensional span can change the axes while preserving the subspace. (2) \(d_{\mathrm{sub}}=\sqrt{\{\sin^2(0^\circ)+\sin^2(60^\circ)\}/2}=\sqrt{(0+0.75)/2}=\sqrt{0.375}\approx0.6124\). (3) Resample each subject’s RNA and protein measurements together, preserving the paired cross-view record. (4) No. The mean is a normalized angular distance summary under a specified resampling procedure; it is not a percentage of unstable factors. (5) Report the rank outcomes and convergence failures, and do not treat distances between different-dimensional subspaces as directly comparable without a stated method.

Clinical Biostats