Conceptio › Archive › arXiv CS
arXiv CS open access

LaMe: a Joint Latent Mediation Framework for High-Dimensional Systems

Gaël Poux-Médard et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
deep-learningmachine-learningneural-networks
Mediation analysis seeks to understand how an exposure influences an outcome through intermediate variables. However, as increasingly rich datasets become available, hundreds to thousands of potential mediators make these systems difficult to model and hard to interpret. Latent-variable approaches o
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Biometrics 000, 000–000 000 0000

DOI: 000

LaMe: a Joint Latent Mediation Framework for High-Dimensional Systems Gaël Poux-Médard1,3,∗ , Kaniav Kamary2 , Yohann De Castro3,4 , and Vivian Viallon1 1

Nutrition and Metabolism Branch, International Agency for Research on Cancer, WHO, Lyon, France Institut Camille Jordan, INSA Lyon, Centrale Lyon, Université Lyon 1, CNRS, Villeurbanne, France 3 Institut Camille Jordan, École Centrale Lyon, CNRS UMR 5208, Lyon, France 4 Institut Universitaire de France *email: pouxg@iarc.who.int

arXiv:2611.18180v1 [stat.ML] 13 Nov 2026

2

Summary: Mediation analysis seeks to understand how an exposure influences an outcome through intermediate variables. However, as increasingly rich datasets become available, hundreds to thousands of potential mediators make these systems difficult to model and hard to interpret. Latent-variable approaches offer a natural way to accommodate these high-dimensional settings. However, existing latent mediation methods face limitations, including overparameterization, biased inference, or limited scalability. We develop LaMe, a joint linear-Gaussian framework that summarizes a high-dimensional exposuremediator-outcome system through a small number of latent variables. We identify natural direct and indirect effects under an explicit assumption that the manifest measurements fully capture the latent mediators, and characterize conditions under which the latent representation effectively restricts the observed cross-covariance structure. Simulations assess recovery of observed association parameters, natural effects, and manifest features associated with latent mediation pathways across a range of challenging settings. Four real-world applications demonstrate competitive predictive performance with compact latent representations, including single-dimensional representations of biomarker and proteomic measurements. Together, these results establish LaMe as a practical framework for estimating and summarizing multivariate mediation systems under explicit structural and measurement assumptions. Key words:

joint modeling; latent mediators; mediation analysis; probabilistic inference

1. Introduction Deciphering how complex exposures exert their effects through intermediary processes is a cornerstone of modern epidemiology. In the NHANES data considered here, for example, lifestyle characteristics may directly influence glycohemoglobin levels, but might also affect blood biomarkers which in turn cause these variations. However, the continued emergence of large-scale, highdimensional datasets poses new challenges to established mediation analysis methods. Analyses conducted on biological data are particularly affected, as molecular profiling can yield hundreds or thousands of correlated molecular measurements, only a subset of which may be relevant to the mediating process linking an exposure to an outcome. Latent variable models have been introduced to extend classical mediation models to these settings (Albert, Geng, and Nelson, 2016; Chén, Crainiceanu, Ogburn, Caffo, Wager, and Lindquist, 2017; Derkach, Pfeiffer, Chen, and Sampson, 2019; Nath, Caffo, Wager, and Lindquist, 2023). This approach brings a number of improvements over non-latent mediation techniques (Zeng, Shao, and Zhou, 2021; Zhu, He, Ma, Hu, Li, and Li, 2024) (e.g. based on OLS, LASSO or ElasticNet): noise decomposition, information compression, interpretability and robustness of the estimates. However, existing latent mediation approaches face several limitations. Stepwise methods estimate latent scores separately from subsets of the observed data and use the resulting scores in subsequent regressions on remaining observed variables, potentially inferring latent variables that are irrelevant to mediation systems (Chén et al., 2017; Nath et al., 2023). Joint approaches avoid this issue by estimating latent variables along with their relation to observed variables, but may be overparameterized, prone to overfitting, limited in scalability, and typically assume univariate exposures, univariate outcomes, and the conditional independence among manifest variables given the latent mediators whereas biological measurement are generally correlated (Albert et al., 2016; Derkach et al., 2019). To address these limitations, we introduce the Latent Mediation (LaMe) framework, which jointly models multivariate exposures, outcomes and high-dimensional manifest variables through a small number of latent mediators without assuming diagonality of noise covariances, while explicitly accounting for direct exposure-outcome effects. This approach makes three main methodological contributions. First, LaMe is novel in that it infers latent mediators from a joint probabilistic model with multivariate exposures and outcomes, high-dimensional manifest variables, and nondiagonal residual covariance matrices. As a result, it avoids biases associated with estimating latent scores separately from the rest of the system as in stepwise procedures and estimates all its parameters based on all available information rather This paper has been submitted for consideration for publication in Biometrics

2

Biometrics, 000 0000

Latent models

Non-latent models

β(xm) Closed form: - OLS

β(my)

β(sm)

β(xs)

β(sy)

β(xy)

Signatures S

Three steps inference (latent) β(sm)

β(sy)

Outcomes Y

β(xy)

β(sy)

β(xy)

Closed form: - PCA+OLS/LASSO

I L

β(xs)

L

Joint inference (latent) β(xs)

β(sm)

β(sy)

Latent models

β(xs)

Exposures X

Iterative: - LASSO - ElasticNet - Pathway LASSO

Iterative: PLS(X,M)+OLS/LASSO K

β(xy)

β(xy)

Two steps inference (latent)

β(sm)

J

I

β(my)

Non-latent models

Two steps inference (non-latent)

J

Mediators M

β(xm)

Inference procedure

PCA+LASSO, PLS+OLS, (Derkach 2019), (Nath 2023), LaMe (our approach)

OLS, LASSO, ElasticNet, Pathway LASSO

β(xy)

Iterative: Univariate X, S, Y: (Nath 2023) Univariate X, Y: (Derkach 2019) Multivariate X, Y: LaMe (our approach)

Figure 1. Non-latent (left-panel) and latent (middle-panel) mediation systems, and overview of several associated inference procedures (right-panel) — (left and middle panels) Variables X, M , S and Y are specified in the ovals, structural coefficients matrices β are shown in rounded rectangles, and the system’s dimensions are given in white squares. Arrows represent causal relations between variables. For variables with a causal path to the outcome, squares’ color represents the total causal effect of a unit intervention on the corresponding variable on the outcome Y under the model specified in Eq. (2)–in this case, the sum of all causal paths leading to Y ; in the latent graph, the colors of the manifest-variable squares represent their conditional associations with Y , not causal effects. For both squares and arrows, blue represents a negative relation, red represents a positive relation, and color intensity represents its strength. (right-panel) Common optimization approaches to mediation systems and the order in which they infer parameters. Alt text: three-panel schematic comparing non-latent and latent mediation systems and their inference strategies. Exposures influence outcomes directly and through latent mediators; red and blue arrows indicate positive and negative relationships. The right panel groups methods by two-step, three-step, or fully joint estimation.

than subsets of observed variables. We characterize when the representation imposes a genuine restriction on cross-block relationships, distinguishing dimension reduction from a reparameterization of unrestricted regression. Second, LaMe connects joint probabilistic estimation methods (Albert et al., 2016; Derkach et al., 2019) with representations in which latent mediators are exactly recoverable from the manifest measurements (Chén et al., 2017; Nath et al., 2023; Zhao, Lindquist, and Caffo, 2020). Under this explicit restriction and suitable rank conditions, the aggregate natural direct and indirect effects are statistically identified from the observed data. Throughout this article, identifiability refers to statistical identification from the observeddata distribution, rather than causal identification of natural effects. We also introduce a score to assess which manifest variables are associated with exposures and informative about outcomes through the latent mediators, independently of how the latent variables are represented. Third, we derive closed-form EM updates for two equivalent likelihood factorizations, allowing computational efficiency to be improved when manifest measurements and exposures have substantially different dimensions. Simulations assess parameter recovery, effect recovery under the exact recoverability assumption, and feature ranking; real-world applications assess predictive performance and the compactness of the learned representations. These results position LaMe as a useful methodological option.

2. Background Let N > 1 be the number of observations and, for each observation, let I ⩾ 1 be the number of exposures, J ⩾ 1 the number of manifest variables, and L ⩾ 1 the number of outcomes. Then, let X ∈ RN ×I denote the exposure matrix, M ∈ RN ×J the manifest variables matrix and Y ∈ RN ×L the outcome matrix.

3 2.1 Non-latent models In their simplest form, linear mediation models are specified by the following set of structural causal equations (see Fig. 1-left):  X = εx    M = Xβ (xm) + εm (1)    (xy) (my) Y = Xβ + Mβ + εy The random vectors εx,n , εm,n and εy,n corresponding to the nth observation are usually assumed to be mean-zero Gaussians and mutually independent. Formally, for each observation n, εx,n ∼ N (0, Σx ), εm,n ∼ N (0, Σm|x ) and εy,n ∼ N (0, Σy|x,m ); these terms account for noise and/or exogenous variables. Coefficient matrices are β (xm) ∈ RI×J , β (xy) ∈ RI×L , β (my) ∈ RJ×L and noise covariances are Σm|x ∈ RJ×J , Σy|x,m ∈ RL×L . We consider that all variables are centered. As shown in Web Appendix 6, the inclusion of confounders C between X, M and Y is straightforward and is therefore omitted here for clarity. According to recent surveys (Rijnhart, Lamp, Valente, MacKinnon, Twisk, and Heymans, 2021; Zeng et al., 2021; Zhu et al., 2024), most high-dimensional mediation analyses published in the literature rely on non-latent linear mediation models, under which the parameters of Eq. (1) are estimated using sequential regression procedures combined with penalization. Classical mediation analysis is based on ordinary least squares (OLS) estimation of β (xm) , β (my) and β (xy) , while extensions to high-dimensional settings incorporate regularization to select the relevant mediators or improve estimation or prediction accuracy. Typical examples include the LASSO, Ridge and ElasticNet regressions. Another example is the Pathway LASSO model (Zhao and Luo, 2022), which introduces a nonlinear penalty targeting entire indirect paths rather than individual coefficients. These approaches allow for straightforward coefficient estimation, quickly converge to global optima, and provide readily interpretable results. On the other hand, they heavily rely on hyperparameter tuning and may yield unstable and selection-inconsistent estimates in the presence of strongly correlated mediators or high-dimensional regimes, where mediator selection can become effectively arbitrary (Wang, Lengerich, Aragam, and Xing, 2018; Ye, Zhu, and Coffman, 2021). 2.2 Latent models 2.2.1 Latent mediators. Structural equations. To overcome some of these limitations, latent models have been suggested, which assume the existence of unobserved variables, denoted by S ∈ RN ×K , where K is the number of latent dimensions. Following the latent mediation formulations of (Albert et al., 2016; Derkach et al., 2019), LaMe is specified by the following structural equations (see Fig. 1middle):  X = εx       S = Xβ (xs) + εs (2)  M = Sβ (sm) + εm      Y = Xβ (xy) + Sβ (sy) + εy The coefficient matrices of the model are β (xs) ∈ RI×K , β (sm) ∈ RK×J , β (xy) ∈ RI×L , β (sy) ∈ RK×L . The noise vectors εx,n , εs,n , εm,n and εy,n corresponding to the nth observation are assumed to be mean-zero Gaussians and mutually independent. Formally, for each observation n, εx,n ∼ N (0, Σx ), εs,n ∼ N (0, Σs|x ), εm,n ∼ N (0, Σm|s ) and εy,n ∼ N (0, Σy|x,s ), for some noise covariance matrices Σx ∈ RI×I , Σm|s ∈ RJ×J , Σs|x ∈ RK×K , Σy|x,s ∈ RL×L . To simplify the exposition, we omit observed confounders (say C) from the subsequent derivations. As shown in Web Appendix 6, the inclusion of confounders between X, S and Y is straightforward and requires only replacing the exposure variable with a composite variable ξ := [X, C], and appropriately partitioning the estimated coefficients corresponding to X and C. Natural effects. Under sequential ignorability, namely {Y (x, s), S(x′ )} ⊥ X|C = c and Y (x, s) ⊥ S(x′ )|X = x′ , C = c where Y (x, s) and S(x′ ) denote the counterfactual outcome and mediator under the corresponding interventions, the natural direct and indirect effects associated with a one-unit increase in the exposures are given by (Albert et al., 2016; Derkach et al., 2019): N DE = β (xy)

;

N IE = β (xs) β (sy) ,

(3)

2.2.2 Stepwise approaches. Stepwise approaches to latent mediation generally define S as a deterministic linear combination of manifest variables. These methods typically derive latent scores from an initial model, for instance from Principal Component Analysis (PCA), Partial Least Squares (PLS) or their variants; then, these scores enter as observed mediators in the subsequent estimation of a non-latent mediation model (Cai, Wang, and Zhu, 2023; Hu, DeSimone, and Wang, 2024; Kawano, Fujisawa, Takada, and Shiroishi, 2018; Zhao et al., 2020). However, most existing stepwise approaches do not use all available data to derive their latent scores. For instance, approaches based on PCA optimize S to explain the variance of M , and approaches based on PLS optimize S to explain the covariance between X and M , or M and Y , regardless of whether the resulting scores best characterize mediation between X

4

Biometrics, 000 0000

and Y . Conversely, a correctly specified model accounting for the joint variance and covariance of (X, M, Y ) does not require latent scores to be selected using only a subset of the observed relationships. 2.2.3 Joint modeling. A joint approach that maximizes a likelihood corresponding to the full structural model may therefore be preferable. The latent approaches of (Chén et al., 2017; Nath et al., 2023) both consider an univariate exposure and outcome, and both estimate the first latent direction and the associated path coefficients from a joint objective based on all observed data. In (Chén et al., 2017), the model extracts subsequent directions through approximate deflation while keeping earlier directions fixed. Consequently, the retained directions generally differ from those estimated by maximizing the joint likelihood of a full multivariate latent model; in particular, the sequential objective does not include cross-score residual covariances. Finally, the authors remark that inference may become cumbersome when J ≫ 1 without resorting to additional data augmentation techniques. The model introduced in (Nath et al., 2023) extends this approach beyond linear relationships to model S as an arbitrary deterministic function of M . However, this extension is limited to a single latent variable. Moreover, score selection and the estimated direct–indirect decomposition are sensitive to the scale of Y , as shown in Web Appendix 9. Finally, standardization of the univariate score is imposed algorithmically rather than incorporated into the objective function, complicating the analytical characterization of the resulting estimator. Joint probabilistic formulations, on the other hand, explicitly account for invariance to latent rescaling. In (Albert et al., 2016), the authors formulate a joint probabilistic latent model with a single latent mediator. The approach was later extended by (Derkach et al., 2019) to handle multivariate latent mediators. In that work, the authors assume a univariate exposure and outcome, and constrain the conditional noise covariance of manifest variables given latent mediators Σm|s to be diagonal. In this setting, however, we show in Web Appendix 10 that the non-regularized and correctly specified model from (Derkach et al., 2019) is equivalent to Factor Analysis of M followed by linear regressions on the resulting S when K > 1. Additionally, the diagonal constraint on Σm|s imposes conditional independence of manifest variables given the latent mediators, which is not necessarily true when M represents biomarkers. Finally, Condition 1 in (Derkach et al., 2019) is required for identification of the effects, but the proposed model does not guarantee that this condition holds.

3. Methods We develop LaMe to extend existing approaches by jointly modeling all observed variables, allowing non-diagonal noise covariance matrices and multivariate exposures, outcomes and latent information bottleneck. Under the exact recoverability assumption for S, the framework also permits identification of natural effects. We first detail the exact recoverability and information bottleneck assumptions made by our approach, then we develop a general inference procedure for an auxiliary model that does not assume exact recoverability, and we finally show in Proposition 1 that exact recoverability can be recovered through a likelihood-equivalent reparametrization of the model postestimation. This proposition further establishes that the parametric representations of natural direct and indirect effects are statistically identified under this condition. 3.1 Assumptions 3.1.1 Exact recoverability. Following score-based mediation approaches, which define latent mediators as linear combinations of manifest variables (Chén et al., 2017; Nath et al., 2023; Zhao et al., 2020), we assume the same kind of deterministic relationship holds within our probabilistic framework. Specifically, we will work under what we call the exact recoverability assumption, under which S = E[S|M ] := M β (ms) . We emphasize that this equality does not imply that the measurements M are causes of S; they remain the manifest variables causally influenced by S, with S causally influenced by X. This requirement is equivalent to: (4)

Σm|s β (ms) = 0 where β

(ms)

= ((β |

(sm) T

(sm)

) Σs β {z

Σ−1 m

+ Σm|s )

−1

}

(β

(sm) T

(xs) T

) (Σs|x + (β ) Σx β | {z Σs

(xs)

) }

We point out that the exact-recoverability approximation becomes increasingly accurate as the number of manifest variables J grows, making it well suited to high-dimensional settings. To see this, consider the difference between the unconstrained latent variable S in Eq. 2 and its exactly recoverable counterpart S ∗ = M β (ms) . Assuming that additional manifest variables (sm) T provide non-vanishing, non-redundant information about S, the measurement precision β (sm) Σ−1 ) grows linearly m|s (β J→∞

with J. Then, we show in Web Appendix 7 that E[||S ∗ − S||2 ] = O(J −1 ), meaning that S → S ∗ . Thus, as the number of informative manifest variables increases, the latent variable S of the unconstrained model in Eq. 2 asymptotically converges to the latent mediator that is exactly recoverable from M . Although exact recoverability is an idealization for finite J, it therefore becomes a reasonable approximation when sufficiently many informative manifest variables are available, supporting its use in high-dimensional settings. We show in Proposition 1 below that the joint model specified in Eq (2) can always be formulated to satisfy exact recoverability.

5 3.1.2 Information bottleneck. Introducing low-dimensional latent variables addresses several limitations of non-latent leastsquares mediation models. When the number of observations is finite, sampling noise can introduce spurious association patterns; by imposing a low-rank structure on the cross-covariance between X and M , and between M and Y , latent models alleviate this by forcing the model to focus on the most relevant covariation patterns, typically preventing overfitting the noise and improving robustness and generalization of structural parameters β (xs) , β (sm) , β (xy) , β (sy) . In this sense, the latent representation acts as an information bottleneck between observed variables (Chechik, Globerson, Tishby, and Weiss, 2005). Likewise, information bottlenecks can suppress weaker associations between observed variables, allowing the system to be approximated by a simplified representation that only captures its most defining patterns of covariation, which is a recurring objective of dimension-reduction approaches to mediation analysis. Under the assumptions from Eq. (2) (linear relations, full noise covariances and mutually independent noises), a necessary and sufficient condition for an information bottleneck can be formulated as (see Web Appendix 8 for details): ! ! Cov(X, M ) Cov(X, M ) K < rank where rank ⩽ min(I + L, J), (5) Cov(Y, M |X) Cov(Y, M |X) where Cov(·, ·) denotes an observed covariance. Conversely, K ⩾ min(J, I + L) is a sufficient condition ensuring that every possible cross-covariance matrix can be represented exactly. Then, the observable regression coefficients between X, M and Y estimated from the latent model in Eq. (2) are a reparametrization of those estimated by a non-latent OLS model, as shown in Web Appendix 8, limiting the interest of the approach. Note that assuming a diagonal conditional noise covariance Σm|s does not affect the condition above. In practice, the latent dimension K can be selected via cross-validation or information criteria such as AIC or BIC to balance model complexity and goodness-of-fit. 3.2 LaMe model 3.2.1 Likelihood. Starting from Eq. (2), θ = {β (xs) , β (sm) , β (xy) , β (sy) , Σx , Σs|x , Σm|s , Σy|x,s } denote the full set of model parameters, and p(θ) its prior distribution. Assuming that mean-zero Gaussian noises are mutually independent in Eq. (2), a natural factorization of the joint distribution is p(X, S, M, Y, θ) = p(X|θ)p(S|X, θ)p(M |S, θ)p(Y |X, S, θ)p(θ)

(6)

Recall that all the distributions above are Gaussian, with parameters specified as, for example, p(S|X, θ) = N (S; Xβ (xs) , Σs|x ). In the following derivations, we assume a flat prior p(θ) on all parameters, so that p(X, S, M, Y, θ) ∝ p(X, S, M, Y |θ). Other priors that regularize the parameters, together with an extension to log-normal variables, are discussed in Web Appendix 13. The latent nature of S prevents direct optimization of (6). We can, however, compute the incomplete likelihood by marginalizing the complete likelihood over all possible values of S. Using the complete likelihood expression (6), a standard Gaussian integration formula and grouping terms together, we find Z 1 ⟨S T S,A⟩+⟨S,B⟩+C N 1 ⟨B T B,A−1 ⟩ C NK −2 2 p(X, M, Y |θ) = (7) e (2π) 2 |A|− 2 |e {z } dS = e S

p(S,X,M,Y |θ)

(sm) −1 (sy) T Σm|s (β (sm) )T + β (sy) Σ−1 ) where A :=Σ−1 y|x,s (β s|x + β (sm) T (sy) T −1 ) + (Y − Xβ (xy) )Σ−1 ) . and B :=Xβ (xs) Σ−1 y|x,s (β s|x + M Σm|s (β P Above, |A| denotes the determinant of A and ⟨A, B⟩ := i,j Aij Bij is the Frobenius product. The expression of the normalization term C is provided in Web Appendix 12. The expectation-maximization algorithm then first computes the expectation of latent variables given the current parameter estimates θ(t) (E-step), and then derives the new optimal parameter set θ(t+1) given the expectation of latent variables computed in the previous step (M-step). This procedure is iterated until convergence.

3.2.2 E-step. Given the parameter estimates at the tth iteration, θ(t) , the E-step computes the conditional distribution of the latent variables S and evaluates expectations of functions of S with respect to this distribution. We show in Web Appendix 11 that, for any candidate distribution qθ(t) (S), the observed log-likelihood is lower-bounded as: Z p(S, X, M, Y |θ) log p(X, M, Y |θ) ⩾ qθ(t) (S) log dS (8) qθ(t) (S) S Then, it can be shown that this lower-bound is equal to log p(X, M, Y |θ(t) ), and therefore maximal, when: qθ(t) (S) = p(S|X, M, Y, θ(t) ) =

p(S, X, M, Y |θ(t) ) p(X, M, Y |θ(t) )

(9)

A full derivation of this result can be found in Web Appendix 11. We finally use qθ(t) (S) to compute the moments of S under the current parameter estimates before proceeding to the M-step, recalling that N is the number of observations: S

(t)

= BA−1

;

ST S

(t)

= N A−1 + A−1 B T BA−1

(10)

6

Biometrics, 000 0000

3.2.3 M-step. The M-step then computes the parameter set θ(t+1) that maximizes the lower-bound in Eq. (8) with qθ(t) (S) from Eq. (9). Taking β (sm) as an illustration: Z (t) (t) T qθ(t) (S) log p(S, X, M, Y |θ)dS = −S T S β (sm) Σ−1 ∂β (sm) ) M Σ−1 (11) m|s + (S m|s = 0 S

⇔ β (sm) = (S T S (t)

(t) −1

)

(S

(t) T

) M

(t)

where S and S T S are obtained from Eq. (10). Detailed derivations for other parameters are provided in Web Appendix 12. (t) (t) The EM algorithm alternates between the E-step, where S and S T S are computed given the current parameter estimates (t) (t) (t) θ , and the M-step, where the parameter estimates are updated to θ(t+1) given S and S T S , until convergence of the incomplete likelihood. The EM algorithm guarantees a non-decreasing likelihood and convergence to a stationary point (Neal and Hinton, 1998). Note that although we consider all parameters θ to be random variables, the EM optimization algorithm yields point estimates rather than their distribution. At this point, S may not be exactly recoverable from M as assumed in Eq. (4). In the next section, we show how to satisfy this assumption through a likelihood-equivalent reparametrization of the EM solution. 3.3 Identifiability The parametric representation of the observed moments recalled in Web Appendix 8 shows that the observed likelihood in Eq. (7) is invariant to some transformations of the latent space; the exact recoverability property limits these to invertible linear transformations, which makes natural effects identifiable. Proposition 1 (Statistical identification of the natural effects): The natural direct and indirect effect through S as defined in Eq. (3), namely β (xy) and β (xs) β (sy) , are uniquely identified from the joint distribution of (X, M, Y ) under the exact recoverability assumption S = E[S|M ] when the bottleneck condition from Eq. (5) is satisfied. Proof. [(Proposition 1)] Likelihood-equivalent reparametrizations. Let HM ∈ RK×K and HY ∈ RK×K denote invertible matrices. Then, we define the elements of a set of transformed parameters denoted by θ∗ expressed in terms of θ, HM and HY as: ;

T Σ∗s|x = HM Σs|x HY

−1 (sm) β β∗(sm) = HM

;

Σ∗m|s = Σm|s + (β (sm) )T Σs|x β (sm) − (β∗(sm) )T Σ∗s|x β∗(sm)

β∗(sy) = HY−1 β (sy)

;

Σ∗y|x,s = Σy|x,s + (β (sy) )T Σs|x β (sy) − (β∗(sy) )T Σ∗s|x β∗(sy)

β∗(xs) = β (xs) HM

β∗(xy) = β (xy) + β (xs) β (sy) − β∗(xs) β∗(sy)

;

(12)

Σ∗x = Σx

Finally, in the absence of additional assumptions, the relation P (X, M, Y |θ) = P (X, M, Y |θ∗ ) holds. We demonstrate in Web Appendix 14 that no other likelihood-equivalent reparametrizations exist when the bottleneck condition from Eq. (5) is satisfied. Parametrizations with exact recoverability. From the definition in Eq. (4) and noting that Σ∗m = Σm (see Web Appendix 15), we derive an expression of HM HY−1 such that they define a reparametrization that satisfies the exact recoverability (sm) T ∗ assumption, meaning Σ∗m|s Σ−1 ) Σs = 0, as: m (β∗  −1 (sm) T −1 HM HY−1 = (β (sm) Σ−1 ) ) − (β (xs) )T Σx β (xs) Σs|x m (β (sm) T Note that the relation above is defined as long as β (sm) Σ−1 ) is non-singular, which is necessarily true when the m (β bottleneck condition from Eq. (5) is satisfied. We demonstrate in Web Appendix 15 that the expression above also guarantees the positive semi-definiteness of all transformed noise covariances Σ∗s|x , Σ∗m|s and Σ∗y|x,s . Therefore, any choice of an invertible HM , along with the corresponding HY from the equation above, guarantees the assumption from Eq. (4) is satisfied. (sm) T Invariance of natural effects under exact recoverability. Note that β (sm) Σ−1 ) = Σ−1 (see Web Appendix 15) when m (β s the assumption in Eq. (4) is verified. Injecting it in the expression above yields HM HY−1 = I. Identification of the natural effects coefficients under the exact recoverability assumption immediately follows:

β∗(xy) = β (xy) + β (xs) (I − HM HY−1 )β (sy) = β (xy) ;

β∗(xs) β∗(sy) = β (xs) HM HY−1 β (sy) = β (xs) β (sy)

We point out that assumptions other than exact recoverability may also make the NDE and NIE identifiable, although they may not provide similar convergence guarantees when J → ∞; for instance, alternative choices may allow S to be a noisy function of M rather than deterministic. This question lies outside the scope of the present article and is left for future work.

7 3.4 Alternative factorization The causal model specified in Eq. (2) implies two conditional independence relationships, M ⊥ X|S and Y ⊥ M |X, S, which allow the joint distribution of (X, S, M, Y ) to be factorized equivalently in two ways, denoted LaMe-vX and LaMe-vM hereafter: p(X, S, M, Y |θ) = p(X|θ)p(S|X, θ)p(M |S, θ)p(Y |X, S, θ)

(LaMe-vX)

= p(M |θ)p(S|M, θ)p(X|S, θ)p(Y |X, S, θ)

(LaMe-vM)

(13)

Both factorizations describe the same family of joint distributions and can therefore be used interchangeably for parameter estimation, with parameters from either representation recoverable from the other. Note that this reformulation is not necessarily equivalent in the presence of regularization, orthogonality, or structural constraints –for instance, a diagonal conditional noise covariance in (Derkach et al., 2019) prevents such equivalence. However, it holds for any reparametrization based on Eq. (12), including those assuming exact recoverability. A first remark is that alternative factorizations may not correspond to any relevant causal system. For instance, the coefficient β (sx) in LaMe-vM has no causal interpretation in a mediation analysis setting; however, as shown in Web Appendix 16, it can be used to retrieve the relevant causal path coefficient β (xs) . Second, structural parameters differ depending on the factorization. Third, optimizing the joint model using one factorization instead of the other can make the EM algorithm orders of magnitude faster and the estimation more accurate when J ≫ I: using the LaMe-vM factorization, Σx|s and Σs|m must be updated (O(N I(K + I) + N K(K + J))) at each iteration whereas Σm needs to be updated (O(N J 2 )) only once. We numerically support this result in Web Appendix 19. The full table of the update equations for both models is available in Web Appendix 12.

4. Results For both the LaMe-vX and LaMe-vM factorizations (see Eq. (13)), we stop the EM loop once the relative change in the log-likelihood remains below 10−5 for ten consecutive iterations. This procedure is repeated 50 times with different random initializations, and the run with the highest likelihood is selected. We consider both unregularized models and models with an ℓ1 penalty on the regression coefficients linking S and M . 4.1 Baselines We evaluate LaMe against OLS, OLS with ℓ1 regularizer (LASSO), OLS with ℓ1 and ℓ2 regularizers (ElasticNet), PCA on the manifest variables M followed by OLS or LASSO on the resulting (X, S, Y ) latent mediation system (PCA+OLS and PCA+LASSO), PLS on X → M followed by OLS on [X, S] → Y (brackets denote column-wise concatenation) (PLS(X,M)+OLS), PLS on X → [M, Y ] followed by OLS on X → Yres (PLS(X,M,Y)+OLS), OLS on the direct path X → Y followed by PLS on the indirect path X → [M, Yres ] (OLS+PLS(X,M,Y)) (where Yres are the residuals of Y that are not explained by the model used in the first step), an over-parametrized version of LaMe-vX (OVP-LaMe), and an adaptation of the latent mediation model described in (Nath et al., 2023) (Joint Alternate Optimization - Gaussian case JAOG). A discussion of our adaptation of (Nath et al., 2023) (originally designed for univariate latent mediators) and why we consider OVP-LaMe rather than the model of (Derkach et al., 2019) is provided in Web Appendix 18. All experiments were run on an Intel Core Ultra 7 165U CPU; a scalability comparison is provided in Web Appendix 19. 4.2 Synthetic data 4.2.1 Data generation. Synthetic variables X, M, Y are generated according to the linear-Gaussian structural equations specified by Eq. (2) when data are assumed to stem from a latent model, and according to Eq. (1) when we assume the absence of a shared latent structure. The dimensions I, J, L and possibly Ktrue are specified for each experiment below. Noise covariances are rescaled so the following signal-to-noise ratios (SNR) SN R(S|X), SN R(M |S), SN R(Y |X, S) (in the latent (sm)

Var(Sβ case) and SN R(M |X), SN R(Y |X, M ) (in the non-latent case) attain a given value (e.g. SN R(M |S) = Var(N (0,Σ

)

m|s ))

25 = 100

means 20% of the variations in M are explained by the signal from S, and 80% are due to random noise; see Eq. (2) and Web Appendix 17). 4.2.2 Recovering underlying parameters. To compare LaMe against baselines that do not assume the existence of latent mediators (e.g. OLS and OVP-LaMe), we first evaluate the capacity of each model to recover the true marginal association between observed variables X and M (β (xm) := ∇X E[M |X]) and between M and Y (β (my) := ∇M E[Y |M ]). Not only do these coefficients provide a common basis for comparing models, they are also involved in the computation of the natural effects under the exact recoverability assumption (i.e. N IE = β (xs) HM HY−1 β (sy) = β (xm) β (my) where HM HY−1 are derived from Proposition 1). A detailed assessment of LaMe’s capacity to retrieve causal natural effects is developed in the next subsection. (xm) (my) We compare the models’ estimates with the corresponding parameters used for data generation, βtrue and βtrue , using the mean absolute error across all coefficients as the evaluation metric. We present results under a challenging configuration with I = 100, J = 100, L = 1, signal-to-noise ratios SN R(M |S) =

Biometrics, 000 0000

Average | (my)

(my) true |

Average | (xm)

(xm) true |

8

0.025 0.020 0.015 0.010 0.005 0.000 0.025 0.020 0.015 0.010 0.005 0.000

Latent data generation process OLS OVP-LaMe PCA+OLS PLS(X,M,Y)+OLS PLS(X,M)+OLS OLS+PLS(X,M,Y) JAOG LaMe (vX)

1000 1470 2150 3160 4640 6810 10000

Non-latent data generation process 0.03 0.02 0.01 0.00

1000 1470 2150 3160 4640 6810 10000

0.04 0.03 0.02 0.01 1000 1470 2150 3160 4640 6810 10000 Number of observations (N)

0.00

1000 1470 2150 3160 4640 6810 10000 Number of observations (N)

Figure 2. LaMe accurately retrieves underlying parameters — LaMe and baselines when I = 100, J = 100, L = 1, and a signal-to-noise ratio from S to M and Y equal to 0.1 for varying N . (Top) Mean absolute error of the estimated (xm) coefficients β (xm) relative to the true coefficients βtrue | (Bottom) Mean absolute error of the estimated coefficients β (my) (my) relative to the true coefficients βtrue | (left) Data generated using a latent process (K = 10, see Eq. (2)) with the true K provided to all latent models | (right) Data generated using a non-latent process (see Eq. (1)) with K = min(J,I+L) for all 2 latent models except for OVP-LaMe where K = I+J+L = 100. Alt text: on latent data, LaMe’s estimates decrease with N 2 toward smaller mean absolute errors on the true parameters whereas other models do not for N ∈ [1000; 10000]; on non-latent (my) data, estimates from OLS, OVP-LaMe, LaMe and JAOG decrease with N toward a smaller mean absolute error on βtrue whereas other models do not for N ∈ [1000; 10000]. SN R(Y |X, S) = 0.1 and SN R(S|X) = 1. Data generated from the latent mediation system in Eq. (2) uses Ktrue = 10 latent dimensions. For all latent models (OVP-LaMe aside), K is set to Ktrue when data are generated under a latent model. When data are generated under a non-latent model, we set K = min(J,I+L) to test latent models’ ability to compress a full-rank 2 covariance matrix between X and M, Y through a matrix of half this rank. Regularized models (LASSO, ElasticNet, Pathway LASSO, PCA+LASSO) are not considered because the data in this experiment were generated without sparse coefficients. (my) (xm) Fig. 2 reports the mean absolute error between the inferred (β (xm) , β (my) ) and the true (βtrue , βtrue ), for varying numbers of observations N , and for data generated under latent and non-latent models. First, LaMe consistently outperforms all baselines in the latent case (Fig. 2-left). In particular, because Ktrue ≪ min(J, I + L), LaMe reduces estimation error through its low-rank restriction where OLS cannot. Second, and as expected, OVP-LaMe performs similarly to OLS, confirming that the violation of Eq. (5) allows OVP-LaMe to converge to a solution equivalent to the OLS solution. In particular, OVP-LaMe is prone to overfitting, just as OLS, when data are generated under a latent model. In the non-latent case, LaMe outperforms latent baselines and performs nearly as well as the non-latent models, despite the constraint K = min(J,I+L) . 2 Additional results for {I = 50, J = 200}, as well as for varying signal-to-noise ratios are presented and discussed in Web Appendix 21. 4.2.3 Causal effect recovery. We recall from Eq. (3) that N IE = β (xs) β (sy) , N DE = β (xy) and T E = β (xs) β (sy) + β (xy) (Albert et al., 2016; Derkach et al., 2019). We observe that LaMe correctly retrieves the ground-truth natural effects coefficients overall in Fig. 3, when optimized with N = 1 000 observations on data generated under the exact recoverability assumption (see Proposition 1) with I = 10, J = 50, K = 5 and L = 1, unless specified otherwise. The normalization using the true total effect provides a shared comparison ground while avoiding artificial errors when either the NDE or NIE coefficient is small. Fig. 3-top in particular shows that natural effects estimation error is stable when K is larger than the true number of latent dimensions Ktrue used for data generation. When K < Ktrue however, the NDE and NIE estimates are not accurate, as the under-parametrized model must express effects through a smaller number of latent variables. Taken together, these findings hint at a possible model selection strategy based on parameter stability rather than information criteria. Estimation

1

True NIE norm 10 100 1000

K used for estimation (Ktrue = 5) 1 3 5 7 9

9

||NDE NDEtrue||2 ||TEtrue||2

||NIE NIEtrue||2 ||TEtrue||2

||TE TEtrue||2 ||TEtrue||2

±0.0

0.1

0.056 0.034 0.018 0.01 ±0.018 ±0.008 ±0.004 ±0.00

0.078 0.041 0.023 0.013 0.0071 ±0.024 ±0.015 ±0.007 ±0.004 ±0.0021

0.092 0.052 0.03 0.016 0.0095 ±0.022 ±0.013 ±0.01 ±0.004 ±0.0021

±0.0

0.1

0.056 0.034 0.018 0.01 ±0.018 ±0.008 ±0.004 ±0.00

0.08 0.041 0.023 0.013 0.0071 ±0.02 ±0.015 ±0.007 ±0.004 ±0.0021

0.092 0.052 0.03 0.016 0.0095 ±0.022 ±0.013 ±0.01 ±0.004 ±0.0021

0.1

0.056 0.034 0.018 0.01 ±0.018 ±0.008 ±0.004 ±0.00

0.08 0.041 0.023 0.013 0.0071 ±0.03 ±0.015 ±0.007 ±0.004 ±0.0021

0.092 0.052 0.03 0.016 0.0095 ±0.022 ±0.013 ±0.01 ±0.004 ±0.0021

0.12 0.076 0.058 0.052 0.05 ±0.03 ±0.017 ±0.009 ±0.005 ±0.00

0.097 0.066 0.054 0.051 0.049 ±0.025 ±0.014 ±0.007 ±0.003 ±0.002

0.092 0.052 0.03 0.016 0.0095 ±0.022 ±0.013 ±0.01 ±0.004 ±0.0021

0.26 ±0.04

0.25 ±0.03

0.22 ±0.00

0.092 0.052 0.03 0.016 0.0095 ±0.022 ±0.013 ±0.01 ±0.004 ±0.0021

1000 3162 10000 31622 100000 Number of observations (N)

1000 3162 10000 31622 100000 N

1000 3162 10000 31622 100000 N

0.00021 0.00021 0.00019 0.0001 ±0.00006 ±0.00006 ±0.00005 ±0.0000

0.083 ±0.019

0.082 ±0.021

0.072 ±0.020

0.043 ±0.011

0.083 ±0.019

0.082 ±0.021

0.072 ±0.020

0.043 ±0.011

0.0021 0.0019 ±0.0005 ±0.0005

0.001 0.00018 ±0.000 ±0.00005

0.082 ±0.021

0.077 ±0.021

0.042 ±0.013

0.0079 ±0.0021

0.082 ±0.021

0.077 ±0.021

0.042 ±0.013

0.0079 ±0.0021

0.019 ±0.005

0.01 ±0.00

0.0019 0.0002 ±0.0006 ±0.0001

0.077 ±0.019

0.043 ±0.012

0.0078 0.00082 ±0.0022 ±0.00019

0.077 ±0.019

0.043 ±0.012

0.0078 0.00083 ±0.0021 ±0.00019

0.11 ±0.03

0.021 ±0.006

0.0022 0.00034 ±0.0007 ±0.00016

0.083 ±0.028

0.015 ±0.006

0.0017 0.00032 ±0.0006 ±0.00018

0.092 ±0.024

0.017 ±0.004

0.0019 0.00018 ±0.0005 ±0.00004

1

10 100 True NDE norm

1

10 100 True NDE norm

1

10 100 True NDE norm

±0.0

0.23 ±0.02

0.23 ±0.01

0.23 ±0.01

0.22 ±0.00

1000

0.23 ±0.02

0.23 ±0.01

0.22 ±0.01

1000

1000

0.30 0.25 0.20 0.15 0.10 0.05 0.00 0.30 0.25 0.20 0.15 0.10 0.05 0.00

Figure 3. LaMe accurately recovers the natural effects — Root mean squared error (RMSE) of estimated natural effect coefficients, normalized by the norm of the true total-effect coefficient, averaged over 100 runs, along with the associated standard deviation, for LaMe optimized with N = 1 000 observations on data generated with I = 10, J = 50, K = 5 and L = 1, unless specified otherwise. (Top) Varying the number of observations and the number of latent variables used for estimation when the true number of latent variables used for data generation is fixed at Ktrue = 5 | (Bottom) Varying the values of NIE and NDE coefficients norm used for data generation | Root mean squared error relative to the true total effect between the true and estimated (Left) natural direct effect, (Middle) natural indirect effect and (Right) total effect. Alt text: Heatmap representing the RMSE of LaMe with respect to the true NIE, NDE and TE path coefficients relative to the true TE. The RMSE of NIE, NDE and TE decreases with N , with K − Ktrue (plateauing once K ⩾ Ktrue ) and with ||N DEtrue ||2 , with a relative RMSE remaining below 0.1 in most cases. ||N IEtrue ||2 error also decreases over the sample sizes considered. Finally, note that the direct path ensures that TE is equal to the OLS regression coefficient X and Y , namely T E = (X T X)−1 X T Y , explaining why it does not depend on K. Fig. 3-bottom shows that LaMe estimates the NDE, NIE and TE coefficients more accurately when the norm of the NDE coefficient matrix exceeds that of the NIE coefficient matrix: in this case, most of the observed covariance between X and Y is expressed through the NDE, whose estimation does not require a fine approximation of the unobserved variable S. Conversely, this explains why the relative error on the NDE, NIE and TE coefficients increases when the norm of the NIE coefficient is larger than that of the NDE. Overall, LaMe accurately retrieves the true natural effects across a range of direct and indirect effect magnitudes, supporting the applicability of the LaMe model to various settings. 4.2.4 Retrieving the manifest variables involved in mediation. We show here that LaMe efficiently identifies the entries of M that are both influenced by X through S and informative about Y through S given X. These are not observed mediators, since there is no direct path between M and X or Y ; M is a descendant of the latent mediator rather than a causal intermediate on the indirect path. However, they are the closest analogue of observed mediating variables and are used as such in (Derkach et al., 2019); for simplicity, we refer to them as mediating manifest features. Building on the definition proposed in (Derkach et al., 2019), we define a global mediating manifest feature Mj as the j th entry of M under the exact recoverability assumption such that both: I I K L L K X X X X X X (xs) (sm) (ms) (sy) XM MY |Cij |:= | βik βkj | ̸= 0 and |Cjl | := | βjk βkl | ̸= 0 i

i

k

l

l

k

XM MY A mediating manifest feature is therefore an entry of M , noted Mj , such that Cj := i l |Cij ||Cjl | ̸= 0. This new definition is intended to generalize that proposed by (Derkach et al., 2019), in particular to make it invariant to linear transformations of the latent space and to be robust to cases where manifest variables are correlated (see Web Appendix 20).

PI PL

10

Biometrics, 000 0000

1.0

Metrics

0.9 0.8 0.7 0.6 0.5

AUC-ROC AP Max-F1 100

101 Mediating manifest features among all candidates in M (%)

102

Figure 4. LaMe accurately recovers the observed “mediating” set of manifest variables in M among a large set of “non-mediating” candidates – Data are generated from Eq. (2) with I = 10, J = 10 + ∆J, K = 2, L = 1, N = 5 000 without confounding, where ∆J ∈ [1, 990] is the number of features in M that do not contribute to mediation mechanisms (that are either not influenced by X, or not informative about Y given X). The shaded area represents the standard deviation over 50 datasets generated under the same parameter setting. The AUC-ROC, AP and Max-F1 all range from 0 (worst) to 1 (best), and quantify how well the model recovers the true set of mediating manifest features among all possible candidates. Alt text: The three metrics remain close to 1 over the whole range of candidate mediators, with standard deviations around 0.05 across all experiments.

We generate data from Eq. (2) such that there are exactly J = 10 observed mediating manifest variables Mj with Cj ̸= 0 and ∆J ∈ [1, 990] non-mediating manifest variables with Cj = 0. In practice, we generate full-rank parameters (which ensures that Cj ̸= 0) for the system with J mediating manifest variables, expand β (sm) and Σm|s with ∆J columns (and rows for Σm|s ) such that Cj = 0, and generate 5 000 observations according to the resulting set of parameters to train LaMe. We then evaluate whether the model accurately distinguishes the ∆J manifest variables with a true Cj = 0 from the J manifest variables with Cj ̸= 0 using the area under the ROC curve (AUC-ROC), the Average Precision (AP) and the maximum F1 across classification thresholds (Max-F1). These metrics estimate how well the inferred Cj (continuous value) distinguishes (true) the nonzero entries in Cj (binary value based on its null/non-null entries) without the need to specify a threshold between scores associated with nonzero and near-zero values of Cj . For AUC-ROC, AP and Max-F1, a value of 1 means the model achieves perfect separation between mediating and non-mediating variables in M . The results presented in Fig. 4 show that LaMe consistently distinguishes the ten true mediating manifest features even in situations where these represent only 1% of the total number of manifest variables.

11

CRIME

PISA - I

EPIC CAN

NHANES

Table 1 Out-of-sample and in-sample performance metrics of LaMe (version X and M , with and without ℓ1 regularization, assuming full noise covariances) and all baseline models. The last lines report the average improvement of models’ metrics over OLS across all datasets –hence the null line for OLS. NLPD is the Negative Log-Predictive Density, R2 the fraction of explained variance and AIC the Akaike Information Criterion. When applicable, the number of latent variables is reported as K. Errors correspond to the standard error across five folds. The colour scale indicates relative performance within each dataset and metric ; (orange=best).

LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG

N LP D(Y |X, M ) ↓ 1.356 ± 0.020 1.355 ± 0.020 1.356 ± 0.020 1.355 ± 0.020 1.386 ± 0.022 1.357 ± 0.020 1.502 ± 0.035 1.358 ± 0.020 1.389 ± 0.023 1.367 ± 0.019 0.724 ± 0.003 0.719 ± 0.003 0.720 ± 0.002 0.719 ± 0.003 0.779 ± 0.009 0.714 ± 0.003 0.791 ± 0.017 0.753 ± 0.008 1.392 ± 0.036 1.173 ± 0.086 1.068 ± 0.001 1.069 ± 0.001 1.068 ± 0.001 1.068 ± 0.001 1.077 ± 0.001 1.077 ± 0.001 1.438 ± 0.108 1.419 ± 0.109 1.068 ± 0.001 1.162 ± 0.001 1.055 ± 0.011 1.037 ± 0.008 1.055 ± 0.011 1.037 ± 0.008 1.135 ± 0.021 1.044 ± 0.014 1.035 ± 0.007 1.037 ± 0.007 1.149 ± 0.023 1.184 ± 0.036

R2 (Y |X, M ) ↑ AIC ↓ K ↓ 0.151 ± 0.009 97.404 ± 1.110 1.000 ± 0.001 0.154 ± 0.007 98.270 ± 1.257 1.000 ± 0.001 0.151 ± 0.009 97.404 ± 1.110 1.000 ± 0.001 0.154 ± 0.007 98.449 ± 1.325 1.000 ± 0.001 0.114 ± 0.023 99.382 ± 1.086 24.000 ± 0.001 0.150 ± 0.012 99.872 ± 1.077 24.000 ± 0.001 −0.148 ± 0.104 97.406 ± 1.107 3.600 ± 0.456 0.150 ± 0.008 97.147 ± 1.058 3.400 ± 0.358 0.110 ± 0.024 98.597 ± 1.087 19.000 ± 0.001 0.136 ± 0.011 97.761 ± 1.120 1.800 ± 0.179 0.752 ± 0.001 899.770 ± 1.959 1.000 ± 0.001 0.754 ± 0.001 900.111 ± 2.035 1.000 ± 0.001 0.754 ± 0.001 899.784 ± 1.962 1.000 ± 0.001 0.755 ± 0.001 902.733 ± 1.817 1.000 ± 0.001 0.738 ± 0.001 993.797 ± 1.271 130.600 ± 1.972 0.757 ± 0.001 998.631 ± 1.333 130.600 ± 1.972 0.720 ± 0.009 898.288 ± 1.961 11.600 ± 0.219 0.738 ± 0.005 898.268 ± 1.964 11.600 ± 0.219 0.609 ± 0.004 1046.354 ± 1.913 206.000 ± 0.001 0.622 ± 0.018 899.466 ± 1.745 4.400 ± 1.486 0.504 ± 0.001 102.335 ± 0.098 7.000 ± 0.001 0.504 ± 0.001 102.337 ± 0.106 7.000 ± 0.001 0.504 ± 0.001 102.336 ± 0.098 7.000 ± 0.001 0.504 ± 0.001 102.328 ± 0.112 7.000 ± 0.001 0.496 ± 0.001 102.353 ± 0.099 19.000 ± 0.001 0.496 ± 0.001 102.367 ± 0.099 19.000 ± 0.001 −0.181 ± 0.298 103.065 ± 0.202 12.000 ± 0.001 −0.149 ± 0.308 103.023 ± 0.204 12.000 ± 0.001 0.505 ± 0.001 102.365 ± 0.099 23.000 ± 0.001 0.402 ± 0.001 103.858 ± 0.108 1.000 ± 0.001 0.575 ± 0.004 79.560 ± 1.031 7.000 ± 0.001 0.578 ± 0.003 92.369 ± 1.104 1.000 ± 0.001 0.575 ± 0.004 79.560 ± 1.031 7.000 ± 0.001 0.578 ± 0.003 93.572 ± 1.722 1.000 ± 0.001 0.556 ± 0.008 81.309 ± 1.005 31.600 ± 0.219 0.582 ± 0.004 86.625 ± 0.927 31.600 ± 0.219 0.564 ± 0.006 86.660 ± 1.065 24.800 ± 2.704 0.566 ± 0.005 86.642 ± 1.070 25.400 ± 2.586 0.550 ± 0.010 90.303 ± 0.991 50.000 ± 0.001 0.516 ± 0.022 83.379 ± 0.901 5.000 ± 0.001

12

Biometrics, 000 0000

4.3 Real-world data 4.3.1 Data. The NHANES dataset (National Center for Health Statistics, 2024) examines whether participants’ (N = 2, 710) glycohemoglobin levels (Y) are a direct consequence of lifestyle habits (I = 14; hours of sleep, alcohol intake, sunscreen use, etc.) or are mediated by biomarkers (J = 25; blood levels of lead, insulin, cholesterol, etc.). The EPIC-CAN dataset (International Agency for Research on Cancer, 2024) examines whether the age of a cancer event (N = 4, 993) is directly influenced by socio-demographic and lifestyle features (I = 33; weight, height, gender, age, smoking habits, physical activity index, diet, etc.) or whether this influence is mediated by blood levels of a high-dimensional collection of candidate proteomic features measured at inclusion in the study (J = 379). The CRIME dataset (Redmond, 2002) examines whether cities’ (N = 1, 993) crime rates (output Y ) are a direct consequence of population characteristics (I = 67 representing the number of inhabitants, unemployment rate, percentage of divorce, ethnicity, etc.) or are mediated by city-level contextual factors (J = 33 representing median rent, public transportation, number of vacant houses, etc.). The PISA-I dataset comes from the PISA corpus (Organisation for Economic Co-operation and Development, 2023). It examines whether students’ (N = 52, 028) mathematics proficiency score is a direct consequence of their home environment (I = 27; indexes quantifying home possessions, availability of electronic devices, mental health, body image, etc.) or is mediated by the school environment (J = 20; indexes quantifying the sense of belonging, safety perception, school quality, etc.). The complete list of variables is provided in Web Appendix 24. The applications evaluate whether LaMe can summarize exposure–biomarker–outcome associations using compact latent representations while retaining predictive performance; these applications are not intended to provide substantive causal mediation analyses. In particular, for EPIC-CAN, our analysis focused on individuals who developed cancer during follow-up, precluding a straightforward causal interpretation of the fitted relationships. We therefore do not report natural direct and indirect effects for these applications, and instead assess predictive performance, goodness of fit, and the ability to summarize observed relationships through parsimonious latent representations. 4.3.2 Method. We empirically observe that most models reach a plateau in predictive performance (the addition of new data no longer improves predictive accuracy) when trained on 80% of the data, and converge to similar fitted solutions. We instead report the results for a small-training-sample stress test by using an outer 5-fold cross validation procedure: we train the models on 20% of the available data, and evaluate them on the 80% remaining observations; this is iterated five times with different training data. The results from the usual 5-fold cross validation are provided in Web Appendix 22. Note that this procedure serves for unbiased evaluation only, and is not involved in any hyper-parameter tuning: test data are systematically isolated from the training procedure. We optimize LaMe for K ∈ [1, 2, 3, 4, 5, 7, 10, 15, 20, 25] and select the version with the lowest Bayesian Information Criterion within each fold; for PCA, K has been chosen using scikit-learn’s maximum likelihood estimator for the number of components; for PLS and JAOG, K has been chosen to maximize their respective scoring function on a validation set (10% randomly sampled from the training set). 4.3.3 Results. We report our results for LaMe and latent baselines in Table 1. LaMe achieves predictive performance comparable to that of the strongest latent baselines, sometimes improving on them, while using parsimonious representations. Visualizations of the inferred systems are provided in Web Appendix 23. In particular, these experiments show that LaMe achieves competitive predictive performance with compact latent representations. These results support a favorable trade-off between predictive performance and latent dimensionality under the stated model-selection procedures. On the other hand, over-parametrized models such as OVP-LaMe converge to solutions that are equivalent to the OLS solution. A similar case arises for PCA-based methods here, for which the maximum likelihood estimator selected models with large K –thus forfeiting any low-dimensional covariance structure. For regularized LaMe on CRIME, and for NHANES and EPIC-CAN, LaMe uses a single latent dimension where other latent approaches used many more to achieve comparable performance in terms of prediction and goodness-of-fit.

5. Conclusion We have introduced LaMe as a general framework for joint estimation of multivariate latent mediation systems that makes the conditions for dimension reduction and identification of the effect decomposition explicit. The simulations demonstrate gains from low-rank estimation when the data contain shared latent structure and recovery of natural effects under the stipulated measurement model. They also show that accurate estimation of the total effect can coexist with persistent errors in its direct and indirect components when too few latent dimensions are fitted. The real-world applications complement these findings by demonstrating competitive prediction with compact latent representations. The present evidence supports LaMe as a scalable, parsimonious and accurate option for high-dimensional mediation analysis across a wide variety of situations. Possible directions for future work include incorporating mixed data types such as categorical exposures, jointly inferring the number of latent components K (e.g. through point-process priors), relaxing linearity assumptions and extending the framework to survival models with censored data.

13 Acknowledgments. This work was supported by a grant from the French National Research Agency as part of the “Investissements d’Avenir ExcellencES” program from France 2030 (SHAPE-Med@Lyon; [ANR-22-EXES-0012]). Funding for grant [IIG_FULL_2022_013] was obtained from Wereld Kanker Onderzoek Fonds (WKOF) as part of the World Cancer Research Fund International grant programme. Where authors are identified as personnel of the International Agency for Research on Cancer/World Health Organization, the authors alone are responsible for the views expressed in this article and they do not necessarily represent the decisions, policy, or views of the International Agency for Research on Cancer/World Health Organization. Conflicts of interest. The authors declare no conflict of interest. Data availability statement. The NHANES August 2021–August 2023 data are publicly available at https://wwwn.cdc. gov/nchs/nhanes/continuousnhanes/default.aspx?Cycle=2021-2023. The CRIME dataset (DOI: 10.24432/C53W3X) is publicly available at https://doi.org/10.24432/C53W3X. The PISA-I data were derived from the PISA 2022 database, publicly available at https://www.oecd.org/en/data/datasets/pisa-2022-database.html. The data underlying EPICCAN is based on data from the European Prospective Investigation into Cancer and Nutrition (EPIC) and cannot be shared publicly due to privacy considerations. EPIC data are available by application to the EPIC Steering Committee (https://epic.iarc.fr/access/).

References Albert, J. M., Geng, C., and Nelson, S. (2016). Causal mediation analysis with a latent mediator. Biometrical Journal 58, 535–548. Anderson, T. W., Rubin, H., et al. (1956). Statistical inference in factor analysis. In Proceedings of the third Berkeley symposium on mathematical statistics and probability, volume 5, pages 111–150. Bishop, C. M. (2006). Pattern Recognition and Machine Learning. New York: Springer. Cai, X., Wang, Q., and Zhu, Y. (2023). Mediation analysis with latent factors using simultaneous group-wise and parameterwise penalization. Stat 12, 630. Chechik, G., Globerson, A., Tishby, N., and Weiss, Y. (2005). Information bottleneck for gaussian variables. Journal of Machine Learning Research 6, 165–188. Chén, O. Y., Crainiceanu, C., Ogburn, E. L., Caffo, B. S., Wager, T. D., and Lindquist, M. A. (2017). High-dimensional multivariate mediation with application to neuroimaging data. Biostatistics 19, 121–136. Derkach, A., Pfeiffer, R. M., Chen, T.-H., and Sampson, J. N. (2019). High dimensional mediation analysis with latent variables. Biometrics 75, 745–756. Hayashi, F. (2000). Econometrics. Princeton University Press. Hu, J. Y., DeSimone, M., and Wang, Q. (2024). Utilizing latent connectivity among mediators in high-dimensional mediation analysis. Stat 13, 675. International Agency for Research on Cancer (2024). European Prospective Investigation into Cancer and Nutrition (EPIC) cohort. (accessed June 26, 2025). Kawano, S., Fujisawa, H., Takada, T., and Shiroishi, T. (2018). Sparse principal component regression for generalized linear models. Computational Statistics & Data Analysis 124, 180–196. Nath, T., Caffo, B., Wager, T., and Lindquist, M. A. (2023). A machine learning based approach towards high-dimensional mediation analysis. NeuroImage 268, 119843. National Center for Health Statistics (2024). National Health and Nutrition Examination Survey, August 2021–August 2023. U.S. Department of Health and Human Services, Centers for Disease Control and Prevention. Available at https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?Cycle=2021-2023 (accessed June 26, 2025). Neal, R. M. and Hinton, G. E. (1998). A View of the Em Algorithm that Justifies Incremental, Sparse, and other Variants, pages 355–368. Springer Netherlands. Organisation for Economic Co-operation and Development (2023). PISA 2022 Database. OECD. Available at https: //www.oecd.org/en/data/datasets/pisa-2022-database.html (accessed June 26, 2025). Redmond, M. (2002). Communities and Crime. UCI Machine Learning Repository. Available at https://doi.org/10.24432/ C53W3X (accessed June 26, 2025). Rijnhart, J. J. M., Lamp, S. J., Valente, M. J., MacKinnon, D. P., Twisk, J. W. R., and Heymans, M. W. (2021). Mediation analysis methods used in observational research: a scoping review and recommendations. BMC Med Res Methodol 21,. Wang, H., Lengerich, B. J., Aragam, B., and Xing, E. P. (2018). Precision lasso: accounting for correlations and linear dependencies in high-dimensional genomic data. Bioinformatics 35, 1181–1187. Ye, Z., Zhu, Y., and Coffman, D. L. (2021). Variable selection for causal mediation analysis using lasso-based methods. Statistical methods in medical research 30, 1413–1427. Zeng, P., Shao, Z., and Zhou, X. (2021). Statistical methods for mediation analysis in the era of high-throughput genomics: Current successes and future challenges. Computational and Structural Biotechnology Journal 19, 3209–3224. Zhao, Y., Lindquist, M. A., and Caffo, B. S. (2020). Sparse principal component based high-dimensional mediation analysis. Computational Statistics and Data Analysis 142, 106835.

14

Biometrics, 000 0000

Zhao, Y. and Luo, X. (2022). Pathway lasso: Pathway estimation and selection with high-dimensional mediators. Statistics and its interface 15, 39–50. Zhu, Y., He, Y., Ma, J., Hu, M., Li, S., and Li, J. (2024). Causal inference with latent variables: Recent advances and future prospectives. In Proceedings of the 30th ACM SIGKDD, KDD ’24, page 6677–6687, New York, NY, USA. Association for Computing Machinery. Supplementary Materials. Web Appendices are available with this paper at the Biometrics website on Oxford Academic. The Python code for performing the simulations and data analysis in this paper is available at https://github.com/ GaelPouxMedard/LaMe-repr/releases/tag/v1.1.0-paper. Code is permanently archived in Zenodo at https://doi.org/ 10.5281/zenodo.23264883.

6. Observed confounding between exposures, mediators and outcomes Based on (Derkach et al., 2019), observed confounding C enters latent mediation systems as follows:  C = εc       X = Cβ (cx) + εx    S = Xβ (xs) + Cβ (cs) + εs     M = Sβ (sm) + εm      Y = Xβ (xy) + Sβ (sy) + Cβ (cy) + εy Observed confounding C enters the non-latent mediation system as follows:    C = εc     X = Cβ (cx) + εx  M = Xβ (xm) + Cβ (cm) + εm      Y = Xβ (xy) + M β (my) + Cβ (cy) + εy

(14)

(15)

Here, we demonstrate that observed exposures X and observed confounders C can be jointly represented as a single composite observed variable ξ := [X, C] from a likelihood perspective. As such, the entire technical demonstration in the main text can be conducted by considering ξ = [X] without loss of generality. Modelling confounding simply requires replacing exposures by their augmented counterpart ξ of dimension I + dim(C), and performing the separation step below after parameters estimation. For latent systems (Eq. (14)), we start from any joint distribution p(X, S, M, Y, C) along with the conditional independence relationships corresponding to confounded LaMe (see Eq. (14)), namely M ⊥ (X, C) | S and Y ⊥ M | (X, C, S). Developing p(X, S, M, Y, C) using the chain rule, we show that X and C can be treated jointly as a single observed variable from a statistical standpoint: p(X, S, M, Y, C)

(16)

=p(X, C)p(S|X, C)p(M |S)p(Y |X, C, S) :=p(ξ)p(S|ξ)p(M |S)p(Y |ξ, S), where we defined ξ := [X, C] as a composite observed variable. The last factorization is identical in form to that of unconfounded LaMe-vX in the main text, with ξ replacing X; maximum likelihood estimates for all these parameters are therefore obtained from the same inference procedure, treating ξ as an augmented observed exposure variable of dimension I + dim(C). For non-latent systems (Eq. (15)), the same demonstration immediately follows from the chain rule noting that p(ξ, M, Y ) = p(ξ)p(M |ξ)p(Y |ξ, M ). The path coefficients from X and C to the mediator and the outcome are then obtained by appropriate slicing of the coefficients associated with ξ e.g. in the latent case β (ξs) = [β (xs) , β (cs) ]T and β (ξy) = [β (xy) , β (cy) ]T . In both latent and non-latent cases, the path coefficient from C to X is obtained from the off-diagonal blocks in the inferred covariance of ξ, namely Σξ . After appropriate slicing of Σξ in terms of exposures X and confounders C:   Σx Σxc Σξ = , (17) Σcx Σc then the path coefficient from C to X is β (cx) = Σ−1 c Σcx .

15 7. Exact recoverability error We recall that: β (ms) = ((β (sm) )T Σs β (sm) + Σm|s )−1 (β (sm) )T (Σs|x + (β (xs) )T Σx β (xs) ) | | {z } {z } Σ−1 m

Σs

(sm) T β (ms) = Σ−1 ) Σs . m (β The expected difference between S and S ∗ is zero following the tower property of nested expectations:

E[S ∗ − S] = E[E[S ∗ − S|M ]] =0 The variance of the difference is: V ar(S ∗ − S) = V ar(S) + (1 − 2)V ar(E[S|M ]) = Σs − (β (ms) )T Σm β (ms) = Σs (I − β (sm) β (ms) ) From the definition of β (ms) : β (ms) = ((β (sm) )T Σs β (sm) + Σm|s )−1 (β (sm) )T Σs | {z } Σ−1 m

(sm) T = Σ−1 ) Σs − (β (sm) )T Σs β (sm) β (ms) ) m|s ((β (sm) T ) Σs (I − β (sm) β (ms) ) = Σ−1 m|s (β (sm) T ) V ar(S ∗ − S) = Σ−1 m|s (β

Therefore: V ar(S ∗ − S) = Σs (I − β (sm) β (ms) ) (sm) T ) V ar(S ∗ − S)) = Σs (I − β (sm) Σ−1 m|s (β (sm) −1 = (Σ−1 Σm|s (β (sm) )T )−1 s +β

The result from the main text follows: E[||S ∗ − S||2 ] = T r(V ar(S ∗ − S)) + ||E[S ∗ − S]||2  −1 (sm) −1 = T r( Σ−1 Σm|s (β (sm) )T )+0 s +β

(18)

= O(J −1 ),

8. Bottleneck condition In the most general setting, we assume that I ⩾ 1, J ⩾ 1, K ⩾ 1, L ⩾ 1, that all noise covariance matrices are full, and that variables are centred on their average value so that intercepts can be omitted. We show that under these conditions, the optimal solution of a model that violates the bottleneck condition K < min(I + L, J) corresponds to a reparametrization of the Ordinary Least Squares (OLS) optimum. It has already been established that in the fully unconstrained case, OLS is the maximum likelihood estimator for a linear model of the observed variables, and that it exactly matches the first and second population moments (Hayashi, 2000). Although the latent system defined in the main text assumes that linear relations between observed variables are structured by a latent variable S, the relations between observed variables remain linear. Therefore, whenever the latent model can attain (a given reparametrization of) the OLS solution, this solution also corresponds to a maximum likelihood estimator of the latent model. We therefore derive the value of K for which the latent model will necessarily produce a solution equivalent to the OLS solution, while using its own parametric representation. Equivalence here means that the two models reproduce exactly the same population moments through their respective parametrizations. Here, the latent model is identified from the population

16

Biometrics, 000 0000

moments ΣXX , ΣM M , ΣY Y , ΣXM , ΣXY , ΣM Y by the following system of equations: (19)

ΣXX = Σx ΣM M = Σm|s + (β

(sm) T

(sm)

(sy) T

(sy)

) Σs|x β

ΣY Y = Σy|x,s + (β

) Σs|x β

+ (β + (β

(xs)

(xs)

β

β

(sm) T

(sy)

) Σx β

+β

(xs)

β

(sm)

(xy) T

) Σx (β (xs) β (sy) + β (xy) )

ΣXY = Σx (β (xs) β (sy) + β (xy) ) ΣXM = Σx β (xs) β (sm) ΣM Y = (β (sm) )T Σs|x β (sy) + (β (xs) β (sm) )T Σx (β (xs) β (sy) + β (xy) ) The OLS solution is reachable when all these equations can be exactly satisfied simultaneously. The equations involving ΣXX , ΣM M , ΣY Y , and ΣXY are straightforward, as these population moments are always reachable from the latent model’s parameters in the fully unconstrained case: ΣXX , ΣM M and ΣY Y can always be exactly modelled by the full matrices Σx , Σm|s and Σy|x,s ; ΣXY can always be modelled exactly by β (xy) because its contribution to ΣY Y can always be compensated by the full matrix Σy|x,s , and because it does not appear in ΣM Y once ΣXY is known. The rank constraint on the joint system Eq. (19) induced by the value of K can therefore be expressed in terms of ΣXM and ΣM Y only. Replacing the expression for ΣXM in ΣM Y , then ΣM Y = (β (sm) )T Σs|x β (sy) + (ΣXM )T Σ−1 XX ΣXY ; the above joint system then reduces to: ! ! Σ−1 β (xs) XX ΣXM = β (sm) (20) C := ΣTM Y − ΣTXY Σ−1 (β (sy) )T Σs|x XX ΣXM The matrix of population moments has I + L rows and J columns ; its rank is therefore upper-bounded by min(J, I + L). Its parametric representation instead has rank upper-bounded by min(J, I + L, K). Therefore, a sufficient condition for it to be represented exactly by the latent model is K ⩾ min(I + L, J). Conversely, a necessary but not sufficient condition for an approximate solution is K < min(J, I + L). It follows that the globally optimal solution of an unconstrained latent linear model with K ⩾ min(J, I + L) must necessarily be a reparametrization of the optimal OLS solution. Note that the exact condition on K for the latent model to be able to reparametrize the OLS solution is K ⩾ rank(C), with C defined above ; however, the sufficient condition based on rank upper bounds is clearer and sufficient for our demonstration, and is the only one we use in the main text.

9. Dependence of S on the scale of the outcome in sum-of-variance objectives Let θ denote the set of parameters to estimate. Omitting the interprets for simplicity, the joint objective of the model in (Nath et al., 2023) is: arg min ||Y − Xβ (xy) − Sβ (sy) ||2 + ||S − Xβ (xs) ||2 θ

where S = Φ(M ) After profiling S, this can equivalently be written as an inference problem on S directly: arg min V ar(Y |X, S) + V ar(S|X) S=Φ(M )

The sensitivity of the optimal representation S to the scale of Y is immediate, since the transformation Y → cY makes V ar(Y |X, S) → c2 V ar(Y |X, S): arg min V ar(S|X) + V ar(Y |X, S) ̸= arg min V ar(S|X) + c2 V ar(Y |X, S) S=Φ(M )

S=Φ(M )

More importantly, this implies that N ˆIE(cY ) ̸= cN ˆIE(Y ), where N ˆIE(Y ) denotes the estimated natural indirect effect associated with a one-unit increase in the exposures; the NIE also depends on the scale of Y .

10. Constrained LVMA is a factor analysis model We show that under the assumptions of the latent linear model from (Derkach et al., 2019), namely Σm|s = diag(σm1 |s , ..., σmJ |s ), I = 1 and L = 1, a correctly specified LVMA model (full rank coefficient matrices and positive semi-definite covariances) recovers the same latent subspace as a Factor Analysis (FA) model for M whenever the latent space dimension is larger than K = 1, that is large enough not to constrain the population cross-covariances of the system (see Sec. 8). Although the authors in (Derkach et al., 2019) work under the assumption that Σs|x = I, we chose a representation where the unconditional variance Σs = I, without loss of generality. These formulations are equivalent due to the usual invariance of linear latent-variable models to rescaling and rotations of the latent space ; the system can be equivalently defined in terms of

17 Σs = I or Σs|x = I after applying the appropriate transformations of the latent space. Here, we choose the convention where Σs = I to simplify the derivations below. Then, the model implies the following population moment equations: (21)

ΣXX = Σx ΣM M = Σm|s + (β

(sm) T

= Σm|s + (β

(sm) T

(xs) T

) (Σs|x + (β ) Σx β | {z

(xs)

Σs =I

) β

ΣY Y = Σy|x,s + (β β

(xs)

(sm)

ΣXY = Σx (β ΣXM = Σx β ΣM Y = (β

β

(sy)

(sm) T

) Σs|x β

+β

) Σs|x β

(22)

(sm)

(sy) T

(xs)

)β }

(sm)

(xy)

(sy)

+ (β

(xs)

β

(sy)

+β

(xy) T

) Σx (β

(xs)

β

(sy)

+β

(xy)

(23)

)

(24)

)

(25) (sy)

+ (β

(xs)

β

(sm) T

) Σx (β

(xs)

(sy)

β

+β

(xy)

(26)

)

Equation (22) is exactly the equation for an FA model applied to M , which uniquely identifies the latent subspace. The cross-moment equations can then determine the other population parameters according to this subspace without altering it. In particular, the FA equation can be solved independently from the rest of the system when the model is correctly specified. As shown in Sec. 8, K < rank(C) induce low-rank constraints, where rank(C) ⩽ min(I +L, J), meaning the model can only approximate the population moments V ar(M ), Cov(X, M ) and Cov(M, Y ) through joint optimization. Therefore, Eq. (22) cannot be solved analytically in isolation: its estimation results from a minimization problem defined by Eq. (22), Eq. (25) and Eq. (26), and the resulting latent space no longer matches with that of an FA solution. In (Derkach et al., 2019) however, K > I = 1 is large enough that the model is not rank-constrained. Then, β (sm) and Σm|s can be obtained analytically from Eq. (22) as the solution of a FA model, under suitable identification conditions (Anderson, Rubin, et al., 1956). Once these are known, deriving a closed-form solution for β (xs) , β (sy) , β (xy) , Σx , Σy|x,s is straightforward from the remaining population moment equations, provided the model remains correctly specified. We support this observation numerically in Fig. 5-left, where the blue curve shows that the model in (Derkach et al., 2019) recovers exactly the same solution as a simple FA model on M when K ⩾ Ktrue = rank(C), and starts to yield different solutions when K < Ktrue . The orange curve shows that the same model with unconstrained noise covariances does not yield the same solution as a FA model, regardless of the rank of C. This further demonstrates the importance of choosing K based on the system’s dimensions in a way that guarantees the model does not reduce to either FA or ordinary least squares problems. For exhaustiveness, we also report results when both models are incorrectly specified, that is when the true Σm|s used for data generation is full, in Fig. 5-right; results are similar.

Difference between LVMA and FA ( true m|s = diag) (sm) (sm))T s (sm)||2 ||( FA(sm))T FA s FA ) (

0.030 (sm) (sm))T s (sm)||2 ||( FA(sm))T FA s FA ) (

Difference between LVMA and FA ( true m|s = full)

m|s = diag m|s = full K

0.025 0.020 0.015 0.010 0.005 0.000

m|s = diag m|s = full

0.04

K

0.03 0.02 0.01 0.00

0

10

20

Ktrue

30

40

50

0

10

20

Ktrue

30

40

50

Figure 5. LVMA is similar to a factor analysis — (Left) Data generated using a diagonal Σm|s ; (Right) Data generated using a full Σm|s . We report the MSE between the covariance of M explained by S from a factor analysis model and the same quantity estimated from one of two latent models, one with diagonal conditional covariance Σm|s , and one with full conditional covariance Σm|s . We generate N = 1000 data points with I = J = 50, L = 1 and Ktrue = rank(C) (see Eq. (20)) denoting the varying rank of the system used for data generation. We fit the two latent models with K = 25. Note that I > 1 was not considered in LVMA, although it provides more informative visualizations for our demonstration. The dashed black line indicates when Ktrue = K. The shaded region indicates the standard deviation over 50 runs. This shows that forcing Σm|s to be diagonal makes the latent model equivalent to a factor analysis model when K ⩾ Ktrue .

18

Biometrics, 000 0000

11. E-step developments 11.1 Jensen’s inequality Here, we derive an expression for a lower bound for log p(X, M, Y |θ). Let q(S) denote any distribution of S: Z log p(X, M, Y |θ) = log p(X, M, Y |θ) q(S)dS | S {z } =1 Z q(S) log p(X, M, Y |θ)dS = S   Z q(S)p(S, X, M, Y |θ) = q(S) log p(X, M, Y |θ) dS q(S)p(S, X, M, Y |θ) S Z Z p(S, X, M, Y |θ) q(S)p(X, M, Y |θ) q(S) log q(S) log = dS + dS q(S) p(S, X, M, Y |θ) S S Z Z q(S) p(S, X, M, Y |θ) q(S) log q(S) log dS + dS = q(S) p(S|X, M, Y, θ) S S | {z }

(27)

KL(q(S)||pθ (S|X,M,Y ))⩾0

Z q(S) log

⩾ S

p(S, X, M, Y |θ) dS q(S)

R q (s) where the Kullback-Leibler divergence is KL(qθ,X,M,Y (·)||pθ (·|X, M, Y )) := S q(S) log pθ,o dS ⩾ 0 and q(S) is any distriθ (s|o) bution of S. Alternatively, using Jensen’s inequality (E[log x] ⩽ log E[x]) directly: Z Z p(S, X, M, Y |θ) p(S, X, M, Y |θ) q(S) log q(S) dS ⩾ dS log p(X, M, Y |θ) = log q(S) q(S) S S | {z } | {z } log E[

p(S,X,M,Y |θ) ] q(S)

E[log

p(S,X,M,Y |θ) ] q(S)

11.2 Lower-bound maximization |θ) Here, we demonstrate that the lower bound in Eq. (27) is equal to log p(X, M, Y |θ) when q(S) = qθ,X,M,Y (S) = p(S,X,M,Y p(X,M,Y |θ) –it is maximized. Z Z p(S, X, M, Y |θ) p(S, X, M, Y |θ) p(S, X, M, Y |θ) (28) qθ,X,M,Y (S) log dS = log p(S,X,M,Y |θ) dS qθ,X,M,Y (S) S S p(X, M, Y |θ) p(X,M,Y |θ) Z p(S, X, M, Y |θ) = log p(X, M, Y |θ)dS S p(X, M, Y |θ) Z log p(X, M, Y |θ) p(S, X, M, Y |θ)dS = p(X, M, Y |θ) |S {z } :=p(X,M,Y |θ)

= log p(X, M, Y |θ) The equality naturally follows (because a lower bound cannot be larger than the bounded quantity): Z p(S, X, M, Y |θ) log p(X, M, Y |θ) = qθ,X,M,Y (S) log dS qθ,X,M,Y (S) S p(S, X, M, Y |θ) when qθ,X,M,Y (S) = p(X, M, Y |θ)

(29)

12. Full M-step derivation Intercepts are omitted for notational clarity; they can be included in the usual way by augmenting the relevant design matrix with a column of ones. 12.1 LaMe-vX The solutions for the LaMe-vX model are summarized below:  −1 β (xs) = X T X XT S  −1 β (xy) = X T (I − PS )X X T (I − PS )Y

 −1 T β (sm) = S T S S M  −1 T β (sy) = S T S S (Y − Xβ (xy) )

(30a)

19 1 T X X N    T   1 T Σs|x = S T S + S − Xβ (xs) S − Xβ (xs) − S S N    T   1 Σm|s = M − Sβ (sm) − (Sβ (sm) )T (Sβ (sm) ) (β (sm) )T (S T S)β (sm) + M − Sβ (sm) N  1  (sy) T T Σy|x,s = (β ) (S S)β (sy) + (Y − Xβ (xy) − Sβ (sy) )T (Y − Xβ (xy) − Sβ (sy) ) − (Sβ sy )T (Sβ sy ) N −1 T where PS := S S T S S is the estimated latent projection-like matrix. Σx =

12.1.1 A, B, C. T

1

p(S, X, M, Y |θ) := e− 2 ⟨S S,A⟩+⟨S,B⟩+C (sm) −1 (sy) T A := Σ−1 Σm|s (β (sm) )T + β (sy) Σ−1 ) s|x + β y|x,s (β (sy) T (xy) −1 (sm) T B := Y Σ−1 ) + Xβ (xs) Σ−1 Σy|x,s (β (sy) )T + M Σ−1 ) y|x,s (β s|x − Xβ m|s (β   1 T (xs) −1 (xy) T C := − ⟨X X, Σ−1 Σs|x (β (xs) )T + β (xy) Σ−1 ) ⟩ x +β y|x,s (β 2 1 T 1 ⟨Y Y, Σ−1 − ⟨M T M, Σ−1 m|s ⟩ − y|x,s ⟩ 2 2   N log (2π)I+J+K+L |Σx ||Σs|x ||Σm|s ||Σy|x,s | + ⟨X T Y, β (xy) Σ−1 y|x,s ⟩ − 2

Let ℓ̄θ denote the expected incomplete log-likelihood (see the main text): Z p(S, X, M, Y |θ) qθ,X,M,Y (S) log ℓ̄θ = dS qθ,X,M,Y (S) S

12.1.2 x → s.

For β (xs) , Σs|x :   N Z X 1 (xs) T ) dsi = 0 ∂β (xs) ℓ̄θ = qθ,xi ,mi ,yi (si )∂β (xs) − (si − xi β (xs) )Σ−1 s|x (si − xi β 2 S i N Z   X (xs) T qθ,xi ,mi ,yi (si )∂β (xs) (si − xi β (xs) )Σ−1 = ) dsi = 0 s|x (si − xi β S

i

=

N Z X S

i

⇔β

(xs)

=

  qθ,xi ,mi ,yi (si ) (−xTi )(si − xi β (xs) )Σ−1 s|x dsi = 0

N X

xTi xi

!−1 N X

xTi si

i

i

= (X T X)−1 X T S   N Z X 1 1 (xs) T ∂Σs|x ℓ̄θ = qθ,xi ,mi ,yi (si )∂Σs|x − (si − xi β (xs) )Σ−1 ) − ln(|Σs|x |) dsi = 0 s|x (si − xi β 2 2 S i N Z   X (xs) T −1 = qθ,xi ,mi ,yi (si ) Σ−1 ) (si − xi β (xs) )Σ−1 s|x (si − xi β s|x − Σs|x dsi = 0 i

⇔ Σs|x =

=

S

N Z 1 X

N

i

N 1 X

N

  qθ,xi ,mi ,yi (si ) (si − xi β (xs) )T (si − xi β (xs) ) dsi S

sTi si − si T (xi β (xs) ) − (xi β (xs) )T si + (xi β (xs) )T (xi β (xs) )

i

 1  T T = S S − S Xβ (xs) − (Xβ (xs) )T S + (Xβ (xs) )T (Xβ (xs) ) N    T   1 T = S T S + S − Xβ (xs) S − Xβ (xs) − S S N

(30b)

20

Biometrics, 000 0000 12.1.3 s → m.

For β (sm) , Σm|s :

∂β (sm) ℓ̄θ =

N Z X

⇔β

(sm)

qθ,xi ,mi ,yi (si )(−2sTi )(mi − si β (sm) )Σ−1 m|s dsi = 0 S

i

N X

=

sTi si

!−1 N X

i

= ∂Σm|s ℓ̄θ =



i

ST S

T

S M

  (sm) T −1 qθ,xi ,mi ,yi (si ) −Σ−1 ) (mi − si β (sm) )Σ−1 m|s (mi − si β m|s + Σm|s dsi = 0 S

N

⇔ Σm|s =

−1

N Z X i

si T mi

1 X N i

Z

qθ,xi ,mi ,yi (si )(mi − si β (sm) )T (mi − si β (sm) )dsi S

N

=

1 X T mi mi − mTi (si β (sm) ) − (si β (sm) )T mi + N i

Z

qθ,xi ,mi ,yi (si )(si β (sm) ))T (si β (sm) )ds

S

N

1 X T mi mi − mTi (si β (sm) ) − (si β (sm) )T mi + (β (sm) )T Si2 β (sm) N i  1  T M M − M T Sβ (sm) − (Sβ (sm) )T M + (β (sm) )T (S T S)β (sm) = N    T   1 (sm) T (sm) (sm) (sm) (sm) T (sm) T = (β ) (S S)β + M − Sβ M − Sβ − (Sβ ) (Sβ ) N =

12.1.4 x, s → y.

For β (xy) , β (sy) : ∂β (xy) ℓ̄θ =

N Z X

  qθ,xi ,mi ,yi (si ) −2xTi (Yi − xi β (xy) − si β (sy) )Σ−1 y|x,s dsi = 0 S

i

N X

⇔ β (xy) =

!−1 xTi xi

N X i

i



T

= X X ∂β (sy) ℓ̄θ =

N Z X

⇔β

=

−1

 −1   X Y − XT X X T S β (sy) T

  qθ,xi ,mi ,yi (si ) −2sTi (Yi − xi β (xy) − si β (sy) )Σ−1 y|x,s dsi = 0 S

i (sy)

! xTi Yi − xTi si β (sy)

N X

!−1 sTi si

N X

i

! T

T

si Yi − si xi β

(xy)

i

 −1 T  −1  T  = ST S S Y − ST S S X β (xy)

Thus: XT X

XT S

!

T

ST S

β (sy) } | {z }

S X | The solution is Θ = A−1 r.

{z A

β (xy)

Θ

XT Y

! =

T

|

!

S Y {z } r

21 Finally for Σy|x,s : ∂Σy|x,s ℓ̄θ = N Z   X (xy) −1 qθ,xi ,mi ,yi (si ) Σ−1 − si β (sy) )T (Yi − xi β (xy) − si β (sy) )Σ−1 y|x,s (Yi − xi β y|x,s − Σy|x,s dsi S

i

=0 N

⇔ Σy|x,s =

1 X N i

Z

qθ,xi ,mi ,yi (si )(Yi − xi β (xy) − si β (sy) )T (Yi − xi β (xy) − si β (sy) )dsi

S

1 ((Y − Xβ (xy) − Sβ (sy) )T (Y − Xβ (xy) − Sβ (sy) ) − (Sβ (sy) )T (Sβ (sy) )) N 1 + (β (sy) )T S T Sβ (sy) N =

12.2 LaMe-vM 12.2.1 A, B, C. 1

T

p(S, X, M, Y |θ) := e− 2 ⟨S S,A⟩+⟨S,B⟩+C (sx) −1 (sy) T A := Σ−1 Σx|s (β (sx) )T + β (sy) Σ−1 ) s|m + β y|x,s (β (sy) T (sy) T (sx) T −1 ) ) + Y Σ−1 ) − Xβ (xy) Σ−1 B := M β (ms) Σ−1 y|x,s (β y|x,s (β s|m + XΣx|s (β   1 (xy) −1 C := − ⟨X T X, Σ−1 Σy|x,s (β (xy) )T ⟩ x|s + β 2   1 1 (ms) −1 − ⟨M T M, Σ−1 Σs|m (β (ms) )T ⟩ − ⟨Y T Y, Σ−1 m +β y|x,s ⟩ 2 2   N log (2π)I+J+K+L |Σm ||Σs|m ||Σx|s ||Σy|x,s | + ⟨X T Y, β (xy) Σ−1 y|x,s ⟩ − 2

12.2.2 m → s.

For β (ms) , Σs|m :

∂β (ms) ℓ̄θ (O) =

N Z X S

i

=

 qθ,oi (si )∂β (ms)

N Z X

dsi = 0

  qθ,oi (si ) (mTi )(si − mi β (ms) )Σ−1 s|m dsi = 0

N X

mTi mi )β (ms) −

i

⇔ β (ms) =



S

i

=(

1 (ms) T ) − (si − mi β (ms) )Σ−1 s|m (si − mi β 2

N X

mTi (si ) = 0

i

N X

mTi mi

i

!−1 N X

mTi (si )

i

= (M T M )−1 M T S N Z   X (ms) T ∂Σs|m ℓ̄θ (O) = qθ,oi (si )∂Σs|m −(si − mi β (ms) )Σ−1 ) − ln(|Σs|m |) dsi = 0 s|m (si − mi β S

i

=

N Z X i

⇔ Σs|m =

= =

1 N 1 N

  (ms) T −1 qθ,oi (si ) −Σ−1 ) (si − mi β (ms) )Σ−1 s|m (si − mi β s|m + Σs|m dsi = 0 S

N Z X i N X

  qθ,oi (si ) (si − mi β (ms) )T (si − mi β (ms) ) dsi

S

sTi si + (si − mi β (ms) )T (si − mi β (ms) ) − si T si

i

 1  T T S S + (S − M β (ms) )T (S − M β (ms) ) − S S N

22

Biometrics, 000 0000 12.2.3 s → x.

For β (sx) , Σx|s : ∂β (sx) ℓ̄θ (O) =

N Z X i

⇔β

(sx)

N X

=

qθ,oi (si )(−2sTi )(xi − si β (sx) )Σ−1 x|s dsi = 0

S

sTi si

!−1 N X

i

si T (xi )

i

 −1 T = ST S S X

∂Σx|s ℓ̄θ (O) =

N Z X S

i

⇔ Σx|s =

1 N

  (sx) T −1 qθ,oi (si ) −Σ−1 ) (xi − si β (sx) )Σ−1 x|s (xi − si β x|s + Σx|s dsi = 0

N Z X

qθ,oi (si )(xi − si β (sx) )T (xi − si β (sx) )dsi S

i

N 1 X (sx) T T = (β ) si si β (sx) + (xi − si β (sx) )T (xi − si β (sx) ) − (si β (sx) )T (si β (sx) ) N i  1  (sx) T T = (β ) (S S)β (sx) + (X − Sβ (sx) )T (X − Sβ (sx) ) − (Sβ (sx) )T (Sβ (sx) ) N

12.2.4 x, s → y.

For β (xy) , β (sy) : ∂β (xy) ℓ̄θ (O) =

N Z X S

i

⇔β

(xy)

  qθ,oi (si ) −2xTi (Yi − xi β (xy) − si β (sy) )Σ−1 y|x,s dsi = 0

N X

=

!−1 xTi xi

T

= X X ∂β (sy) ℓ̄θ (O) =

N Z X

⇔β

=

−1

 −1   X Y − XT X X T S β (sy) T

  qθ,oi (si ) −2sTi (Yi − xi β (xy) − si β (sy) )Σ−1 y|x,s dsi = 0 S

i (sy)

! xTi Yi − xTi si β (sy)

i

i



N X

N X

!−1 sTi si

i

N X

! T

T

si Yi − si xi β

(xy)

i

 −1 T  −1  T  = ST S S Y − ST S S X β (xy) Thus: XT X

XT S

!

T

ST S

β (sy) } | {z }

S X |

{z A

β (xy)

Θ

XT Y

! =

!

T

|

S Y {z } r

The solution is Θ = A−1 r. Finally for Σy|x,s : ∂Σy|x,s ℓ̄θ (O) N Z   X (xy) −1 = qθ,oi (si ) Σ−1 − si β (sy) )T (Yi − xi β (xy) − si β (sy) )Σ−1 y|x,s (Yi − xi β y|x,s − Σy|x,s dsi i

S

=0 N

⇔ Σy|x,s =

1 X N i

Z

qθ,oi (si )(Yi − xi β (xy) − si β (sy) )T (Yi − xi β (xy) − si β (sy) )dsi S

1 ((Y − Xβ (xy) − Sβ (sy) )T (Y − Xβ (xy) − Sβ (sy) )) N 1 − ((Sβ (sy) )T (Sβ (sy) ) + (β (sy) )T S T Sβ (sy) ) N =

23 13. Model’s features and remarks 13.0.1 Rotational invariance. Latent mediation models exhibit rotational invariance: for any invertible linear transformation Q ∈ RK×K , the sets (S, β (xs) , β (sm) , β (sy) , Σs|x ) and (SQ, β (xs) Q, Q−1 β (sm) , Q−1 β (sy) , QT Σs|x Q) induce exactly the same likelihood. Although ordering conventions can fix a canonical rotation post-hoc (e.g. in PCA), the above rotational invariance remains. Note that, despite the name, rotational invariance is not restricted to orthogonal rotations; any invertible linear transform Q used in the transformations above leaves the likelihood unchanged. This implies that latent components (and their corresponding parameters) are not uniquely defined. Importantly, once the noise-signal invariance has been fixed by choosing a canonical representation, this non-identifiability is confined to the latent representation itself. The induced mappings between observed variables, such as the path coefficients β (xm) = β (xs) β (sm) , remain identifiable. Consequently, the marginalized mediation model Z p(X, M, Y ) = p(S, X, M, Y )dS S

remains identifiable. 13.0.2 Regularized versions. Regularization can be introduced by changing the prior p(θ) on the parameters in the loglikelihood, which amounts to adding penalty terms. Here we present ℓ1 and ℓ2 regularizations, which both modify the definition of C in the E-step as well as the optimization problem solved in the M-step. We describe below how such penalties can be applied to any coefficient matrix β (uv) ∈ {β (xs) , β (sm) , β (sy) , β (xy) }: ℓ2 (Ridge) regularization corresponds to placing a zero-mean Gaussian prior with covariance Σv|u on β (uv) , which λ − 2 ⟨(β (uv) )T β (uv) ,Σ−1 ⟩

v|u . As a result, the term C in the log-likelihood becomes C amounts to setting p(β (uv) ) ∝ e 2 reg = C − (uv) λ2 −1 T −1 T (uv) T (uv) ⟨(β ) β , Σv|u ⟩, and the update equations become βreg = (U U + λ2 I) U V with corresponding updates of the 2 noise covariance matrices. Importantly, the M-step remains available in closed form under ℓ2 regularization. Note that this is equivalent to simply adding a penalty term − λ22 ⟨(β (uv) )T β (uv) , Σ−1 v|u ⟩ to the log-likelihood.

ℓ1 (LASSO) regularization corresponds to placing a zero-mean Laplace prior on β (uv) , which amounts to setting P (uv) P (uv) p(β (uv) ) ∝ e−λ1 ij |βij | . As a result, the term C in the log-likelihood becomes Creg = C − λ1 ij |βij |. In contrast to the ℓ2 case, the update equations have no analytical solution and must be solved numerically. Notably, ℓ1 regularization can partially break rotational invariance by favouring sparse orientations of the latent space. Note that this is equivalent to P (uv) simply adding a penalty term −λ1 ij |βij | to the log-likelihood. 13.0.3 Log-normally distributed variables. Real-world data are not always well approximated by Gaussian distributions. When outcomes are strictly positive and exhibit right skewness, as in survival analysis for example, the log-normal distribution can be a more appropriate modelling choice. The LaMe framework naturally accommodates log-normally distributed variables through a simple reparametrization. Let Z ∈ {X, M, Y } denote a strictly positive variable assumed to follow a log-normal distribution. P The associated transformations are then Z → log Z throughout the model, and log p(X, M, Y |θ) → log p(X, M, Y |θ) − i,j log Zij , where the summation runs over all the elements of Z.

14. Likelihood-equivalent reparametrizations Starting from the observed moments parametrization from Section 8, we allow for arbitrary reparametrizations of the (xs) (sm) (sy) parameters related to S, namely (β (xs) , β (sm) , β (sy) , Σs|x ), noted (β∗ , β∗ , β∗ , Σ∗s|x ). These transformed parameters describe every possible reparametrization, including translations and changes of rank. Remaining parameters β (xy) , Σx , Σm|s and Σy|x,s must be transformed accordingly to preserve the observed moments. Now, we assume that the bottleneck assumption holds (see Section 8), meaning: ! ! Σ−1 β (xs) β (sm) XX ΣXM rank(C) = rank ⩾ rank =K (31) ΣTM Y − ΣTXY Σ−1 (β (sy) )T Σs|x β (sm) XX ΣXM This constraint means that all latent dimensions K are used to approximate the observed moments in C. Therefore, both factors (β (xs) , (β (sy) )T Σs|x )T and β (sm) above must have rank K. Any other factorization of the same C through K dimensions must consequently differ only by an invertible transformation. (sm) (sm) (sm) In particular, β∗ must also have rank K from the condition above. It follows that (β∗ (β∗ )T ) is invertible, meaning (sm) T (sm) (sm) T −1 (sm) R := (β∗ ) (β∗ (β∗ ) ) exists and satisfies β∗ R = IK . Therefore, right-multiplying the parametric approximation of C by R and reminding that likelihood equivalence implies that this representation is preserved by equivalent transformations, then: ! ! ! β (xs) β∗(xs) β∗(xs) (sm) (sm) β R= β∗ R = (β (sy) )T Σs|x (β∗(sy) )T Σ∗s|x (β∗(sy) )T Σ∗s|x

24

Biometrics, 000 0000

Defining HM = β (sm) R, which must therefore be an invertible K × K matrix to preserve the rank K of the transformed expression of C, it follows parametrizations preserving observed moments when the bottleneck condition is satisfied are: β∗(xs) = β (xs) HM −1 (sm) β∗(sm) = HM β

(β∗(sy) )T Σ∗s|x = (β (sy) )T Σs|x HM The last equation preserved the covariance between M and Y given X, and defines a condition up to an invertible linear transformation K × K matrix noted HY : T Σs|x β (sy) Σ∗s|x β∗(sy) = HM

Since Σ∗s|x must remain positive-definite, we can invert it, which yields the transformation of β (sy) implied by the conservation of observed moments parametrization: T Σs|x β (sy) β∗(sy) = (Σ∗s|x )−1 HM | {z } −1 :=HY

Noting that covariances are positive-definite and HM is invertible, HY is also guaranteed to be invertible. Finally, from the definition of HY : T Σ∗s|x = HM Σs|x HY

Remaining expressions for the transformed parameters follows as in the main text.

15. Supporting derivations for identifiability 15.1 Transformed covariances remain positive semi-definite We recall:   (sm) −1 −1 Σm (β (sm) )T )−1 − (β (xs) )T Σx β (xs) = Σ−1 HY HM s|x (β T Σ∗s|x = HM Σs|x HY

Σ∗m|s = Σm|s + (β (sm) )T Σs|x β (sm) − (β∗(sm) )T Σ∗s|x β∗(sm) Σ∗y|x,s = Σy|x,s + (β (sy) )T Σs|x β (sy) − (β∗(sy) )T Σ∗s|x β∗(sy) The equations above guarantee positive semi-definite conditional covariances after transformation. Note that in general, AT GA ⪰ 0 when G ⪰ 0 for any transformation of A. For convenience of notation, note that the noise covariance of M given X is Σm|x = Σm − (β (xs) β (sm) )T Σx β (xs) β (sm) . Therefore:   −1 (sm) −1 HY HM = Σ−1 Σm (β (sm) )T )−1 − (β (xs) )T Σx β (xs) s|x (β (sm) −1 = Σ−1 Σm|x (β (sm) )T )−1 s|x (β (sm) T HM HY−1 = β (sm) Σ−1 ) Σs|x m|x (β

The result is immediate since Σ∗s|x since Σm|x ⪰ 0: T (sm) T −1 Σ∗s|x = HM (β (sm) Σ−1 ) ) HM m|x (β

⪰0 Developing Σ∗m|s , we can show it also is a form AT GA ⪰ 0: (sm) T −1 Σ∗m|s = Σm|x − (β (sm) )T ((β (sm) Σ−1 ) ) )β (sm) ⪰ 0 m|x (β (sm) T −1 = (I − (β (sm) )T ((β (sm) Σ−1 ) ) )β (sm) Σ−1 m|x (β m|x )

× Σm|x (sm) T −1 T × (I − (β (sm) )T ((β (sm) Σ−1 ) ) )β (sm) Σ−1 m|x (β m|x )

⪰0

25 (sm) −1 Finally, let ξ := (Σ−1 Σm|x (β (sm) )T ) and note that: s|x − β −1 (sm) T ξ = ξΣs|x ξ T + β (sm) Σ−1 ) m|x Σm|s Σm|x (β

⇔ξ⪰0 Then positive semi-definiteness of Σ∗y|x,s immediately follows: (sm) −1 Σ∗y|x,s = Σy|x,s + (β (sy) )T Σs|x (Σ−1 Σm|x (β (sm) )T )Σs|x β (sy) s|x − β

= Σy|x,s + (β (sy) )T Σs|x ξΣs|x β (sy) ⪰0 15.2 Invariance of parametric covariance Σ∗m = Σ∗m|s + (β∗(sm) )T Σ∗s β∗(sm) = Σm|s + (β (sm) )T Σs|x β (sm) − (β∗(sm) )T Σ∗s|x β∗(sm) + (β∗(sm) )T (Σ∗s|x + (β∗(xs) )T Σ∗x β∗(xs) )β∗(sm) = Σm|s + (β (sm) )T Σs|x β (sm) + (β∗(xs) β∗(sm) )T Σ∗x β∗(xs) β∗(sm) −1 (sm) T ∗ (xs) −1 (sm) = Σm|s + (β (sm) )T Σs|x β (sm) + (β (xs) HM HM β ) Σx β HM HM β

= Σm|s + (β (sm) )T (Σs|x + (β (xs) )T Σ∗x β (xs) )β (sm) = Σm|s + (β (sm) )T (Σs|x + (β (xs) )T Σx β (xs) )β (sm) = Σm|s + (β (sm) )T Σs β (sm) = Σm 15.3 Relation under exact recoverability (sm) T Σm|s Σ−1 ) Σs = 0 m (β (sm) T ⇔ (Σm − (β (sm) )T Σs β (sm) )Σ−1 ) Σs = 0 m (β (sm) T ⇔ (β (sm) )T Σs − (β (sm) )T Σs β (sm) Σ−1 ) Σs = 0 m (β (sm) T ⇔ (β (sm) )T Σs (I − β (sm) Σ−1 ) Σs ) = 0 m (β (sm) T ⇔ β (sm) Σ−1 ) Σs = I m (β

16. Inverting the model’s parameters Parameter estimates for any factorization of the joint linear Gaussian distribution p(X, S, M, Y ) can be recovered from the corresponding covariance representation. For instance, if the optimal parameter set θvM is obtained from the LaMevM factorization, we can easily derive the equivalent parameter set θvX = f (θvM ) used in the LaMe-vX factorization. For illustration, consider the expectation of X under the LaMe-vM factorization E[X|M ] = M β (ms) β (sx) := M β (mx) , which has no causal interpretation. Instead, under the LaMe-vX factorization, E[M |X] = Xβ (xm) depends on the causal path coefficient β (xm) , and can be recovered as follows (Bishop, 2006): β (xm) = Σ−1 xx Σxm

(32)

T = Σ−1 xx Σmx

=



×



(β (sx) )T (β (ms) )T Σm β (ms) β (sx) + (β (sx) )T Σs|m β (sx) + | {z } | {z } Noise propagating from M to X (ms)

Σm β β | {z

(sx)

Noise from S to X

Σx|s |{z}

−1

Intrinsic noise

T

}

Signal from M to X

For any generic unconditioned linear coefficient β (ab) , the following relation holds: β (ab|a) = Σ−1 aa Σab

(33)

When conditioning on additional variables, the coefficient reads: −1 β (ab|a,c) = (Σaa − Σac Σ−1 (Σab − Σac Σ−1 cc Σca ) cc Σcb )

(34)

Finally, we recall below all covariances and cross-covariances needed to compute the regression parameters in various models and factorizations. Note that in the main text, we defined the shorthand notation β (my) := β (my|m,x) = (Σmm − −1 (xm) Σmx Σ−1 (Σmy − Σmx Σ−1 := β (xm|x) = Σ−1 xx Σxm ) xx Σxy ) and β xx Σxm .

26

Biometrics, 000 0000

16.1 Non-latent model Standard mediation models can be expressed as: p(x, m, y) = p(y|x, m)p(m|x)p(x) We have: Σxx = Σx Σmm = (β (xm) )T Σxx β (xm) + Σm Σmx = (β (xm) )T Σxx Σxm = Σxx β (xm) Σmy = (β (xm) )T Σx β (xy) + Σmm β (my) Σxy = Σxx (β (xy) + β (xm) β (my) )

16.2 Latent model Latent mediation models can be expressed as: p(x, m, y, s) = p(y|x, s)p(s|x)p(m|s)p(x) = p(y|x, s)p(s|m)p(x|s)p(m) The equations for inverting the parameters remain the same, but covariance matrices are now expressed as: Model vX. Σxx = Σx Σss = Σs|x + (β (xs) )T Σxx β (xs) Σmm = Σm|s + (β (sm) )T Σss β (sm) Σxm = Σxx β (xs) β (sm) Σmx = (β (sm) )T (β (xs) )T Σxx Σmy = (β (sm) )T (β (xs) )T Σxx β (xy) + (β (sm) )T Σss β (sy) Σxy = Σxx (β (xy) + β (xs) β (sy) )

Model vM. Σmm = Σm Σss = Σs|m + (β (ms) )T Σmm β (ms) Σxx = Σx|s + (β (sx) )T Σss β (sx) Σmx = Σmm β (ms) β (sx) Σxm = (β (sx) )T (β (ms) )T Σmm Σmy = Σmm β (ms) (β (sx) β (xy) + β (sy) ) Σxy = Σxx β (xy) + (β (sx) )T Σss β (sy)

27 17. Signal-to-noise ratios 17.1 LaMe 17.1.1 LaMe-vX.

By definition, signal-to-noise ratios are: 1

T r((β (xs) )T Σx β (xs) ) ||Σx2 β (xs) ||2F SN R(S|X) = = 1 T r(Σs|x ) ||Σ 2 ||2 s|x F

SN R(M |S) =

SN R(Y |X, S) =

T r((β

(sm) T

) ((β

(xs) T

(xs)

+ Σs|x )β (sm) )

) Σx β T r(Σm|s )

1

2 ||Σm|s ||2F

T r((β (xy) + β (xs) β (sy) )T Σx (β (xy) + β (xs) β (sy) ) + (β (sy) )T Σs|x β (sy) ) T r(Σy|x,s ) 1

=

1

||((β (xs) )T Σx β (xs) + Σs|x ) 2 β (sm) ||2F

=

1

2 ||Σx2 (β (xy) + β (xs) β (sy) )||2F + ||Σs|x β (sy) ||2F 1

2 ||Σy|x,s ||2F

The scaling factor can be obtained by simple algebra so that Σ′A = sA ΣA so that the signal-to-noise ratio of A given its parent nodes is RA , for A ∈ [X, S, M, Y ]. Thus introducing sm , sy and ss : 1

SN R(S|X) := Rs =

||Σx2 β (xs) ||2F 1

2 ss ||Σs|x ||2F 1

⇔ ss =

||Σx2 β (xs) ||2F 1

2 Rs ||Σs|x ||2F 1

SN R(M |S) := Rm =

||((β (xs) )T Σx β (xs) + ss Σs|x ) 2 β (sm) ||2F 1 2

sm ||Σm|s ||2F 1

⇔ sm =

||((β (xs) )T Σx β (xs) + ss Σs|x ) 2 β (sm) ||2F 1

2 Rm ||Σm|s ||2F 1

1

SN R(Y |X, S) := Ry =

2 ||Σx2 (β (xy) + β (xs) β (sy) )||2F + ss ||Σs|x β (sy) ||2F 1

2 sy ||Σy|x,s ||2F 1

⇔ sy =

1

2 ||Σx2 (β (xy) + β (xs) β (sy) )||2F + ss ||Σs|x β (sy) ||2F 1

2 Ry ||Σy|x,s ||2F

17.1.2 LaMe-vM.

By definition, signal-to-noise ratios are: 1

SN R(S|M ) =

2 T r((β (ms) )T Σm β (ms) ) ||Σm β (ms) ||2F = 1 T r(Σs|m ) ||Σ 2 ||2

s|m F

1

T r((β (sx) )T ((β (ms) )T Σm β (ms) + Σs|m )β (sx) ) ||((β (ms) )T Σm β (ms) + Σs|m ) 2 β (sx) ||2F SN R(X|S) = = 1 T r(Σx|s ) ||Σ 2 ||2 x|s F

SN R(Y |X, S) =

T r((β

(sy) T

) Σs β

(sy)

+ (β

(xy) T

(xy)

) Σx β + 2(β T r(Σy|x,s )

β

(xy) T

) Σs β

(sy)

)

1

1

=

(sx)

2 ||((β (ms) )T Σm β (ms) + Σs|m ) 2 (β (sx) β (xy) + β (sy) )||2F + ||Σx|s β (xy) ||2F 1

2 ||Σy|x,s ||2F

where the unconditional variances are Σs = ((β (ms) )T Σm β (ms) + Σs|m ) and Σx = Σx|s + (β (sx) )T Σs β (sx) in the LaMe-vM parametrization. The scaling factor can be obtained by simple algebra so that Σ′A = sA ΣA so that the signal-to-noise ratio of A given its

28

Biometrics, 000 0000

parent nodes is RA , for A ∈ [X, S, M, Y ]. Thus introducing sx , sy and ss : 1

SN R(S|M ) := Rs =

2 β (ms) ||2F ||Σm 1

1

⇔ ss =

2 ss ||Σs|m ||2F

2 β (ms) ||2F ||Σm 1

2 Rs ||Σs|m ||2F 1

SN R(X|S) := Rx =

||((β (ms) )T Σm β (ms) + ss Σs|m ) 2 β (sx) ||2F 1

2 ||2F sx ||Σx|s 1

⇔ sx =

||((β (ms) )T Σm β (ms) + ss Σs|m ) 2 β (sx) ||2F 1

2 Rx ||Σx|s ||2F 1

SN R(Y |X, S) := Ry =

1

2 2 ||Σss (ss )(β (sx) β (xy) + β (sy) )||2F + sx ||Σx|s β (xy) ||2F 1

2 sy ||Σy|x,s ||2F 1

⇔ sy =

1

2 2 ||Σss (ss )(β (sx) β (xy) + β (sy) )||2F + sx ||Σx|s β (xy) ||2F 1

2 Ry ||Σy|x,s ||2F 1

1

=

2 β (xy) ||2F ||((β (ms) )T Σm β (ms) + ss Σs|m ) 2 (β (sx) β (xy) + β (sy) )||2F + sx ||Σx|s 1

2 Ry ||Σy|x,s ||2F

where Σss (ss ) = (β (ms) )T Σm β (ms) + ss Σs|m and Σxx (sx , ss ) = (β (sx) )T (β (ms) )T Σm β (ms) β (sx) + (β (sx) )T ss Σs|m β (sx) + sx Σx|s . 17.2 Non-latent models By definition, signal-to-noise ratios are: 1

SN R(M |X) =

T r((β (xm) )T Σx β (xm) ) ||Σx2 β (xm) ||2F = 1 T r(Σm|x ) ||Σ 2 ||2 m|x F

T r((β (xy) + β (xm) β (my) )T Σx (β (xy) + β (xm) β (my) ) + (β (my) )T Σm|x β (my) ) SN R(Y |X, M ) = T r(Σy|x,m ) 1

=

1

2 ||Σx2 (β (xy) + β (xm) β (my) )||2F + ||Σm|x β (my) ||2F 1

2 ||2F ||Σy|x,m

The scaling factor can be obtained by simple algebra so that Σ′A = sA ΣA so that the signal-to-noise ratio of A given its parent nodes is RA , for A ∈ [X, M, Y ]. Thus introducing sm and sy : 1

SN R(M |X) := Rm =

||Σx2 β (xm) ||2F 1

2 sm ||Σm|x ||2F 1

⇔ sm =

||Σx2 β (xm) ||2F 1

2 ||2F Rm ||Σm|x 1

SN R(Y |X, M ) := Ry =

1

2 ||Σx2 (β (xy) + β (xm) β (my) )||2F + sm ||Σm|x β (my) ||2F 1

2 sy ||Σy|x,m ||2F 1

⇔ sy =

1

2 ||Σx2 (β (xy) + β (xm) β (my) )||2F + sm ||Σm|x β (my) ||2F 1

2 Ry ||Σy|x,m ||2F

18. Baselines implementation details JAOG. We extended (Nath et al., 2023)’s model to handle multivariate latent variables (K ⩾ 1). In the article, the authors posit a deterministic dimension reduction model S = φ(M ), whose output, S, is used in a standard LASSO mediation model. To do so, the authors define an optimization target both for inferring the parameters of φ(M ) and for inferring the structural parameters of the mediation model. Adapting their notation, we define E = Y − Xβ (xy) and H = Xβ (xs) . The target of the multivariate extension of (Nath et al., 2023) then becomes ||φ(M ) − (E(β (sy) )T + H)(β (sy) (β (sy) )T + IK )−1 ||2 . Finally, we choose φ(M ) to be a multivariate linear Gaussian regression model so that (Nath et al., 2023)’s approach is the closest to the data generation process used in our experiments.

29 LVMA. We considered a direct comparison with (Derkach et al., 2019), whose model assumes a diagonal manifest residual covariance Σm|s , whereas LaMe and other baselines impose the perfect-measurement restriction Σm|s β (ms) = 0 for effect identification. In preliminary experiments, an adaptation accommodating multivariate exposures and outcomes performed poorly when the data-generating process violated the diagonal residual-covariance assumption. Such a comparison would therefore combine differences in latent dimensionality with differences in covariance restrictions, making it difficult to isolate the contribution of dimension reduction. Moreover, a direct benchmark of (Derkach et al., 2019) would require extending its scalar exposure-outcome formulation while preserving its covariance restrictions, penalization, and model-selection procedure. The resulting comparison would depend on additional methodological choices beyond the scope of the present evaluation. We therefore avoid attributing the performance of a substantially modified implementation to the original method. Instead, we use an overparametrized LaMe comparator with K = I+J+L , satisfying K ⩾ min(I + L, J). This comparator retains the same 2 covariance flexibility while removing the rank restriction responsible for compression, which closely relates to the point we discussed about (Derkach et al., 2019) in the background section. All remaining baselines were implemented using scikit-learn.

19. Scalability

103

Running time (s)

105

LaMe-vX ( N = 0.70) LaMe-vM ( N = 0.72) PCA+OLS ( N = 0.55) PLS(X,M,Y)+OLS ( N = 1.37) JAOG ( N = 0.45) OLS ( N = 0.71) LASSO ( N = 1.66) Pathway LASSO ( N = -0.03)

104

104

103

102 102 101 101 100

LaMe-vX ( J = 1.76) LaMe-vM ( J = 1.24) PCA+OLS ( J = 2.71) PLS(X,M,Y)+OLS ( J = 1.06) JAOG ( J = 1.51) OLS ( J = 1.40) LASSO ( J = 1.26) Pathway LASSO ( J = 0.91)

100

10 1

10 1 103

N

104

0

500

1000

J

1500

2000

2500

Figure 6. Scalability of the models — For a system with I = 100, J = 100, L = 1, N = 3000, with one full inference cycle per model. Each curve is normalized by its smallest entry to show how running time evolves as a function of N (left) and J (right). α denotes the power-law exponent.

In Fig. 6, we plot the normalized running time of LaMe and the baseline methods for a system with I = 100, J = 100, L = 1, N = 3000, unless specified otherwise. The models are run for a full inference procedure, meaning LaMe’s EM algorithm is run 100 times, LASSO, PLS and PCA select their hyperparameters by cross-validation, etc. Refer to the main text for more details. We see that LaMe scales similarly to other methods with respect to N , and better than most with respect to J. Pathway LASSO seems to scale well, but has the longest absolute convergence time. This figure also highlights the benefits of choosing the LaMe-vM factorization over the LaMe-vX factorization when J is large. Absolute running times must be interpreted with caution due to their dependence on experimental parameters (number of runs, number of cross-validation folds, convergence criterion, etc.). Overall, this further supports the versatility of the LaMe framework, which can handle a range of situations efficiently and accurately.

30

Biometrics, 000 0000

20. Correlation and identifiability issues in retrieving the observed measurement set In (Derkach et al., 2019), the authors define the mediating set between exposure Xi and outcome Yl as: Mil LV M A := P (xs) (sm) (sy) LV M A LV M A {Mj |Cijl := k |βik βkj βkl | ̸= 0}, where Cijl is a shorthand notation. This definition, however, does not account for candidate mediators’ correlation and non-identifiability, which raises interpretation issues. (sm) Correlation matters for interpretation, because βkj ̸= 0 in Mil LV M A does not necessarily imply that Mj informs latent (sm)

variables S acting as mediators between Xi and Yl . For instance, βkj ̸= 0 could reflect variation in Mj along a latent component associated with Xi , without implying that this component contributes to Yl . For Mj to be interpreted as a mediator, a proper definition should therefore account for both a non-zero β (xs) β (sm) (M varies with X through S) and a non-zero β (ms) β (sy) (M informs Y through S); the expression of β (ms) in particular involves Σm|s , thus accounting for correlation between manifest variables. The non-identifiability issue arises in two cases when rotational and scaling invariance exists. Scaling invariance can be removed by forcing Σs|x = I, as in (Derkach et al., 2019); rotational invariance however, remains. Rotational invariance states that (β (xs) , β (sm) , β (sy) , θ(I)) and (β (xs) R, RT β (sm) , RT β (sy) , θ(R)) define an equivalent reparametrization of the latent mediation model, where θ(R) denotes the set of other parameters related to S after an orthogonal rotation R. The issue arises because (xs) (sm) (sy) LV M A Mil = |βi· diag(β·j )β·l | ̸= LV M A is not invariant to these likelihood-equivalent parametrizations: factorizing Cijl (xs)

(sm)

(sy)

|βi· R · diag(RT β·j ) · RT β·l | shows that R does not cancel out. As such, mediating biomarkers can be arbitrarily added or removed from the set Mil LV M A through likelihood-equivalent rotations of the latent space, hence the need for a rotationally invariant definition of the “mediating” manifest set of variables.

21. Additional synthetic experiments We explore in Fig. 7 how models perform when there is an imbalance between the dimensionality of X and M . Our results show that models perform similarly as in the balanced case, although with a notable increase in accuracy of two-step latent approaches (PCA, PLS) for latent data. Increasing J means the mediators carry more information about the whole system, thus alleviating PCA’s sequential estimation. On the other hand, lowering I reduces the amount of information flowing through the direct path β (xy) , which also alleviates PLS’s sequential estimation bias. In Fig. 9, we compare models against extreme signal-to-noise ratios from S to M and Y on latent data. We use cosine similarity as a normalized measure for absolute comparison. Overall, we observe a sharp decrease in accuracy for β (my) once SN R(Y |S) < 3% whereas β (xm) estimates remain accurate for even smaller SN R(M |S) –which can be explained by a greater amount of information available due to J ≫ L. Overall, LaMe still outperforms baselines and retains its accuracy for lower values of SN R(M, Y |S). Fig. 8 shows that LaMe’s performance is unaffected by the dimension of M once SN R(M |S) is fixed. We use cosine similarity as a normalized measure for absolute comparison.

31

Latent data generation process

Average | (my)

(my) true |

Average | (xm)

(xm) true |

0.025 0.020 0.015 0.010 0.005 0.000 0.025 0.020 0.015 0.010 0.005 0.000

Non-latent data generation process

0.03

OLS OVP-LaMe PCA+OLS PLS(X,M,Y)+OLS PLS(X,M)+OLS OLS+PLS(X,M,Y) JAOG LaMe (vX)

0.02 0.01 0.00

1000 1470 2150 3160 4640 6810 10000

1000 1470 2150 3160 4640 6810 10000

0.025 0.020 0.015 0.010 0.005 0.000

1000 1470 2150 3160 4640 6810 10000 Number of observations (N)

1000 1470 2150 3160 4640 6810 10000 Number of observations (N)

Figure 7. LaMe accurately retrieves underlying parameters — LaMe and baselines when I = 50, J = 200, L = 1, (xm) and a signal-to-noise ratio from S to Y and M equal to 0.1. (Top) Mean absolute error over all parameters in βinf and (xm)

(my)

(my)

0.04

0.04

0.02

0.02

0.03

0.03

0.03

0.03

0.11

-0.05

0.11

0.12

0.12

0.05

0.11

0.09

0.06

0.07

0.09

0.05

0.06

0.07

0.06

0.07

0.21

0.17

0.16

0.16

0.16

0.08

0.15

0.13

0.13

0.17

0.24

0.30

0.33

0.36

0.38

0.35

0.27

0.09

0.30

0.46

0.49

0.48

0.52

0.49

0.25

0.39

0.53

0.60

0.65

0.69

0.72

0.73

0.30

0.45

0.55

0.64

0.67

0.69

0.71

0.68

0.41

0.64

0.73

0.80

0.85

0.87

0.89

0.90

0.45

0.70

0.74

0.79

0.82

0.85

0.86

0.87

0.58

0.79

0.87

0.90

0.92

0.93

0.94

0.95

0.63

0.81

0.87

0.88

0.91

0.93

0.94

0.94

0.65

0.85

0.90

0.93

0.94

0.95

0.96

0.96

0.68

0.89

0.91

0.93

0.95

0.96

0.97

0.97

0.68

0.87

0.92

0.94

0.95

0.96

0.97

0.97

0.81

0.93

0.95

0.96

0.97

0.98

0.98

0.98

0.69

0.88

0.92

0.94

0.96

0.96

0.97

0.97

0.91

0.97

0.97

0.98

0.99

0.99

0.99

0.99

0.15

0.53

0.69

0.79

0.84

0.86

0.89

0.90

0.22

0.13

0.12

0.29

0.32

0.55

0.64

0.68

0.14

0.53

0.72

0.80

0.84

0.87

0.89

0.90

0.16

0.12

0.26

0.41

0.62

0.65

0.67

0.71

0.13

0.59

0.73

0.79

0.84

0.87

0.89

0.90

0.02

0.14

0.24

0.37

0.57

0.66

0.69

0.74

0.24

0.59

0.74

0.80

0.85

0.87

0.89

0.90

-0.01

0.08

0.26

0.48

0.69

0.71

0.69

0.73

0.28

0.59

0.72

0.81

0.85

0.87

0.89

0.90

-0.02

0.20

0.26

0.55

0.68

0.72

0.72

0.74

0.30

0.58

0.72

0.79

0.83

0.86

0.88

0.89

0.12

0.25

0.35

0.56

0.67

0.72

0.73

0.75

0.34

0.60

0.72

0.79

0.83

0.85

0.87

0.88

0.08

0.41

0.59

0.64

0.77

0.82

0.82

0.82

1000

1500

2000

2500

3000

3500

4000

500

1000

1500

2000

2500

3000

3500

4000

400 350 300 250 200 150 100

(my)) Cosine similarity ( (my), true

(xm)) Cosine similarity ( (xm), true

500

0.001 0.003 0.010 0.030 0.100 0.300 1.000 3.000 10.000

Number of mediators (J)

Signal to noise ratio

βtrue ; (Bottom) Mean absolute error over all parameters βinf and βtrue ; (left) data are generated using a latent process (K = 10) with the true K provided to all latent models ; (right) data are generated using a non-latent process with K = min(I+L,J) for all latent models except for OVP-LaMe where K = I+J = 100. 2 2

Number of observations (N)

Number of observations (N)

Figure 8. LaMe’s parameter retrieval in challenging situations — LaMe’s cosine similarity when I = 100, J = 100, K = 10, L = 1 and SN R(Y |S) = SN R(M |S) = 0.1, unless specified otherwise, with a varying number of observations N | (top) with respect to SN R(M |S) = SN R(Y |S) | (bottom) with respect to the number of mediators J ; a dataset is generated once for J = 400, and models are trained on subsets of M , which can cause SN R(Y |S), SN R(M |S) to fluctuate around their (xm) (my) target value across different J | (left) between estimated β (xm) and βtrue | (right) between estimated β (my) and βtrue .

32

Biometrics, 000 0000

(xm)) Cosine similarity ( (xm), true

0.8

1.0

OLS LVMA PLS(X,M,Y)+OLS PLS(X,M)+OLS OLS+PLS(X,M,Y) PCA+OLS JAOG LaMe (vX)

0.8

(my)) Cosine similarity ( (my), true

1.0

0.6

0.4

0.2

0.0

OLS LVMA PLS(X,M,Y)+OLS PLS(X,M)+OLS OLS+PLS(X,M,Y) PCA+OLS JAOG LaMe (vX)

0.6

0.4

0.2

0.001

0.003

0.010

0.032 SNR(M|S)

0.100

0.316

1.000

0.0

0.001

0.003

0.010

0.032 SNR(M|S)

0.100

0.316

1.000

Figure 9. LaMe accurately retrieves underlying parameters over a range of signal-to-noise ratios — LaMe and baselines when I = 100, J = 100, K = 10, L = 1, and a varying signal-to-noise ratio from S to Y and M . (left) Cosine (xm) (xm) (my) (my) similarity between βinf and βtrue ; (right) Cosine similarity between βinf and βtrue ; data are generated using a latent process (K = 10).

22. Real-world data - Standard 5-fold CV The results for a standard 5-fold cross-validation procedure are provided in Table 2. The data are split into 80% training data and 20% test data with no overlap between testing samples. We stress that PCA+LASSO’s overall good predictive performances are consistently achieved at the cost of high-dimensional latent mediators, whereas models such as LaMe or JAOG seem to efficiently compress the relevant information into a smaller number of latent variables.

33

CRIME

PISA - I

EPIC CAN

NHANES

Table 2 Out-of-sample and in-sample performance metrics of LaMe (version X and M , with and without ℓ1 regularization, assuming full noise covariances) and all baseline models. The last lines report the average improvement of models’ metrics over OLS across all datasets –hence the null line for OLS. NLPD is the Negative Log-Predictive Density, R2 the fraction of explained variance and AIC the Akaike Information Criterion. When applicable, the number of latent variables is reported as K. Errors correspond to the standard error across five folds. The colour scale indicates relative performance within each dataset and metric ; (orange=best).

LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG LaMe (vM) LaMe (vM) (reg) LaMe (vX) LaMe (vX) (reg) PCA+OLS PCA+LASSO PLS(X,M,Y)+OLS PLS(X,M)+OLS OVP-LaMe JAOG

N LP D(Y |X, M ) ↓ 1.326 ± 0.051 1.326 ± 0.052 1.326 ± 0.051 1.326 ± 0.052 1.326 ± 0.053 1.320 ± 0.051 1.484 ± 0.023 1.325 ± 0.051 1.326 ± 0.052 1.325 ± 0.052 0.701 ± 0.007 0.701 ± 0.007 0.701 ± 0.007 0.701 ± 0.007 0.747 ± 0.007 0.692 ± 0.008 0.776 ± 0.018 0.720 ± 0.009 0.747 ± 0.006 0.736 ± 0.013 1.066 ± 0.004 1.066 ± 0.004 1.066 ± 0.004 1.066 ± 0.004 1.075 ± 0.004 1.075 ± 0.004 1.197 ± 0.005 1.189 ± 0.003 1.066 ± 0.004 1.162 ± 0.003 0.894 ± 0.014 0.896 ± 0.016 0.895 ± 0.015 0.898 ± 0.017 0.889 ± 0.015 0.885 ± 0.016 0.927 ± 0.014 0.925 ± 0.014 0.889 ± 0.015 0.893 ± 0.014

R2 (Y |X, M ) ↑ 0.186 ± 0.010 0.186 ± 0.010 0.186 ± 0.010 0.187 ± 0.010 0.187 ± 0.012 0.194 ± 0.009 −0.139 ± 0.070 0.186 ± 0.009 0.187 ± 0.012 0.189 ± 0.011 0.762 ± 0.001 0.762 ± 0.001 0.762 ± 0.001 0.762 ± 0.001 0.746 ± 0.002 0.766 ± 0.001 0.723 ± 0.009 0.752 ± 0.004 0.746 ± 0.002 0.750 ± 0.003 0.506 ± 0.004 0.506 ± 0.004 0.506 ± 0.004 0.506 ± 0.004 0.497 ± 0.004 0.497 ± 0.004 0.358 ± 0.007 0.368 ± 0.005 0.506 ± 0.004 0.402 ± 0.003 0.651 ± 0.014 0.649 ± 0.015 0.650 ± 0.015 0.648 ± 0.016 0.655 ± 0.014 0.657 ± 0.016 0.626 ± 0.013 0.627 ± 0.013 0.655 ± 0.014 0.652 ± 0.015

AIC ↓ K ↓ 98.318 ± 0.320 3.000 ± 0.001 98.374 ± 0.310 3.000 ± 0.001 98.318 ± 0.320 3.000 ± 0.001 98.322 ± 0.317 3.000 ± 0.001 98.809 ± 0.321 24.000 ± 0.001 98.893 ± 0.322 24.000 ± 0.001 98.610 ± 0.368 6.000 ± 0.001 98.319 ± 0.320 6.000 ± 0.001 98.612 ± 0.321 19.000 ± 0.001 99.219 ± 0.320 1.800 ± 0.179 861.197 ± 0.607 4.000 ± 0.001 861.029 ± 0.495 5.000 ± 0.001 861.197 ± 0.607 4.000 ± 0.001 866.853 ± 0.463 1.000 ± 0.001 933.025 ± 0.613 377.600 ± 0.219 935.368 ± 0.635 377.600 ± 0.219 861.128 ± 0.611 15.000 ± 0.001 861.032 ± 0.610 15.000 ± 0.001 897.439 ± 0.602 206.000 ± 0.001 863.432 ± 0.638 3.400 ± 0.358 102.216 ± 0.025 10.000 ± 0.001 102.217 ± 0.027 10.000 ± 0.001 102.216 ± 0.025 10.000 ± 0.001 102.232 ± 0.023 10.000 ± 0.001 102.227 ± 0.025 19.000 ± 0.001 102.231 ± 0.025 19.000 ± 0.001 102.496 ± 0.025 12.000 ± 0.001 102.477 ± 0.024 12.000 ± 0.001 102.213 ± 0.025 23.000 ± 0.001 103.830 ± 0.028 1.000 ± 0.001 72.937 ± 0.252 15.000 ± 0.001 75.055 ± 0.330 10.000 ± 0.001 72.937 ± 0.251 15.000 ± 0.001 74.700 ± 0.246 10.000 ± 0.001 73.022 ± 0.246 32.000 ± 0.001 73.542 ± 0.243 32.000 ± 0.001 76.419 ± 0.222 32.000 ± 0.001 76.401 ± 0.224 32.000 ± 0.001 75.213 ± 0.247 50.000 ± 0.001 80.429 ± 0.255 5.000 ± 0.001

34

Biometrics, 000 0000

35 23. Full mediation graphs D.

A.

2 1 0 1

0

1

1

3

2 0 R 2 = 0.948

ViolentCrimesPerPop 2

0

2

2

4

R 2 = 0.189

6 4

Yobserved

LBXFSH LBXLUH LBXFER LBXBPB LBXBCD LBDRFO LBXSF1SI LBXTC LBXHBS LBXPG4 LBXAND LBXAMH

RIDAGEYR HUQ010 WHD020 WHD050 OHQ845 WHD010 DMDEDUC2

2 0 1.0

0.5 0.0

0.5

1.0

R 2 = 0.367

Mobserved (top 3)

6 4 2

LBXGH

0 1

R 2 = 0.507

MATHEFF FAMCON DISCLIM MATHEF21 MATHPERS TARDYSD COGACMCO SKIPPING CREATSCH REPEAT

2 1 0

1 2 2

1

0

1

2

2 0

MATH

...

Prot. 18 Prot. 17 Prot. 16 Prot. 15 Prot. 14 Prot. 13 Prot. 2 Prot. 1 Prot. 0

...

2

R 2 = 0.223 1

0

1

R 2 = 0.766

2

1

Mobserved (top 3)

HOMEPOS ESCS HISEI CURIOAGR ST004D01T PERSEVAGR EMOCOAGR ASSERAGR GROSAGR EXERPRAC WORKHOME WORKPAY ANXMAT

0

Yobserved

1

age hli_smoke waist_c whr_c qe_us_fat rmed_score mrmed_score sex

2

0

2 1 0

1

1 2 3

2

R 2 = 0.436

3 2 1 0

event_time

Yobserved

%Illeg racepctblack Male%Div Female%Div pctWPubAsst NumIlleg NumUnderPov Total%Div population %NotHSGrad %Unemployed pctWInvInc %Teen2Par %YoungKids2Par %Fam2Par race%White %Kids2Par

3

R 2 = 0.679

Yobserved

HousVacant %PsnDenseHous MedYrHousBuilt %HousNoPhone NumInShelters Psn/RentOccHous LandArea OwnOccHiQuart Psn/OccHous NumStreet %LargHsFam MedOwnCost%IncNoMtg

Mobserved (top 3)

C.

Mobserved (top 3)

B.

1 1.0

0.5 0.0 0.5 Predicted values

1.0

Figure 10. LaMe’s results on real-world data — (A) Schematic illustration of the dataset and of the mediated system at hand. (B,C) Results from the LaMe-vX model, assuming either the causal structural model with latent mediators with K chosen for the lowest BIC (B) or without latent mediators (C). Arrows represent the standardized structural coefficients 1

−1

β̃ (uv) = Σu2 β (uv) Σv 2 ; for variables with a causal path to the outcome, squares’ colour represents the total causal effect of a unit intervention on the corresponding variable on the outcome Y under the model specified with latent mediators–in this case, the sum of all causal paths leading to Y ; in the latent graph, mediator colours represent marginal associations with Y , not causal effects. For both squares and arrows, blue represents a negative relation, red represents a positive relation, and colour intensity represents its strength with extremal values at ±0.25 s.d. Annotations of (C) match those in (B). (D) Plot of the predicted values of Y and entries of M (the three with highest R2 ) against their true values, along with the associated coefficient of determination R2 .

%Illeg racepctblack Male%Div Female%Div pctWPubAsst NumIlleg NumUnderPov Total%Div population %NotHSGrad %Unemployed numbUrban Male%NevMarr pctUrban %PopUnderPov race%Hisp %RecImmig10 %RecImmig8 NumImmig %ImmigRec10 %ForeignBorn NoGoodEng %Less9thGrade Psn/Fam %RecImmig5 %RecentImmig %OccManu %ImmigRec8 %SameCity85 %ImmigRec5 %ImmigRecent age%65up pctWSocSec householdsize Other/Cap age%16t24 race%Asian Asian/Cap %WorkMomYoungKids age%12t21 %SameState85 Hisp/Cap white/Cap indian/Cap %EmplProfServ pctWFarmSelf age%12t29 %SameHs85 %SpeakEnglOnly %Employ pctWRetire %BSorMore %BornSameState perCapInc %EmplManu %OccMgmtProf black/Cap medInc %WorkMom medFamInc pctWWage pctWInvInc %Teen2Par %YoungKids2Par %Fam2Par race%White %Kids2Par

HousVacant %PsnDenseHous MedYrHousBuilt %HousNoPhone NumInShelters Psn/RentOccHous LandArea OwnOccHiQuart Psn/OccHous NumStreet %LargHsFam Lemas%OfficDrugUn %VacantBoarded MedOwnCost%Inc MedRent%HousInc %WOFullPlumb RentLowQ RentMedian MedRent MedNumBR OwnOccMedVal PopDens RentHighQ %LargHsOcc %UsePubTrans %HousOcc %HousOwnOcc %HousLess3BR %PsnOwnOcc %VacMore6Mos Psn/OwnOccHous OwnOccLowQuart MedOwnCost%IncNoMtg

HousVacant

%PsnDenseHous

MedYrHousBuilt

%HousNoPhone

NumInShelters

Psn/RentOccHous

LandArea

OwnOccHiQuart

Psn/OccHous

NumStreet

%LargHsFam

Lemas%OfficDrugUn

%VacantBoarded

MedOwnCost%Inc

MedRent%HousInc

%WOFullPlumb

RentLowQ

RentMedian

MedRent

MedNumBR

OwnOccMedVal

PopDens

RentHighQ

%LargHsOcc

%UsePubTrans

%HousOcc

%HousOwnOcc

%HousLess3BR

%PsnOwnOcc

%VacMore6Mos

Psn/OwnOccHous

OwnOccLowQuart

Biometrics, 000 0000

MedOwnCost%IncNoMtg

36

ViolentCrimesPerPop

ViolentCrimesPerPop

Full graphs for the CRIME dataset

LBXAMH LBXAND LBXPG4 LBXBMN LBX17H LBXEST LBXBSE LBXSF2SI LBXHSCRP LBXHA LBXSF4SI LBXESO LBXSF6SI LBXSHBG LBXTHG LBXSF5SI LBXHBS LBXTC LBXSF1SI LBDRFO LBXBCD LBXBPB LBXFER LBXLUH LBXFSH

Figure 11.

%Illeg racepctblack Male%Div Female%Div pctWPubAsst NumIlleg NumUnderPov Total%Div population %NotHSGrad %Unemployed numbUrban Male%NevMarr pctUrban %PopUnderPov race%Hisp %RecImmig10 %RecImmig8 NumImmig %ImmigRec10 %ForeignBorn NoGoodEng %Less9thGrade Psn/Fam %RecImmig5 %RecentImmig %OccManu %ImmigRec8 %SameCity85 %ImmigRec5 %ImmigRecent age%65up pctWSocSec householdsize Other/Cap age%16t24 race%Asian Asian/Cap %WorkMomYoungKids age%12t21 %SameState85 Hisp/Cap white/Cap indian/Cap %EmplProfServ pctWFarmSelf age%12t29 %SameHs85 %SpeakEnglOnly %Employ pctWRetire %BSorMore %BornSameState perCapInc %EmplManu %OccMgmtProf black/Cap medInc %WorkMom medFamInc pctWWage pctWInvInc %Teen2Par %YoungKids2Par %Fam2Par race%White %Kids2Par

RIDAGEYR HUQ010 WHD020 WHD050 OHQ845 AUQ054 SLD013 SMD460 SMQ020 PAD680 SLD012 INDFMMPI WHD010 DMDEDUC2

LBXGH

LBXGH

Full graphs for the NHANES dataset

REPEAT CREATSCH SKIPPING COGACMCO TARDYSD STUDYHMW BULLIED EXPO21ST BELONG TEACHSUP RELATST EXPOFA COGACRCO MATHPREF MATHEASE MATHPERS MATHEF21 DISCLIM FAMCON MATHEFF

Figure 12.

RIDAGEYR HUQ010 WHD020 WHD050 OHQ845 AUQ054 SLD013 SMD460 SMQ020 PAD680 SLD012 INDFMMPI WHD010 DMDEDUC2

LBXFSH LBXLUH LBXFER LBXBPB LBXBCD LBDRFO LBXSF1SI LBXTC LBXHBS LBXSF5SI LBXTHG LBXSHBG LBXSF6SI LBXESO LBXSF4SI LBXHA LBXHSCRP LBXSF2SI LBXBSE LBXEST LBX17H LBXBMN LBXPG4 LBXAND LBXAMH

HOMEPOS ESCS HISEI CURIOAGR ST004D01T PERSEVAGR EMOCOAGR ASSERAGR GROSAGR FISCED CREATOP PAREDINT MISCED STRESAGR EMPATAGR CREATFAM HISCED OPENART ST003D02T FAMSUP CREATEFF ST001D01T COOPAGR EXERPRAC WORKHOME WORKPAY ANXMAT

MATH

Figure 13.

HOMEPOS ESCS HISEI CURIOAGR ST004D01T PERSEVAGR EMOCOAGR ASSERAGR GROSAGR FISCED CREATOP PAREDINT MISCED STRESAGR EMPATAGR CREATFAM HISCED OPENART ST003D02T FAMSUP CREATEFF ST001D01T COOPAGR EXERPRAC WORKHOME WORKPAY ANXMAT

Full graphs for the PISA-I dataset

MATHEFF FAMCON DISCLIM MATHEF21 MATHPERS MATHEASE MATHPREF COGACRCO EXPOFA RELATST TEACHSUP BELONG EXPO21ST BULLIED STUDYHMW TARDYSD COGACMCO SKIPPING CREATSCH REPEAT

MATH

Prot. 18

Prot. 18 Prot. 17 Prot. 16 Prot. 15 Prot. 14 Prot. 13 Prot. 12 Prot. 11 Prot. 10 Prot. 9 Prot. 8 Prot. 7 Prot. 6 Prot. 5

...

Prot. 17

Prot. 16

Prot. 15

Prot. 14

Prot. 13

Prot. 12

Prot. 11

Prot. 10

Prot. 9

Prot. 8

Prot. 7

Prot. 6

...

Prot. 5

Prot. 4

Prot. 3

Prot. 2

Prot. 10

37

age hli_smoke waist_c whr_c qe_us_fibtg dur_smok dur_smok_c hli_pamets hli_score pack_years bmi_c alc_pattern weight_c alc_re_c height_c hli_alcohol pa_mets qe_us_chocdf smoke_intensity qe_us_alc alc_lifetime hli_dietscore alc_re mmed_score_sx qe_us_energy hli_bmic pa_index n_cigret_lifetime qe_us_procnt qe_us_fat rmed_score mrmed_score sex

event_time

Figure 14.

age hli_smoke waist_c whr_c qe_us_fibtg dur_smok dur_smok_c hli_pamets hli_score pack_years bmi_c alc_pattern weight_c alc_re_c height_c hli_alcohol pa_mets qe_us_chocdf smoke_intensity qe_us_alc alc_lifetime hli_dietscore alc_re mmed_score_sx qe_us_energy hli_bmic pa_index n_cigret_lifetime qe_us_procnt qe_us_fat rmed_score mrmed_score sex

Prot. 4 Prot. 3 Prot. 2 Prot. 10

event_time

Full graphs for the EPIC-CAN dataset

24. Real-world data labels List of all source variables considered in the proposed real-world datasets. Not all variables are being used in the main experiments, some being removed to avoid collinearity, reduce noise and/or due to irrelevance regarding the task at hand.

24.1 PISA-I 24.1.1 X. ST003D02T = Birth month 1-12 , ST004D01T = Gender 1-2 , ST001D01T = class level , STUBMI = Body Mass Index (BMI) , MISCED = Mother’s level of education (ISCED) , FISCED = Father’s level of education (ISCED) , HISCED = Highest level of education of parents (ISCED) , PAREDINT = Index highest parental education (international years of schooling scale) , BMMJ1 = Mother’s occupational status (ISEI) based on 4-digit human coded ISCO , BFMJ2 = Father’s occupational status (ISEI) based on 4-digit human coded ISCO , HISEI = Highest parental occupational status (ISEI) based on 4-digit human coded ISCO , ESCS = Index of economic, social and cultural status , FAMSUP = Family support (WLE) , FAMSUPSL = Family support for self-directed learning (WLE) , CURSUPP = Current parental/guardian Support (WLE) , SOCCON = Social Connections: Ease of Communication About Worries and Concerns (WLE) , SOCONPA = Social connection to Parents (WLE) , ICTRES = ICT Resources (WLE) , HOMEPOS = Home possessions (WLE) , ICTHOME = ICT availability outside of school (WLE) , ICTAVHOM = Availability and Usage of ICT at Home , ICTQUAL = Quality of access to ICT (WLE) , ICTEFFIC = Self-efficacy in digital competencies (WLE) , ICTWKDY = Frequency of ICT activity (weekday) (WLE) , ICTWKEND = Frequency of ICT activity (weekend) (WLE) , PARINVOL = Parental Involvement (WLE) , PQMIMP = Parent Attitudes Toward Mathematics (WLE) , PQMCAR = Mathematics Career (WLE) , PAREXPT = Parent’s expectations in child’s career , ATTIMMP = Parents’ Attitudes towards Immigrants (WLE) , EXERPRAC = Exercise or practice a sport before or after school , WORKPAY = Working for pay before or after school , WORKHOME = Working in household/take care of family members before or after school , PERSEVAGR = Perseverance (agreement) (WLE) , CURIOAGR = Curiosity (agreement) (WLE) , COOPAGR = Cooperation (agreement) (WLE) , EMPATAGR = Empathy (agreement) (WLE) , ASSERAGR = Assertiveness (agreement) (WLE) , STRESAGR = Stress resistance (agreement) (WLE) , EMOCOAGR = Emotional control (agreement) (WLE) , GROSAGR = Growth Mindset (WLE) , INFOSEEK = Information seeking about future careers (WLE) , PROBSELF = Problems with self-directed learning (WLE) , FEELLAH = Feelings about learning at home (WLE) , SDLEFF = Self-directed learning self-efficacy (WLE) , ACCESSFP = Access to money and financial products, sources of money (WLE) , FLFAMILY = Parental involvement in matters of FL (WLE) , FLCONFIN = Confidence about financial matters (WLE) , FLCONICT = Confidence about financial matters using digital devices (WLE) , ACCESSFA = Access to money and financial products, financial activities (WLE) , ATTCONFM = Attitudes towards and confidence about financial matters (WLE) , FRINFLFM = Friends’ influence on financial matters (WLE) , FCFMLRTY = Familiarity with concepts of finance , OPENART = Openness to Art and Reflection TBD (WLE) , IMAGINE = Imagination and Adventurousness TBD (WLE) , CREATHME = Creative Home Environment (WLE) , CREATACT = Participation in creative activities outside of school (WLE) , CREATOPN = Creativity and Openness to Intellect (WLE) , CREATOR = Openness to creativity: Other’s report (WLE) , CREATEFF = Creative self-efficacy (WLE) , CREATFAM = Creative peers and family environment (WLE) , CREATOOS = Creative Activities outside of school (WLE) , CREATOP = Creativity and Openness to Intellect TBD (WLE) , ICTDISTR = Distress from online content and cyberbullying , ANXMAT = Mathematics Anxiety (WLE) , BODYIMA = Body Image (WLE) , LIFESAT = Students’ Life Satisfaction across Domains (WLE) , PSYCHSYM = Psychosomatic Symptoms (WLE) , EXPWB = Experienced Well-being (Previous Day) (WLE)

38

Biometrics, 000 0000

24.1.2 M. REPEAT = Grade repetition , MISSSC = Missing school for more than 3 months , SKIPPING = Skipping classes or days of school , TARDYSD = Arriving late for school stricter definition , DURECEC = Duration in early childhood education and care , STUDYHMW = Studying for school or homework before or after school , EXPECEDU = Highest expected educational level , RELATST = Quality of student-teacher relationships (WLE) , BELONG = Sense of belonging (WLE) , BULLIED = Being bullied (WLE) , FEELSAFE = Feeling safe (WLE) , SCHRISK = School safety risks (WLE) , SCHSUST = School actions/activities to sustain learning (WLE) , LEARRES = Types of learning resources used while school was closed (WLE) , ICTSCH = ICT availability at school (WLE) , PQSCHOOL = School quality (WLE) , ICTAVSCH = Availability and Usage of ICT at School , PASCHPOL = School Policies for Parental Involvement (WLE) , MATHPREF = Prefers maths , MATHEASE = Ease at maths , MATHMOT = Motivation in maths , CREATSCH = Creative school and class environment (WLE) , CREATAS = Creative Activities at school (WLE) , ICTSUBJ = Subject-related ICT Use During Lessons (WLE) , ICTENQ = Use of ICT in enquiry-based learning activities (WLE) , ICTFEED = Support or feedback via ICT (WLE) , ICTOUT = Use of ICT for school activities outside of the classroom (WLE) , ICTREG = Views of regulated ICT use in school (WLE) , ICTINFO = Students’ practices regarding online information (WLE) , FLSCHOOL = Financial education in school lessons (WLE) , FLMULTSB = Financial education in school lessons, multiple subjects (WLE) , COGACRCO = Cognitive activation in mathematics: Foster reasoning Version B (WLE) , COGACMCO = Cognitive activation in mathematics: Encourage mathematical thinking Version B (WLE) , EXPOFA = Exposure to Formal and Applied Mathematics Tasks (WLE) , EXPO21ST = Exposure to Mathematical Reasoning and 21st century mathematics tasks (WLE) , MATHEFF = Mathematics self-efficacy: formal and applied mathematics - response options reversed in 2022 (WLE) , MATHEF21 = Mathematics self-efficacy: mathematical reasoning and 21st century skills (WLE) , FAMCON = Subjective familiarity with mathematics concepts (WLE) , MATHPERS = Effort and Persistence in Mathematics (WLE) , TEACHSUP = Mathematics Teacher Support (WLE) , DISCLIM = Disciplinary climate in mathematics (WLE) 24.1.3 Y.

MATH = Mathematics proficiency score

24.2 NHANES 24.2.1 X. RIAGENDR = Gender , RIDAGEYR = Age at screening , DMDEDUC2 = Education level [1-5] , AUQ054 = General condition of hearing (audiometry) [1-6] from [excellent-deaf] , ALQ130 = Avg number alcoholic drinks/day/past 12 mos [1-15] , ALQ280 = Number times 8+ drinks in 1 day/past 12 mos , DEQ034A = Stay in the shade when sunny outside [1-5] from [always-never] in the shadows , DEQ034C = Wear a long sleeved shirt [1-5] from [alwaysnever] , DEQ034D = Use sunscreen [1-5] from [always-never] , ECD070A = Weight at birth, pounds , HUQ010 = General health condition [1-5] from [good-poor] , HOD051 = Number of rooms in home , INDFMMPI = Family monthly poverty level index , KIQ481 = How many times wake up and urinate? , OCQ180 = Number of hours worked in the last week , OHQ845 = Rate the health of your teeth and gums [1-5] from [good-poor] , PAD680 = Minutes sedentary activity/day (sitting at school, work, bus, etc) , RXQ050 = Number of prescription medicines taken last 30 days [1-5] , SLD012 = Sleep hours - weekdays or workdays , SLD013 = Sleep hours - weekends , SMQ020 = Smoked at least 100 cigarettes in life , SMD460 = Number of people who live here smoke tobacco? [0-2] , WHD010 = Current self-reported height (inches) [40-83] , WHD020 = Current self-reported weight (pounds) [60-530] , WHD050 = Self-reported weight - 1 yr ago (pounds) [60-530] , FNQ450 = >17yo - Difficulty communicating [1-4] from [no difficulty-cannot at all] , FNQ460 = >17yo - Difficulty remembering things/concentrating [1-4] from [no difficulty-cannot at all] , FNQ530 = >17yo - How often very sad/depressed [1-5] from [daily-never] 24.2.2 M. LBXAGP = alpha-1-acid glycoprotein (g/L) , LBXTC = Total Cholesterol (mg/dL) , LBXFER = Ferritin(ng/mL) , LBDRFO = RBC folate (ng/mL) , LBXHSCRP = HS C-Reactive Protein (mg/L) - Linked to risk of CVD , LBXIN = Insulin (uU/mL) , LBXBPB = Blood lead (ug/dL) , LBXBCD = Blood cadmium (ug/L) , LBXTHG = Blood mercury, total (ug/L) , LBXBSE = Blood selenium (ug/L) , LBXBMN = Blood manganese (ug/L) , LBXSF1SI = 5Methyl-tetrahydrofolate (nmol/L) , LBXSF2SI = Folic acid (nmol/L) , LBXSF3SI = 5-Formyl-tetrahydrofolate (nmol/L) , LBXSF4SI = Tetrahydrofolate (nmol/L) , LBXSF5SI = 5,10-Methenyl-tetrahydrofolate (nmol/L) , LBXSF6SI = Mefox oxidation product (nmol/L) , LBX17H = 17alpha-hydroxyprogesterone (ng/dL) , LBXAND = Androstenedione (ng/dL) , LBXAMH = Anti-Mullerian hormone (ng/mL) , LBXDHE = DHEAS (µg/dL) , LBXEST = Estradiol (pg/mL) , LBXESO = Estrone (ng/dL) , LBXFSH = Follicle Stimulating Hormone (mIU/mL) , LBXLUH = Luteinizing Hormone (mIU/mL) , LBXPG4 = Progesterone (ng/dL) , LBXTST = Testosterone, total (ng/dL) , LBXSHBG = SHBG (nmol/L) , LBXTFR = Transferrin receptor (mg/L) , LBXVIDMS = 25OHD2+25OHD3 (nmol/L) , LBXHA = Hepatitis A antibody [1,2] for [positive,negative] , LBXHBS = Hepatitis B surface antibody [1,2] for [positive,negative] , LBXGLU = Fasting Blood/Plasma Glucose (mg/dL) 24.2.3 Y.

LBXGH = Glycohemoglobin (%) - Glucose in blood (%)

39 24.3 EPIC-CAN Acronyms: whr: waist to height ratio, rmed: Mediterranean diet, alc: alcohol, _c: category, pa: physical activity, aggr: aggregated, qe_us: USDA, hli: Healthy Lifestyle Index 24.3.1 X. age , sex , whr_c , height_c , weight_c , waist_c , bmi_c , l_school , mrmed_score , mmed_score_sx , rmed_score , mrmed_score , pa_mets , pa_index , alc_re , alc_re_c , alc_lifetime , alc_pattern , dur_smok , dur_smok_c , n_cigret_aggr , n_cigret_lifetime , smoke_intensity , pack_years , qe_us_alc , qe_us_chocdf , qe_us_energy , qe_us_fat , qe_us_fibtg , qe_us_procnt , hli_dietscore , hli_pamets , hli_smoke , hli_alcohol , hli_bmic , hli_score , systol , diastol 24.3.2 M.

Protein identifiers

24.3.3 Y.

Age at cancer event

24.4 CRIME 24.4.1 X. population population for community , householdsize mean people per household , racepctblack percentage of population that is african american , racePctWhite percentage of population that is caucasian , racePctAsian percentage of population that is of asian heritage , racePctHisp percentage of population that is of hispanic heritage , agePct12t21 percentage of population that is 12-21 in age , agePct12t29 percentage of population that is 12-29 in age , agePct16t24 percentage of population that is 16-24 in age , agePct65up percentage of population that is 65 and over in age , numbUrban number of people living in areas classified as urban , pctUrban percentage of people living in areas classified as urban , PctForeignBorn percent of people foreign born , PctBornSameState percent of people born in the same state as currently living , PctSameHouse85 percent of people living in the same house as in 1985 (5 years before) , PctSameCity85 percent of people living in the same city as in 1985 (5 years before) , PctSameState85 percent of people living in the same state as in 1985 (5 years before) , MalePctDivorce percentage of males who are divorced , MalePctNevMarr percentage of males who have never married , FemalePctDiv percentage of females who are divorced , TotalPctDiv percentage of population who are divorced , PersPerFam mean number of people per family , PctFam2Par percentage of families (with kids) that are headed by two parents , PctKids2Par percentage of kids in family housing with two parents , PctYoungKids2Par percent of kids 4 and under in two parent households , PctTeen2Par percent of kids age 12-17 in two parent households , PctWorkMomYoungKids percentage of moms of kids 6 and under in labor force , PctWorkMom percentage of moms of kids under 18 in labor force , NumIlleg number of kids born to never married , PctIlleg percentage of kids born to never married , NumImmig total number of people known to be foreign born , PctImmigRecent percentage of immigrants who immigrated within last 3 years , PctImmigRec5 percentage of immigrants who immigated within last 5 years , PctImmigRec8 percentage of immigrants who immigated within last 8 years , PctImmigRec10 percentage of immigrants who immigated within last 10 years , PctRecentImmig percent of population who have immigrated within the last 3 years , PctRecImmig5 percent of population who have immigrated within the last 5 years , PctRecImmig8 percent of population who have immigrated within the last 8 years , PctRecImmig10 percent of population who have immigrated within the last 10 years , PctSpeakEnglOnly percent of people who speak only English , PctNotSpeakEnglWell percent of people who do not speak English well , PctLess9thGrade percentage of people 25 and over with less than a 9th grade education , PctNotHSGrad percentage of people 25 and over that are not high school graduates , PctBSorMore percentage of people 25 and over with a bachelor’s degree or higher education , medIncome median household income , pctWWage percentage of households with wage or salary income in 1989 , pctWFarmSelf percentage of households with farm or self employment income in 1989 , pctWInvInc percentage of households with investment / rent income in 1989 , pctWSocSec percentage of households with social security income in 1989 , pctWPubAsst percentage of households with public assistance income in 1989 , pctWRetire percentage of households with retirement income in 1989 , medFamInc median family income (differs from household income for non-family households) , perCapInc per capita income , whitePerCap per capita income for caucasians , blackPerCap per capita income for african americans , indianPerCap per capita income for native americans , AsianPerCap per capita income for people with asian heritage , OtherPerCap per capita income for people with ’other’ heritage , HispPerCap per capita income for people with hispanic heritage , NumUnderPov number of people under the poverty level , PctPopUnderPov percentage of people under the poverty level , PctUnemployed percentage of people 16 and over, in the labor force, and unemployed , PctEmploy percentage of people 16 and over who are employed , PctEmplManu percentage of people 16 and over who are employed in manufacturing , PctEmplProfServ percentage of people 16 and over who are employed in professional services , PctOccupManu percentage of people 16 and over who are employed in manufacturing , PctOccupMgmtProf percentage of people 16 and over who are employed in management or professional occupations 24.4.2 M. LemasSwornFT number of sworn full time police officers , LemasSwFTPerPop sworn full time police officers per 100K population , LemasSwFTFieldOps number of sworn full time police officers in field operations (on the street as opposed to administrative etc) , LemasSwFTFieldPerPop sworn full time police officers in field operations (on the street

40

Biometrics, 000 0000

as opposed to administrative etc) per 100K population , LemasTotalReq total requests for police , LemasTotReqPerPop total requests for police per 100K population , PolicReqPerOffic total requests for police per police officer , PolicPerPop police officers per 100K population , RacialMatchCommPol a measure of the racial match between the community and the police force. High values indicate proportions in community and police force are similar , PctPolicWhite percent of police that are caucasian , PctPolicBlack percent of police that are african american , PctPolicHisp percent of police that are hispanic , PctPolicAsian percent of police that are asian , PctPolicMinor percent of police that are minority of any kind , OfficAssgnDrugUnits number of officers assigned to special drug units , NumKindsDrugsSeiz number of different kinds of drugs seized , PolicAveOTWorked police average overtime worked , PolicCars number of police cars , PolicOperBudg police operating budget , LemasPctPolicOnPatr percent of sworn full time police officers on patrol , LemasGangUnitDeploy gang unit deployed (numeric - decimal - but really ordinal - 0 means NO, 1 means YES, 0.5 means Part Time) , LemasPctOfficDrugUn percent of officers assigned to drug units , PolicBudgPerPop police operating budget per population , PctLargHouseFam percent of family households that are large (6 or more) , PctLargHouseOccup percent of all occupied households that are large (6 or more people) , PersPerOccupHous mean persons per household , PersPerOwnOccHous mean persons per owner occupied household , PersPerRentOccHous mean persons per rental household , PctPersOwnOccup percent of people in owner occupied households , PctPersDenseHous percent of persons in dense housing (more than 1 person per room) , PctHousLess3BR percent of housing units with less than 3 bedrooms , MedNumBR median number of bedrooms , HousVacant number of vacant households , PctHousOccup percent of housing occupied , PctHousOwnOcc percent of households owner occupied , PctVacantBoarded percent of vacant housing that is boarded up , PctVacMore6Mos percent of vacant housing that has been vacant more than 6 months , MedYrHousBuilt median year housing units built , PctHousNoPhone percent of occupied housing units without phone (in 1990, this was rare!) , PctWOFullPlumb percent of housing without complete plumbing facilities , OwnOccLowQuart owner occupied housing - lower quartile value , OwnOccMedVal owner occupied housing - median value , OwnOccHiQuart owner occupied housing - upper quartile value , RentLowQ rental housing - lower quartile rent , RentMedian rental housing - median rent (Census variable H32B from file STF1A) , RentHighQ rental housing - upper quartile rent , MedRent median gross rent (Census variable H43A from file STF3A - includes utilities) , MedRentPctHousInc median gross rent as a percentage of household income , MedOwnCostPctInc median owners cost as a percentage of household income - for owners with a mortgage , MedOwnCostPctIncNoMtg median owners cost as a percentage of household income - for owners without a mortgage , NumInShelters number of people in homeless shelters , NumStreet number of homeless people counted in the street , LandArea land area in square miles , PopDens population density in persons per square mile , PctUsePubTrans percent of people using public transit for commuting 24.4.3 Y.

ViolentCrimesPerPop total number of violent crimes per 100K population GOAL attribute (to be predicted)

Related documents

Record · ID 1672104 · SHA-256 afc1485188168834
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive