The Trade-off Between Covariate Dependence and Latent Structure in Representation Learning
Organizations: Faculty of Mathematics, Informatics, and Mechanics, University of Warsaw Warsaw, Poland · Institute of AI for Health, Helmholtz Munich Munich, Germany
Abstract
Disentangled representation learning seeks latent representations whose indicidual dimensions each align with a distinct covariate. Unsupervised approaches typically target latent dimension independence, yet this gives no guarantee that the resulting dimensions align with semantically meaningful covariates. Supervised approaches structure the latent space using observed covariates, but under correlated covariates they cannot simultaneously control one-to-one latent-covariate alignment and latent independence. We introduce a unified, supervised framework that couples latent dimension-covariate dependence with constraints on the latent structure. Within this framework, we show an inherent trade-off, where enforcing latent independence or exclusive one-to-one latent-covariate dependence comes at a provable cost in latent-covariate alignment. We prove that the resulting disentanglement regimes are ordered by the strength of that alignment. Each regime admits a closed-form transformation of the latent space. We apply these transformations post-hoc to realign the representations of pretrained models such as CLIP, DINOv2, and ViT, and we fold them into the inference of informed factor analysis (iFA), a probabilistic model with covariate-informed factors. On simulated and real multi-omics data, we show that both post-hoc alignment and iFA enable controllability of structured latent representations.
Figures & tables
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Transformation | (a) formula (general ) | (b) | (c) |
|---|---|---|---|
| Scenario 1 | Scenario 2 | Scenario 3 | Scenario 4 |
| Positive & negative (PN) | Autoregressive (AR) | Positive (P) | Negative (N) |
| - | |||
| Unstructured dependencies | Time/space dependences | Scale effects | Dummy-coded categories |
| Parameter | Description | Value |
|---|---|---|
| number of observations | ||
| D | number of features | 100 |
| number of factors | 10 | |
| a vector of coefficients | ||
| noise to signal ratio |
| Parameter | Description | Values |
|---|---|---|
| Controls the strength of covariate dependences. The covariance matrix is transformed as , with smaller values yielding weaker correlations ( - no correlations, - strongest correlations). | ||
| Controls the strength of latent-covariate dependence by scaling the coefficient vector: ; the smallest is selected so that the lowest , then are spread equilly ( - smallest factor-covariate dependence on average, strongest factor covariate dependence on average) |
| Name | Description | Implementation details |
|---|---|---|
| PCA | Principal Component Analysis. An unsupervised linear method extracting orthogonal directions that maximise variance in . ( Pearson, 1901 ; Hotelling, 1933 ) | PCA(n_components=10/20) - sklearn 1.8.0 ( Pedregosa et al., 2011 ) |
| MOFA | Multi-Omicss Factor Analysis A probabilistic multi-view factor analysis model with a mean-field variational approximation that approximates factor independence. ( Argelaguet et al., 2018 ) | mofapy2 0.7.4 model options: factors=10/20, spikeslab_weights=True, ard_weights=True, ard_factors=True , train options: convergence_mode="medium", iter=2000/5000 |
| PLS | Partial Least Squares. Extracts latent directions that maximise the covariance between and , subject to orthogonality of successive components. ( Wold, 1975 ) | PLSRegression(n_components=10/20) - sklearn 1.8.0 ( Pedregosa et al., 2011 ) |
| SPCA (Bair 2006) | Screening-based supervised PCA. A two-step method that first screens features of by their univariate association with (e.g., absolute correlation coefficient above a threshold), then applies standard PCA to the surviving submatrix. The factors are PCA directions of a covariate-relevant subset of features. | Our implementation: features filtered by absolute correlation above the empirical quantile treshold, then PCA(n_components=10/20) - sklearn 1.8.0 ( Pedregosa et al., 2011 ) |
| SPCA (Barshan 2011) | HSIC-based supervised PCA. Finds directions in maximising the Hilbert-Schmidt Independence Criterion with . The objective reduces to a generalised eigenproblem on , where is the -kernel matrix and is the centring matrix. | Our implementation: RBF kernel on with median bandwidth, linear kernel on , scipy 1.17.1 and numpy 2.4.6 |
| iVAE | Identifiable VAE. A variational autoencoder where the prior over is conditioned on the auxiliary variables via a factorised exponential family, . Trained by maximising the conditional ELBO with both an encoder and a decoder . ( Khemakhem et al., 2019 ) | Our implementation: PyTorch 1.13.1+cu117 , Gaussian variant encoder, prior and decoder MLPs with hidden units, LeakyReLU ; Adam, lr , batch , epochs= / . |
Disentangled Representation Learning
Disentangled representation learning separates distinct factors of variation so models can interpret, control, and generalize their predictions.
See all 231 papers