Manuscript Offprint
arXiv:2608.30040A Deep Latent Variable Framework for Jointly Modeling Missingness, Measurement Error, and Heterogeneity
Abstract
Missing data, measurement error, and population heterogeneity are pervasive challenges in analyzing data arising from modern observational studies and machine learning applications. Although these problems frequently coexist and interact, they are often treated separately in existing works. We propose a unified probabilistic framework that jointly addresses these issues utilizing deep latent variable representation. The proposed method integrates a novel hierarchical tree-routed variational autoencoder with pattern-aware latent representations and calibration-based denoising. The framework accommodates missing data mechanisms, including MCAR, MAR, and MNAR, while simultaneously learning subgroup-specific and globally shared latent structure. The introduced reconvergent routing mechanism enables selective parameters to be shared across related subpopulations, which offers flexibility as well as improved statistical efficiency. Simulation studies demonstrate substantial improvements over existing deep generative imputation approaches under complex heterogeneous missingness and measurement-error settings. The proposed framework provides a principled approach for learning from noisy and incomplete data in modern healthcare and other high-dimensional applications.
1 Introduction
Missing data and measurement error are among the most common sources of imperfect data in observational research and applied machine learning [Schafer and Graham, 2002, Yi, 2017, Keogh et al., 2020]. Missingness arises when the value of a variable is simply unavailable for some observations; measurement error occurs when the recorded value departs from the underlying truth due to noise, misclassification, reporting bias, imperfect annotations, among others. Although each issue has been studied extensively in its own right, they frequently co-occur in practice and interact in ways that neither problem alone can capture the truth [Yi et al., 2011, 2012, Schomaker et al., 2015]. A model that simply imputes missing entries without accounting for the induced variability may
Correspondence to: Yasin Khadem Charvadeh khademch@ualberta.ca reconstruct values that are systematically biased, while a measurement-error correction that ignores incomplete records may itself rely on a distorted sample. Despite the practical importance of this interaction, methodological work that treats both problems within a single inferential framework remains limited [van Smeden et al., 2021]. This gap is even more pronounced in high-dimensional and nonlinear settings.
Modern healthcare data make this gap especially consequential. Electronic health records routinely combine laboratory results, physiological signals, administrative codes, longitudinal monitoring data, and patient-reported outcomes in which data are typically heterogeneous, incomplete, and error-contaminated. Critical-care databases such as MIMIC-IV [Johnson et al., 2023] contain missingness and implausible values (Gupta et al. [2022], Johnson et al. [2024]); population-health resources such as UK Biobank [Sudlow et al., 2015] include self-reported variables alongside objective measurements, with documented quality-control concerns [Ritchie et al., 2023, Radosavljević et al., 2025]. In such settings, missingness is often informative: whether a test is ordered, repeated, or recorded may depend on the patient's health conditions, care pathways, or disease trajectories. Meanwhile, the values that are recorded may themselves be corrupted by instrument noise, transcription errors, measurement limitations, or other factors. Addressing only one of these issues is generally insufficient for reliable inference.
The classical framework for incomplete data, introduced by Rubin [1976] and synthesized by Little and Rubin [2019], distinguishes among missing completely at random (MCAR), missing at random (MAR), and missing not at random (MNAR) mechanisms. This taxonomy is foundational because the validity of standard likelihood-based and imputation-based procedures depends critically on the assumed mechanism. Due to the identifiability issues, standard approaches are often justified under MCAR and MAR, but not under MNAR [Little and Rubin, 2019, Little, 2024]. In healthcare, MNAR is often realistic: laboratory tests may be ordered because a clinician suspects abnormality, and some patients may drop out of follow-up due to some underlying unobserved factors. Consequently, treating the missingness pattern as part of the generative model, rather than as a nuisance to be corrected post hoc, is increasingly recognized as essential [Ipsen et al., 2021, Ghalebikesabi et al., 2021].
Deep generative models in machine learning research have emerged as powerful tools for learning from incomplete data in this context. The MIWAE framework [Mattei and Frellsen, 2019] extends importance-weighted autoencoders to handle missing observations under MAR, while not-MIWAE incorporates an explicit missingness model to accommodate MNAR mechanisms [Ipsen et al., 2021]. More recently, Ghalebikesabi et al. [2021] introduced PSMVAE, a pattern-set mixture approach in which a discrete latent variable indexes missingness patterns and conditions both the encoder and decoder. Adversarial approaches such as GAIN provide an alternative paradigm using generative adversarial networks [Yoon et al., 2018].
Despite the recent progress in deep generative modeling for incomplete data, existing approaches remain limited in three respects. First, they treat observed covariates as reliable once recorded, whereas real-world biomedical and administrative data often contain substantial measurement error and misclassification. Consequently, a model may accurately reconstruct missing entries while still learning a systematically distorted latent representation. Second, existing approaches generally assume a single homogeneous generative process for the entire population. Clinical cohorts, however, often comprise latent subgroups with distinct data-generating mechanisms: different disease types, care settings, or demographic strata may exhibit different covariance structures, different relationships among features, and different missingness patterns. Third, methods that address MNAR data often rely on explicit enumeration of missingness patterns, which presents a great challenge when the data dimension is large.
On the other hand, the measurement-error literature has been active, with many methods developed to correct for bias due to noisy or misclassified variables, including regression calibration, simulation-extrapolation, likelihood-based, estimating equation, and Bayesian approaches [Gustafson, 2003, Yi, 2017, Keogh et al., 2020, Yi et al., 2021, Khadem Charvadeh and Yi, 2025]. Recent work has demonstrated that jointly addressing missingness and measurement error can reduce bias relative to approaches that treat only one source of imperfection [Yi, 2008, Yi et al., 2012, Schomaker et al., 2015, van Smeden et al., 2021]. However, these integrated methods have primarily been developed for relatively structured, low-dimensional settings and typically rely on parametric model forms, known error mechanisms, or ignorable missingness assumptions. Extending these ideas to high-dimensional, nonlinear, and heterogeneous data remains an open challenge.
A separate but related gap concerns population heterogeneity. When a dataset comprises subgroups with partially shared and partially distinct data-generating mechanisms, standard approaches face a fundamental tension. Training a single model pools all observations but cannot specialize where mechanisms differ; training separate models per subgroup provides specialization but sacrifices sample efficiency for shared structure. Available deep generative imputation methods are not designed to discover which aspects of the generative mechanism are shared across subgroups and which are subgroup-specific: a distinction that is critical when sample sizes are moderate and redundant learning is costly.
To address these limitations, we propose HTree-VAE, a unified deep latent variable framework that simultaneously: (i) imputes missing values, (ii) denoises corrupted measurements, (iii) models heterogeneous missingness mechanisms, (iv) discovers latent subgroup structure, and (v) enables selective parameter sharing across related subpopulations. The proposed framework combines a pattern-aware variational latent representation, a hierarchical tree-routed encoder, a reconvergent branch-sharing architecture, and a calibration-based denoising mechanism. Unlike standard mixture-based variational autoencoders (VAEs), our framework does not require explicit enumeration of missingness patterns or pattern sets. At the center of HTree-VAE is the hierarchical tree-routed encoder, in which a sequence of learned decision points progressively transforms the input representation, with routing decisions made on task-optimized representations at each depth. A root gating network summarizes each subject's missingness pattern from the observed data and the missingness mask, providing a compact missingness context to every routing decision via skip connections. The generative model incorporates a pattern-dependent latent prior, a universal decoder that reconstructs true underlying values from the latent code, and an auxiliary missingness model that predicts the observation pattern from the bottlenecked latent representation as well as the compact missingness context. Measurement error is handled by training the decoder against clean reference values available for a small validation subset, so that the model learns to map noisy observed inputs to denoised reconstructions without requiring the error mechanism to be known parametrically. We evaluate the proposed method on simulation studies for data with heterogeneous subpopulations, mixed missingness mechanisms (MCAR, MAR, and MNAR), and error-prone baseline measurements, comparing against MIWAE, not-MIWAE, and PSMVAE.
The remainder of the paper is organized as follows. Section 2 formulates the problem and introduces the notation. Section 3 presents the proposed HTree-VAE method, including its underlying assumptions and architectural properties. Section 4 describes the estimation and training procedures. Sections 5 and 6 describe the simulation setup and present the corresponding results, respectively. Section 7 concludes with a discussion.
In many applications, measurement of is subject to missingness or mismeasurement. We encode the missingness pattern by a binary mask , with if feature is observed and otherwise, and write accordingly, with and denoting the observed and missing components, respectively. The missingness mechanism may be heterogeneous across subjects, arising completely at random and independent of both observed and unobserved data (MCAR), depending on observed covariates (MAR), or on the unobserved values themselves (MNAR).
To facilitate measurement error in the observed feature , let denote the index set of features that are observed only through a noisy surrogate. That is, when , a corrupted measurement rather than the true value is observed. The corruption may affect both continuous features with and categorical features with ; for instance, a continuous biomarker may be measured with additive noise, yet a categorical diagnosis code may be mis-recorded with label error.
Suppose the available data include the main study data and validation data, indexed by and , respectively, where for , is available; and for , is available. Here , , and the are independent over and identically distributed as for each .
Our objective is to develop an approach that can (i) impute the missing components for , (ii) denoise the corrupted features by learning from the validation subset , (iii) discover heterogeneous subgroup structure in the data, and (iv) leverage shared mechanisms across subgroups for sample-efficient estimation while specializing where mechanisms diverge.
To reflect the nature of the available data, regardless of being precisely observed, noisy, or imputed by a certain procedure, for each subject , we define an input vector , with its th element given by
where fill denotes a filled or imputed value for missing entries by a default procedure.
Let denote the mask defined for subject . In contrast, we define another mask, , where for ,
and is the indicator function.
These two masks serve distinct purposes: determines what enters the input in (1), whereas determines where is known and hence where a procedure's output can be assessed against it. Combining (1) and (2) poses imputation and denoising as a single problem, which enables the recovery of from based on the assessment of whether .
3 Modeling and Representation
Throughout, and respectively denote a marginal and conditional probability density or mass functions corresponding to the random variables indicated by the arguments.
3.1 Generative Model
To model the data and its mask , we consider a low-dimensional summary of the subject's missingness context, which is produced by an amortized inference network that maps the observed input and its mask to a subject-specific soft representation,
to be described in detail in Section 3.2.1. It is noted that is a deterministic function of and not a random variable. The introduction of with is to place each subject within a soft partition of the missingness patterns to allow model components to be shared across subjects whose patterns are related.
Conditionally on , we introduce a continuous latent variable , which may, for example, represent the underlying health profiles, leading to
where represents the model for the corresponding probability density or mass function, with denoting the associated parameter , , and . Here, is the dimension of the latent space, taking a value smaller than . It controls the capacity of the compressed representation of and chosen by hyperparameter search.
To ensure the learned latent space is grounded to reflect clinical reality, we impose two structural independence assumptions to refine 4. First, assume , which mandates that the biology of the subject, as captured by the features , follows a universal law dictated by the underlying latent state . This assumption highlights the expressiveness of the latent variable .
The second assumption requires , or , which treats the latent state as carrying the information in that is relevant to whether a value is recorded. The missingness mechanism may still depend on these unobserved components of through their influence on , and so remains nonignorable; the assumption characterizes that dependence of the missingness probability is at the level of the latent state rather than that of the raw features, and the missingness mechanism can therefore be modeled through the latent representation and the inference-network representation , rather than directly through the complete data . A comparable latent-sufficiency assumption is made by Ghalebikesabi et al. [2021] for PSMVAE, where the missingness mechanism conditions on a generative latent variable, whereas in our formulation is a deterministic soft representation produced by the inference network.
Consequently, (4) becomes
The observation model accommodates mixed data types. The decoder maps latent codes to the parameters of feature-specific distributions,
(6) where denotes the density function of the Gaussian distribution with mean and variance , and represents a categorical probability mass function with parameter . Here is the decoded mean for continuous feature and its noise variance, which may be shared among all the features or feature-specific; is the one-hot encoding of the -th categorical variable, as defined in Section 2; and are the corresponding pre-softmax logits.
In practice, the decoder is a multi-layer perceptron returning a single vector of dimension , from which the continuous means and categorical logits are extracted by their respective index sets, with a softmax applied over the columns within each categorical group.
Next, we specify to be
where represents the probability mass function with being the probability for ; is a multi-layer perceptron with parameters , with denoting its -th output coordinate; and is the logistic function.
3.2 Inference Network: Hierarchical Tree-Routed Encoder
The inference network defines a variational posterior over the latent variable , conditional on the input and the mask , denoted by and parameterized by , through a hierarchical tree-routed encoder that consists of three components: (1) a root gating network that summarizes the missingness patterns, (2) a hierarchical tree of decision points and branch layers that progressively transforms the input, and (3) a VAE encoder head, with parameters , that maps the final hidden state to the mean and variance of the variational posterior.
The use of the hierarchical tree-routed encoder is motivated to address a key limitation of standard encoder architectures. In conventional VAEs, a single encoder processes all observations without accommodating heterogeneity in subgroups. When latent subgroups exhibit different covariance structures or missingness patterns, a single encoder is forced into a compromise representation that may not fit any subgroup well. While it is possible to fit a separate encoder for each subgroup, this fitting can use only a fraction of the sample which leads to unstable estimates due to greatly reduced data sizes.
Since pooling across all subgroups may obscure heterogeneous structures, whereas analyzing them separately fails to exploit their commonalities, we thereby propose a middle ground: a flexible architecture in which the degree of sharing is determined by the data. Specifically, the associated parameters are shared among subgroups when they exhibit similarities and are allowed to differ when substantial heterogeneity is present. The hierarchical tree-routed encoder is designed for this purpose.
3.2.1 Root Gating Network
We further propose to use the root gating network to provide a compact summary of the subject's missingness pattern. This network basically maps the input and the missingness mask to a vector of (say) weights. Given and , let be their concatenation. Let be a multi-layer perceptron with parameters , whose output is unconstrained. Applying the softmax transformation to that output gives , which is also written as , where the with are non-negative and sum to one.
Conditioning the gate on and is motivated by the pattern-mixture framework [Little, 1993]: different missingness patterns may be associated with different distributions of the data, and the recorded values may provide information for distinguishing these patterns beyond what is contained in the binary missingness pattern alone.
The vector is passed to every subsequent component of the encoder through skip connections, and to the latent prior and missingness model in Section 3.1. This differs from PSMVAE [Ghalebikesabi et al., 2021], which enumerates discrete pattern categories and performs a separate encoder–decoder pass for each pattern category at a computational cost linear in the number of categories. Our continuous parameterization requires only a single forward pass while retaining the ability to represent nuanced pattern information.
3.2.2 Hierarchical Tree of Decision Points
The core of the encoder is a sequence of decision points, each consisting of a sub-gating network and a set of branch layers. Let denote the initial representation, where each missing feature is filled by a default value. For each decision point , we proceed with the following operations.
Step 1: Augmentation with missingness context. The current initial or a hidden state is augmented with the root gating output via concatenation:
which is a -dimensional vector, where is the dimensionality of the initial or a hidden state at depth . This step includes the missingness pattern context at every depth to prevent information loss. Importantly, this step provides the sub-gating network (see Step 2 below) with a stable signal for routing decisions, and it also provides the branch layers (see Step 3 below) with pattern-aware context for feature transformation.
Step 2: Sub-gating (routing). A sub-gating network computes routing logits over branches:
which is a -dimensional vector. Here, is a decision-dependent hyperparameter to reflect the number of branches at decision point . During training, discrete branch assignments are sampled using the Gumbel-Softmax estimator [Jang et al., 2017, Maddison et al., 2017] with temperature :
yielding a -dimensional one-hot vector in the forward pass while permitting gradient flow through the soft probabilities in the backward pass via the straight-through estimator. At test time, deterministic routing is performed via arg max.
Step 3: Branch transformation. Each decision point maintains branch layers, denoted by , where each branch is a single-layer neural network with a nonlinear activation function such as ReLU, ELU, or SiLU:
Finally, for , we process subject by one branch, determined by the routing assignment in Step 2:
Each branch layer receives the same augmented input that was provided to the sub-gate, ensuring that the transformation is also conditioned on the missingness context .
A critical observation is that the sub-gating network at decision point operates on the augmented representation in Step 1. The branch layers are trained under the task-oriented representation: they capture structures that are relevant to reconstructing the observed features. Consequently, routing decisions at deeper levels are grounded in progressively refined, task-relevant representations rather than raw features alone. This contrasts with flat Mixture-of-Experts architectures [Shazeer et al., 2017], where routing is determined from raw input in a single stage, and with Adaptive Neural Trees (ANT) [Tanno et al., 2019], where transformations occur before routing and there is no reconvergence mechanism, a point which we further discuss in Section 3.2.3.
We note that a branch does not have to be a single-layer neural network. More complex architectures, such as multi-layer perceptron, can be adopted for each branch layer to accommodate different subgroup characteristics.
Step 4: The complete path. After decision points, the final hidden state for subject is
where the notation emphasizes that is injected at every depth via skip connections, and represents function composition. The path defines a unique trajectory through the tree, and the total number of possible paths is .
Step 5: VAE Encoder Head. The final hidden state is then mapped to parameters of a Gaussian variational posterior:
with the mean and diagonal covariance matrix , which are produced by two linear maps,
with and . The subscript collects the weights and biases of these two maps together with the parameters involved in Steps 2 and 3; the root gating network parameters are estimated jointly with but denoted separately. Once is estimated, the posterior parameters for any subject are obtained by evaluating and at that subject's . The diagonal covariance matrix imply that the coordinates of are conditionally independent given . Finally, a latent sample is obtained by the reparameterization trick [Kingma and Welling, 2013]:
with , where denotes the elementwise product and is the elementwise square root of .
3.2.3 Architectural Comparison
We conclude by highlighting several aspects that distinguish the proposed architecture from existing approaches.
Sequential routing on evolving representations. Unlike flat Mixture-of-Experts models, where a single router makes all allocation decisions from raw input features, our sub-gating network at depth routes based on representations that were produced by the reconstruction objective at depth . Differences between subgroups that are invisible in raw feature space may become apparent after task-relevant transformations, enabling finer-grained routing at deeper levels.
Reconvergence across paths and parameter sharing. A key structural property of the proposed architecture is that the branches at decision point are shared across all subjects arriving at that depth, regardless of which branches they traversed at earlier depths. Two subjects routed to different branches at depth can therefore reconverge to the same branch at depth , which are then processed by identical parameters at that depth. Our architecture is structurally distinct from ANT [Tanno et al., 2019], which maintains a full tree topology. Although ANT employs soft routing during training to make all paths receive nonzero gradient, the transformation modules at each position in the tree are distinct: the left-child transformer in the left subtree is a different module from the left-child transformer in the right subtree. Consequently, two subjects that diverge at depth are processed by different parameter sets at depth , even if their soft routing weights assign them to the same direction, and subjects separated at any depth can no longer share downstream computation. In our architecture, by contrast, subjects that converge to the same branch at depth share exactly the same parameters, which enables more efficient learning. It also allows the network to discover what aspects of the data-generating mechanism are shared across subgroups and what are subgroup-specific, rather than fixing that division in advance through the tree topology. The difference is also reflected in parameter scaling: an ANT with depth and binary splits requires transformation modules, whereas our architecture requires only branch layers.
Missingness context via skip connections. The root gating output is skip-connected to both the sub-gate and the branch layers at every decision point. This ensures that routing decisions never lose sight of the missingness context even as representations undergo deep transformations, and that branch layers can condition their transformations on the inferred missingness mechanism, producing representations that are explicitly pattern-aware.
3.2.4 Decoder
The decoder is a multi-layer perceptron that maps latent codes to reconstructions, where denotes its weights and biases, estimated jointly with the other model parameters. For continuous features, the output is interpreted directly as the mean of the Gaussian observation model in (6). For categorical features (e.g., one-hot encoded indicators), the corresponding output dimensions are passed through a softmax activation to produce a valid probability distribution over categories, and the reconstruction loss for these features is the categorical cross-entropy.
4 Estimation
4.1 Evidence Lower Bound
Estimation of the model parameters in Sections 3.1 or 3.2 cannot be readily undertaken by using the likelihood method: obtaining requires integrating over the latent variable , which has no closed form for the nonlinear decoder in Section 3.2.4. We therefore adopt the variational strategy by first approximating the distribution constructed in Section 3.2, and then maximizing a tractable lower bound on the log-likelihood rather than the log-likelihood itself.
Specifically, starting from the generative model (5), the log-likelihood of the observed data and the missingness pattern, conditional on , is
Then introducing the variational posterior and applying Jensen's inequality yields a lower bound of (9):
which is called the evidence lower bound (ELBO), where the three terms of ELBO are pertinent to reconstruction, missingness prediction, and KL regularization, respectively. Here, the expectation associated with the reconstruction and missingness prediction terms are taken with respect to due to the dependence on the latent variable . The last term of ELBO is the KL divergence between the variational posterior and the pattern-dependent prior . Below, we elaborate on the three terms of ELBO.
Reconstruction term. Using the target mask (2) against the clean target , we decompose the reconstruction term across feature types as
whose empirical counterpart is given by , with the additive constant omitted, where we let
denote the reconstruction loss contributed from subject . In (11), denotes the decoder output for feature evaluated at : for a continuous feature , it is the decoded mean in (6), ; for the -th category of categorical group , it is the predicted probability , where indexes the columns of group . The indicator records whether categorical group is observed for subject ; a single indicator suffices per group, since the one-hot columns within a group are either all observed or all missing. For , the mask ensures that the reconstruction loss compares against the clean reference only for subjects in the validation subset, while for , supervision occurs wherever the feature is observed. This enables the model to learn to denoise corrupted features from the limited supervision in , while leveraging the observed data for imputation of non-noisy features.
Missingness prediction term. For the missingness prediction term, we express it as a binary cross-entropy under the expectation:
where with being the logistic function as in (7), and is a multi-layer perceptron indexed by parameter . The dependence on ensures that the missingness prediction is grounded in the latent representation of the data-generating process, while provides the global missingness context.
In practice, we approximate the expectation with a single reparameterized sample from in Step 5 in Section 3.2.2. Further, the expectation is approximated by its empirical version , where
KL divergence term. The pattern-dependent prior is parameterized as
where is the prior mean and is the vector of prior variances, both are functions of . They are produced by a single linear map ,
so that collects the learnable parameters of the prior. The first coordinates of give the mean and the remaining components represent the log-variances, where applying a linear map to express , rather than directly to , avoids imposing the positivity constraint on .
Since both and are diagonal Gaussians, with and being the posterior mean and variance of Section 3.2 and with , denoting their -th coordinates, the KL divergence has a closed form:
and we use to be its short form.
4.2 Training Objective and Procedure
As suggested in Section 4.1, directly maximizing the log-likelihood is infeasible. To get around this, one may instead minimize a penalized version of the negative ELBO in (10), or more practically, the negative of an empirical version of ELBO, with the associated expectations replaced by their empirical versions. Specifically, we consider the penalized objective function:
(13) where , , and are nonnegative tuning parameters. To be specific, is a KL weighting factor [Higgins et al., 2017], controls the weight of the missingness prediction. The final term acts on the routing decisions of Step 2 in Section 3.2.2. At decision point , the sub-gate produces for subject a vector of logits . Applying the softmax gives that subject's soft routing weights . Averaging these over the subjects gives the averaged routing distribution , whose -th coordinate is the average weight placed on branch . Its entropy is . Subtracting in (13) prevents degenerate route utilization, where a single branch dominates and the remaining branches receive insufficient gradient signal. This failure mode is well documented for Mixture-of-Experts architectures and for routing mechanisms more generally [Shazeer et al., 2017].
Finally, to estimate the model parameters, we minimize the penalized objective function in (13) via stochastic gradient-based optimization, with gradients propagated through both the reparameterization estimator of Section 3.2 and the Gumbel-Softmax routing mechanism. For each mini-batch:
-
missing entries in are filled using the default value, giving the input in (1);
-
the root gating network in Section 3.2.1 computes the missingness context in (3);
-
the hierarchical encoder in Section 3.2.2 routes each subject through the tree and applies the corresponding transformations, yielding ;
-
the latent variable is determined by the reparameterization trick in (8);
-
the decoder in Section 3.2.4 reconstructs the clean targets as , evaluated against on the coordinates where ;
-
the missingness model in (7) predicts the mask through ;
-
the penalized objective function (13) is evaluated, and the parameters are updated by a gradient descent step.
To stabilize optimization, the Gumbel-Softmax temperature is annealed geometrically over training. Write for the temperature at epoch : , where is the initial temperature, is the decay rate, and represents a floor below which the temperature is not reduced.
At test time, a subject with input and missingness mask is passed through the root gating network and the hierarchical tree encoder to obtain the encoder output . As in training, the latent code is drawn from the variational posterior using the reparameterization (8), and decoded to produce . The completed data matrix is formed by retaining every recorded value that is neither missing nor error-contaminated, replacing missing entries by their imputed values, and replacing the error-contaminated surrogates by their denoised reconstructions:
HTree-VAE imputations are therefore stochastic, and its results reported in Section 6 use a single draw per subject.
5 Simulation Study
5.1 Data Generating Process
We construct a synthetic longitudinal dataset to reflect the complexity of real-world clinical registries, where heterogeneous subpopulations exhibit distinct data-generating mechanisms, measurement error contaminates key baseline variables, and different missingness mechanisms.
The simulated cohort comprises subjects partitioned into four latent subgroups of sizes 500, 3,500, 500, and 3,500, indexed by , respectively, each governed by its own set of generative parameters. Subgroup membership is never revealed to any of the models during training. As described in Section 5.2, the subgroups also determine which missingness mechanism a subject is exposed to, so that measurement-error severity and missingness mechanism vary jointly across the cohort.
For each subject with latent subgroup assignment , we generate:
-
A true baseline severity score , with , where we specify subgroup-specific means and standard deviations , , , and .
-
A noisy surrogate , with for , and being independent of . Subgroups 1 and 3 are contaminated with substantial measurement error (), whereas subgroups 2 and 4 are observed far more precisely ( and 0.10, respectively). All noise means are zero, so the surrogate is unbiased but differentially reliable across the cohort.
-
Age Lognormal(), salary TruncNormal(5, 1, ), and a three-level geographic indicator drawn uniformly from , encoded as one-hot vectors. These variables are all independently generated.
The analyst observes , age, salary, and the geographic indicator; the clean score is withheld except for the validation subset described in Section 5.2.
A two-dimensional latent process drives the longitudinal biomarker trajectories over measurement occasions. The initial state is generated as
where collects the true baseline covariates with 30003 taken as the reference geographic level, and is a subgroup-specific loading matrix. Subsequent occasions follow an autoregressive structure:
with diagonal transition matrices
Temporal persistence therefore differs across the cohort: the first latent dimension carries substantial memory in subgroups 1 and 2, while subgroup 4 is close to serially independent. The loading matrices are
At each occasion , biomarkers are generated as
where the errors are mutually independent across subjects, biomarkers, and occasions, and independent of , and , contains the true covariates with all three geographic dummies and a shared coefficient vector . The biomarker-specific factor loadings are , and . The longitudinal outcomes therefore depend on the true severity through two routes, the latent factors and a direct pathway, while the practitioner has access only to the contaminated . Any method that treats as if it were will distort both pathways.
The resulting dataset consists of observable columns per subject: , age, salary, three one-hot geographic indicators, and biomarker measurements. We additionally retain as a 32nd, held-out column that is revealed only for the validation subset.
We repeat the preceding data generation process independently times. All analysis results, reported in Section 6, are summarized over 100 independent datasets, and the dispersion we report reflects sampling variability in the data-generating process rather than training stochasticity alone.
5.2 Missingness Mechanism and Data Splitting
We introduce missingness into the data through three distinct mechanisms, each operating on a separate segment of the population, to produce a realistic mixture of ignorable and nonignorable missing data. The segment boundaries coincide with the latent subgroups of Section 5.1, so each subgroup is characterized by a particular combination of measurement-error severity and missingness mechanism. When a subject “misses” a visit at time t, all K biomarkers at that occasion are set to missing simultaneously. Baseline covariates are never missing.
Subgroup 1: MCAR. For the first 500 subjects, each of the T visits is independently dropped with fixed probability , irrespective of any subject characteristic or outcome value.
Subgroup 2: MAR. For subjects 501–4000, the per-visit missingness probability is a logistic function of observed baseline age:
with and , where
are computed within this subgroup rather than across the full cohort. Older subjects miss visits more often, but the mechanism depends only on a fully observed covariate and is therefore ignorable. The probability is applied independently across the five occasions.
Subgroup 3: MNAR. For subjects 4001–4500, the probability of missing visit depends on the true (unobserved) biomarker values at that occasion. We average the biomarkers at time , standardize this average using the mean and standard deviation of the pooled biomarker measurements at time across the full cohort, and apply
with and . Subjects with higher biomarker values at a given visit are more likely to have that visit missing, making the mechanism genuinely nonignorable: the reason for missingness is the unobserved outcome itself.
Subgroup 4: Fully observed. The final 3,500 subjects have no missingness, providing a benchmark subpopulation in which only measurement error is present. This subgroup allows the correction of to be evaluated in isolation from the imputation task.
Averaged over the biomarker panel, this design leaves roughly 11% of the 200,000 biomarker cells missing, with the exact rate varying modestly across simulations. In a representative simulation, 30.2% of cells were missing in subgroup 1, 17.5% in subgroup 2, 29.0% in subgroup 3, and none in subgroup 4, yielding an overall rate of 11.4%. Rates were stable across the five occasions within each subgroup, varying by no more than about five percentage points.
Using the 80:20 ratio, we randomly split the cohort into a training portion of 6,400 subjects and a held-out test set of 1,600 subjects. Two further subsets are drawn from the training portion, which are distinguished as follows. The first is a conventional tuning set: an 80/20 split of the training portion yields 5,120 subjects used for parameter estimation and 1,280 subjects used for hyperparameter selection and early stopping. The second is a validation set , drawn as an independent 20% sample of the same training portion, which comprises 1,280 subjects. This is the only part of the data for which both the erroneous surrogate and the accurate measurement are simultaneously available, which supplies the supervision that identifies the measurement-error correction. Because is sampled independently of the fitting/tuning partition, the two subsets are not nested: intersects both the fitting set and the tuning set. This mirrors the practical situation in which a validation substudy is fielded on a convenience sample of the registry rather than on a prespecified fold. For every training subject not in , is set to be missing; is always observed. In the test set, is masked from the models but retained for evaluation.
Continuous features are standardized to have zero mean and unit variance using statistics computed on the 5,120-subject fitting set. Because is masked before standardization, its centering and scaling constants are estimated from the validation subjects falling within the fitting set alone (approximately 1,000 subjects). One-hot encoded categorical features are left on their original scale. Missing entries are then filled with the constant zero; excludes these entries from the reconstruction loss, so the choice of fill values has no bearing on the results.
5.3 Comparative Methods and Evaluation Metrics
We compare the proposed HTree-VAE method against three baseline approaches, each adapted to our setting where the model receives as input and is evaluated against for subjects in the internal validation subset.
-
MIWAE: A deep generative model based on the importance-weighted autoencoder framework for imputing incomplete data under the MAR assumption.
-
not-MIWAE: An extension of MIWAE that relaxes the ignorability assumption by modeling the missingness mechanism explicitly:
where , and are feature-specific parameters. The model is nonetheless restrictive in two respects: it is self-masking, in that the probability of a feature being missing depends on that feature's own value and on no other, and it treats the missingness indicators as conditionally independent given , so mechanisms that remove blocks of features jointly are not represented.
- PSMVAE: A pattern-set mixture VAE that introduces a discrete categorical variable indexing missingness pattern classes. We use the psmvae_b variant, where the decoder jointly outputs reconstructed observed data, reconstructed missing data, and missingness predictions from a shared architecture conditioned on .
All methods receive the same preprocessed training data and are tuned and evaluated on the same tuning and test sets. For methods that do not differentiate from , we construct different input and target representations as described in Section 2: the model input is rather than , while the reconstruction target takes as input wherever it is available.
Imputation quality is assessed on the test set by computing the mean squared error (MSE), or equivalently, root mean squared error (RMSE), and mean absolute error (MAE) over cells that are missing in the test data, given by
where denotes the set of missing target cells, is the true value from the complete dataset prior to the introduction of missingness, and is the model's imputation point estimate for cell .
6 Analysis Results
For each simulation, all four methods are evaluated on the same set of held-out cells: the baseline severity values of the test subjects, together with the biomarker measurements that are missing for these subjects.
Table 1 reports the results obtained by pooling over all evaluated cells (i.e., combining the baseline severity values and the missing biomarker measurements in the test set). In terms of MSE, HTree-VAE attains the lowest median, followed in order by not-MIWAE, PSMVAE, and MIWAE; relative to not-MIWAE, its median is lower by about 31.5%. Regarding MAE, the performance ordering changes slightly, with PSMVAE becoming the worst, and HTree-VAE attaining an MAE 8.1% lower than that from not-MIWAE.
The methods also differ in how stable they are across the simulations. The standard deviation of MSE is the smallest for HTree-VAE and largest by a wide margin for PSMVAE. For all four methods the mean exceeds the median, indicating right-skewed error distributions, and the gap is widest for PSMVAE. Figure 1 shows the source: on one simulation PSMVAE returns an MSE of 104.937 while the same dataset yields an MSE of 2.987 under HTree-VAE.
Table 1: Imputation and measurement-error correction performance. For each method and each error criterion, a single value is computed per simulation; the table reports the mean (SD) across the simulations on the first line and the median [Q1, Q3] on the second.
| HTree-VAE | MIWAE | not-MIWAE | PSMVAE | |
|---|---|---|---|---|
| Overalla | ||||
| MSE | 3.052 (1.204)2.752 [2.458, 3.181] | 6.848 (2.714)6.525 [4.585, 8.625] | 4.644 (1.986)4.020 [3.203, 5.743] | 8.378 (11.616)4.893 [3.606, 8.959] |
| RMSE | 1.725 (0.277)1.659 [1.568, 1.784] | 2.565 (0.521)2.554 [2.141, 2.937] | 2.111 (0.438)2.005 [1.790, 2.396] | 2.631 (1.213)2.212 [1.899, 2.993] |
| MAE | 1.168 (0.115)1.140 [1.100, 1.197] | 1.328 (0.145)1.314 [1.225, 1.432] | 1.256 (0.113)1.240 [1.166, 1.317] | 1.749 (0.767)1.484 [1.306, 1.945] |
| Measurement errorb | ||||
| MSE | 0.172 (0.066)0.156 [0.116, 0.217] | 0.402 (0.063)0.388 [0.367, 0.412] | 0.419 (0.055)0.405 [0.386, 0.426] | 0.295 (0.141)0.255 [0.185, 0.390] |
| RMSE | 0.407 (0.078)0.396 [0.341, 0.466] | 0.632 (0.046)0.623 [0.606, 0.642] | 0.646 (0.040)0.637 [0.622, 0.653] | 0.529 (0.125)0.505 [0.430, 0.624] |
| MAE | 0.315 (0.063)0.300 [0.264, 0.366] | 0.494 (0.032)0.486 [0.475, 0.503] | 0.506 (0.028)0.499 [0.488, 0.511] | 0.410 (0.094)0.397 [0.336, 0.485] |
| Imputationc | ||||
| MSE | 4.055 (1.624)3.669 [3.272, 4.245] | 9.100 (3.667)8.657 [6.028, 11.554] | 6.119 (2.673)5.267 [4.169, 7.651] | 11.166 (15.367)6.524 [4.746, 12.004] |
| RMSE | 1.988 (0.322)1.915 [1.809, 2.060] | 2.955 (0.610)2.942 [2.455, 3.399] | 2.420 (0.514)2.295 [2.042, 2.766] | 3.035 (1.404)2.554 [2.179, 3.465] |
| MAE | 1.465 (0.155)1.425 [1.374, 1.498] | 1.619 (0.191)1.597 [1.479, 1.752] | 1.517 (0.149)1.492 [1.400, 1.604] | 2.214 (1.016)1.842 [1.607, 2.427] |
<sup>a</sup> Errors computed over both tasks jointly, that is, over the baseline severity values of the test subjects together with their missing biomarker measurements.
<sup>b</sup> Errors computed over the baseline severity values only, measuring how well is recovered from its error-contaminated surrogate .
<sup>c</sup> Errors computed over the missing biomarker measurements only.

Figure 1: Per-simulation MSE pooled over all evaluated cells, with grey lines joining the four methods fitted to the same simulated data. Horizontal bars mark medians. The paired structure makes the simulation-level variability of each method directly visible.
The pooled figures combine two distinct tasks, and separating them is informative. For mis-measurement correction, evaluated on the severity column alone, HTree-VAE attains the lowest median MSE again, followed by PSMVAE, MIWAE, and not-MIWAE.
For imputation of the missing biomarker measurements, HTree-VAE again attains the lowest median of the MSE values, 30.3% below that of not-MIWAE, followed by PSMVAE and MIWAE. Comparing the two panels shows that the ranking of PSMVAE and not-MIWAE reverses between the two tasks: PSMVAE recovers the error-contaminated severity better than not-MIWAE but imputes the biomarker panel worse. No single baseline is therefore preferable across both tasks, whereas HTree-VAE leads on each.
Because each latent subgroup pairs a specific measurement-error variance with a specific missingness mechanism (Sections 5.1 and 5.2), the subgroup-wise results in Table 2 identify which combinations each method handles well.
On the severity column, HTree-VAE has the lowest median MSE in all four subgroups (Figure 2): 0.227, 0.129, 0.324, and 0.136 in subgroups 1–4, against next-best values of 0.605, 0.250, 0.474, and 0.169. The margin is widest in subgroup 1, where the surrogate is most heavily contaminated ( ) and the missingness mechanism is ignorable, and narrowest in subgroup 4, where the contamination is mild ( ) and no missingness is present. Subgroup 3 shares subgroup 1's noise level but pairs it with a nonignorable missingness mechanism, and the margin there is roughly half as large.
The imputation results are more nuanced, and HTree-VAE is not uniformly the best (Figure 3). Two factors govern the ordering within each subgroup: whether the missingness mechanism makes the observed pattern informative about the missing values, and whether the subgroup contains enough data to support a model's capacity.
Table 2: Subgroup-wise performance, summarised over simulations. Each cell reports the mean (SD) on the first line and the median [Q1, Q3] on the second.
| HTree-VAE | MIWAE | not-MIWAE | PSMVAE | ||||
|---|---|---|---|---|---|---|---|
| Overalla— MSE | |||||||
| Subgroup 1 | 3.410[3.099, 3.904] | 3.661 (0.961)2.733 | 3.172 (1.243)[2.395, 3.519] | 2.962 | 3.384 (1.265)[2.669, 3.519] | 6.596 (4.503)5.279 | 3.795, 7.555 |
| Subgroup 2 | 2.418[2.212, 2.890] | 2.723 (1.016)7.324 | 8.174 (3.990)[5.690, 10.060] | 4.482 | 5.201 (2.659)[3.165, 6.566] | 7.894 (12.645)3.979 | 2.835, 7.997 |
| Subgroup 3 | 5.115[4.255, 6.789] | 6.263 (4.134)7.432 | 10.041 (8.794)[2.762, 13.975] | 4.848 | 6.980 (5.696)[2.859, 8.672] | 19.309 (25.424)12.837 | 9.090, 20.911 |
| Subgroup 4d | 0.136[0.091, 0.230] | 0.154 (0.071)0.244 | 0.247 (0.026)[0.231, 0.261] | 0.259 | 0.263 (0.025)[0.249, 0.271] | 0.179 (0.067)0.169 | 0.128, 0.235 |
| Overall — MAE | |||||||
| Subgroup 1 | 1.366[1.310, 1.461] | 1.394 (0.129)1.267 | 1.308 (0.167)[1.188, 1.377] | 1.299 | 1.347 (0.155)[1.244, 1.415] | 1.847 (0.518)1.713 | 1.480, 2.061 |
| Subgroup 2 | 1.132[1.094, 1.195] | 1.157 (0.107)1.387 | 1.431 (0.188)[1.321, 1.529] | 1.299 | 1.328 (0.142)[1.220, 1.428] | 1.758 (0.872)1.456 | 1.241, 2.009 |
| Subgroup 3 | 1.614[1.513, 1.812] | 1.698 (0.337)1.566 | 1.654 (0.441)[1.275, 1.848] | 1.474 | 1.541 (0.307)[1.286, 1.698] | 2.790 (1.280)2.468 | 2.163, 3.151 |
| Subgroup 4d | 0.291[0.240, 0.377] | 0.303 (0.074)0.392 | 0.395 (0.019)[0.383, 0.406] | 0.404 | 0.407 (0.018)[0.398, 0.414] | 0.332 (0.062)0.327 | 0.285, 0.384 |
| Measurement errorb— MSE | |||||||
| Subgroup 1 | 0.227[0.167, 0.333] | 0.287 (0.179)0.605 | 0.725 (0.419)[0.477, 0.758] | 0.605 | 0.710 (0.363)[0.477, 0.832] | 0.822 (0.538)0.679 | 0.411, 1.155 |
| Subgroup 2 | 0.129[0.099, 0.176] | 0.147 (0.065)0.459 | 0.463 (0.034)[0.441, 0.481] | 0.487 | 0.490 (0.038)[0.466, 0.511] | 0.250 | 0.181, 0.365 |
| Subgroup 3 | 0.324[0.261, 0.436] | 0.355 (0.130)0.589 | 0.721 (0.375)[0.481, 0.784] | 0.608 | 0.726 (0.368)[0.541, 0.726] | 0.474 | 0.304, 1.003 |
| Subgroup 4d | 0.136[0.091, 0.230] | 0.154 (0.071)0.244 | 0.247 (0.026)[0.231, 0.261] | 0.259 | 0.263 (0.025)[0.249, 0.271] | 0.169 | 0.128, 0.235 |
| Measurement error — MAE | |||||||
| Subgroup 1 | 0.375[0.331, 0.448] | 0.408 (0.119)0.643 | 0.684 (0.199)[0.555, 0.735] | 0.635 | 0.676 (0.178)[0.554, 0.745] | 0.675 | 0.529, 0.909 |
| Subgroup 2 | 0.278[0.246, 0.328] | 0.293 (0.064)0.539 | 0.541 (0.021)[0.527, 0.554] | 0.556 | 0.556 (0.021)[0.543, 0.570] | 0.394 | 0.407 (0.084)[0.338, 0.482] |
| Subgroup 3 | 0.456[0.403, 0.515] | 0.466 (0.087)0.610 | 0.667 (0.178)[0.548, 0.725] | 0.627 | 0.674 (0.160)[0.582, 0.690] | 0.562 | 0.663 (0.303)[0.446, 0.836] |
| Subgroup 4d | 0.291[0.240, 0.377] | 0.303 (0.074)0.392 | 0.395 (0.019)[0.383, 0.406] | 0.404 | 0.407 (0.018)[0.398, 0.414] | 0.327 | 0.332 (0.062)[0.285, 0.384] |
| Imputationc— MSE | |||||||
| Subgroup 1 | 3.834[3.504, 4.381] | 4.107 (1.084)3.036 | 3.495 (1.384)[2.630, 3.904] | 3.261 | 3.735 (1.401)[2.929, 3.859] | 5.833 | 4.232, 8.361 |
| Subgroup 2 | 2.938[2.692, 3.525] | 3.309 (1.254)8.922 | 9.927 (4.909)[6.861, 12.267] | 5.382 | 6.271 (3.256)[3.786, 7.933] | 4.848 | 9.596 (15.290)[3.417, 9.814] |
| Subgroup 3 | 5.734[4.788, 7.648] | 7.052 (4.673)8.247 | 11.284 (9.927)[3.073, 15.951] | 5.397 | 7.814 (6.420)[3.156, 9.773] | 14.373 | 21.816 (28.785)[10.025, 23.668] |
| Imputation — MAE | |||||||
| Subgroup 1 | 1.489[1.433, 1.587] | 1.525 (0.143)1.336 | 1.390 (0.173)[1.261, 1.480] | 1.389 | 1.436 (0.160)[1.330, 1.492] | 1.822 | 1.593, 2.192 |
| Subgroup 2 | 1.320[1.274, 1.397] | 1.354 (0.133)1.573 | 1.633 (0.230)[1.498, 1.756] | 1.473 | 1.503 (0.174)[1.373, 1.621] | 1.698 | 2.063 (1.057)[1.430, 2.361] |
| Subgroup 3 | 1.765[1.646, 2.000] | 1.864 (0.379)1.693 | 1.787 (0.485)[1.368, 2.009] | 1.596 | 1.657 (0.338)[1.376, 1.845] | 2.718 | 3.077 (1.438)[2.338, 3.466] |
<sup>a</sup> All evaluated cells for the subgroup.
<sup>b</sup> Recovery of from its contaminated surrogate .
<sup>c</sup> Imputation of missing biomarker measurements. Subgroup 4 is absent, having no missing cells by construction.
<sup>d</sup> Subgroup 4 is subject to measurement error only, so its Overall and Measurement error entries coincide.

Figure 2: Subgroup-wise MSE for measurement-error correction, evaluated on the baseline severity column only. HTree-VAE attains the lowest median in every subgroup.
In subgroup 1 these factors align against the more heavily parameterized methods. Missingness there is completely at random, so the pattern is statistically independent of the outcome and conditioning on it yields no reduction in bias, while the subgroup contributes only 500 subjects. The ordering follows model complexity exactly in reverse: MIWAE, which fits a single parameter set to the entire cohort and therefore never sees its effective sample size fall, attains the lowest median MSE (3.036) followed by not-MIWAE (3.261). PSMVAE performs worst (5.833), potentially because its latent categorical mixture partitions subjects according to their missingness patterns into pattern-sets. Under MCAR, these patterns carry no systematic information about the data-generating process, so with only around 320 subjects in the fitting set, estimating this additional mixture structure may unnecessarily divide the available information across latent pattern sets and increase estimation uncertainty. On the other hand, HTree-VAE which draws inspiration from the same pattern-set mixture framework achieves a much lower median MSE (3.834) which can be attributed to its rigorous parameter sharing across patterns.
In subgroup 2 with 3,500 subjects, the capacity is affordable, and HTree-VAE dominates with a median MSE of 2.938 against 5.382 for not-MIWAE and 8.922 for MIWAE. PSMVAE records a lower median (4.848) but a mean of 9.596 with a standard deviation of 15.290, indicating a right-skewed distribution in which a minority of simulations produce errors far above the median.
Subgroup 3 is the only subgroup in which the mechanism is nonignorable, and therefore the only one in which modeling it can be expected to pay. The two methods that model the mechanism explicitly perform best: HTree-VAE attains the lowest mean MSE (7.052 versus 7.814 for not-MIWAE), while not-MIWAE attains the lower median (5.397 versus 5.734); HTree-VAE is the more stable of the two, with a standard deviation of 4.673 against 6.420. PSMVAE, despite being nominally well suited to nonignorable missingness, performs worst by a wide margin (mean 21.816, median 14.373).
Finally, Figure 4 summarizes the rankings of the four methods within each simulation. Pooled across all evaluated cells, HTree-VAE ranks first in 69% of simulations and within the top two in about 90%. On the severity column it is never worse than second in any simulation, ranking first in about three-quarters of them. MIWAE and PSMVAE each finish last in roughly 40–50% of simulations on the pooled metric, though for different reasons: MIWAE is consistently mediocre, while PSMVAE performs competitively in many simulations but shows very poor performance in

Figure 3: Subgroup-wise MSE for missing-data imputation, evaluated on the biomarker columns only. Subgroup 4 is absent by construction, having no missing cells. The three subgroups differ in mechanism as well as size: subgroup 1 is MCAR with 500 subjects, subgroup 2 MAR with 3,500, and subgroup 3 MNAR with 500.
a few. For applied purposes this distinction matters, since a method whose failures are rare but severe is harder to deploy without diagnostic safeguards than one that is uniformly mid-ranked.

Figure 4: Within-simulation rankings by MSE, with rank 1 denoting the best of the four methods in that simulation, shown for each evaluation slice. Bars give the percentage of the simulations in which each method attained each rank. HTree-VAE is never worse than second on the severity column, and ranks first in 69% of simulations on the pooled metric.
7 Discussion
We propose a unified deep latent variable framework for jointly modeling missingness, measurement error, and latent population heterogeneity. The proposed architecture integrates hierarchical routing, selective parameter sharing, pattern-aware latent priors, and calibration-based denoising within a single probabilistic framework. Simulation studies demonstrate substantial improvement of the proposed framework over existing, competing methods under heterogeneous missingness and noisy-measurement settings.
Our development here demonstrates how classical statistical methodology and modern deep generative modeling can be integrated to effectively address complex data-quality problems. Rather than treating missingness, measurement error, and heterogeneity as separate nuisances, the model views them as interacting components of a unified latent data-generating process.
The calibration-based denoising strategy provides an attractive practical compromise. Obtaining perfectly clean measurements for all subjects is often infeasible, whereas collecting a smaller validation subset is frequently realistic. The proposed framework leverages this limited supervision to improve reconstruction quality throughout the entire cohort.
It is worth noting that the HTree-VAE architectural advantages do not come for free, as shown by subgroup 1 in Section 5.2, where only MCAR involves, and conditioning on the observed pattern yields no reduction in bias.
Some research can be further conducted. For example, one may extend the time-invariant missingness mechanisms here to settings where missingness mechanism may change with time. In some applications, early missingness may reflect logistical barriers and later missingness may relate more to disease progression. The HTree-VAE framework here is evaluated using the standard ELBO, whereas MIWAE variants and PSMVAE rely on an importance-weighted objective. This weighted objective yields a tighter bound and uses an importance-weighted average over multiple variational posterior draws during evaluation. Adopting this estimator for HTree-VAE could tighten its bound and establish a uniform evaluation protocol across all four methods. Further testing can be undertaken to determine whether this change affects the relative performance reported in Section 6.
A further question is how a learned correction behaves when the corrected covariate is used as an exposure for data analysis. Finally, the mismeasurement correction relies on a validation subset in which the surrogate and the accurate measurements are both observed, and collecting one that is representative of the wider cohort can be difficult at any single institution. Because pooling individual-level records across institutions is often restricted, a federated formulation, in which each site contributes to a shared correction without releasing its own records, could be worth exploring.
References
Sahra Ghalebikesabi, Rob Cornish, Chris Holmes, and Luke Kelly. Deep generative missingness pattern-set mixture models. In Arindam Banerjee and Kenji Fukumizu, editors, Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, volume 130, pages 3727–3735. PMLR, 2021.
Mehak Gupta, Brennan Gallamoza, Nicolas Cutrona, Pranjal Dhakal, Raphael Poulain, and Rahmatollah Beheshti. An extensive data processing pipeline for MIMIC-IV. In Antonio Parziale, Monica Agrawal, Shalmali Joshi, Irene Y. Chen, Shengpu Tang, Luis Oala, and Adarsh Subbaswamy, editors, Proceedings of the 2nd Machine Learning for Health symposium, volume 193 of Proceedings of Machine Learning Research, pages 311–325. PMLR, 2022.
Paul Gustafson. Measurement Error and Misclassification in Statistics and Epidemiology: Impacts and Bayesian Adjustments. Chapman and Hall/CRC, 2003.
Irina Higgins, Loic Matthey, Arka Pal, Christopher P Burgess, Xavier Glorot, Matthew M Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations (ICLR), 2017.
Niels Bruun Ipsen, Pierre-Alexandre Mattei, and Jes Frellsen. not-MIWAE: Deep generative modelling with missing not at random data. In International Conference on Learning Representations (ICLR), 2021.
Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with Gumbel-Softmax. In International Conference on Learning Representations (ICLR), 2017.
Alistair Johnson, Lucas Bulgarelli, Tom Pollard, Brian Gow, Benjamin Moody, Steven Horng, Leo Anthony Celi, and Roger Mark. MIMIC-IV. PhysioNet, October 2024. doi: 10.13026/kpb9-mt58. Version 3.1.
Alistair EW Johnson, Lucas Bulgarelli, Lu Shen, Alvin Gayles, Ayad Shammout, Steven Horng, Tom J Pollard, Sicheng Hao, Benjamin Moody, Brian Gow, Li-wei H. Lehman, Leo A. Celi, and Roger G. Mark. MIMIC-IV, a freely accessible electronic health record dataset. Scientific Data, 10(1):1, 2023.
Ruth H Keogh, Pamela A Shaw, Paul Gustafson, Raymond J Carroll, Veronika Deffner, Kevin W Dodd, Helmut Küchenhoff, Janet A Tooze, Michael P Wallace, Victor Kipnis, et al. STRATOS guidance document on measurement error and misclassification of variables in observational epidemiology: Part 1—Basic theory and simple methods of adjustment. Statistics in Medicine, 39 (16):2197–2231, 2020.
Yasin Khadem Charvadeh and Grace Y Yi. Q-learning with compound outcome and mixed misclassification and measurement error in covariates. Journal of Data Science, 2025. doi: 10.6339/25-JDS1200.
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
Roderick J Little. Missing data analysis. Annual Review of Clinical Psychology, 20:149–173, 2024.
Roderick JA Little. Pattern-mixture models for multivariate incomplete data. Journal of the American Statistical Association, 88(421):125–134, 1993.
Roderick JA Little and Donald B Rubin. Statistical Analysis with Missing Data. John Wiley & Sons, 2019.
Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning Representations (ICLR), 2017.
Pierre-Alexandre Mattei and Jes Frellsen. MIWAE: Deep generative modelling and imputation of incomplete data sets. In Proceedings of the 36th International Conference on Machine Learning, volume 97, pages 4413–4423. PMLR, 2019.
Lav Radosavljević, Stephen M Smith, and Thomas E Nichols. A generative model for evaluating missing data methods in large epidemiological cohorts. BMC Medical Research Methodology, 25(1):34, 2025.
Scott C Ritchie, Praveen Surendran, Savita Karthikeyan, Samuel A Lambert, Thomas Bolton, Lisa Pennells, John Danesh, Emanuele Di Angelantonio, Adam S Butterworth, and Michael Inouye. Quality control and removal of technical variation of NMR metabolic biomarker data in 120,000 UK Biobank participants. Scientific Data, 10(1):64, 2023.
Donald B Rubin. Inference and missing data. Biometrika, 63(3):581–592, 1976.
Joseph L Schafer and John W Graham. Missing data: our view of the state of the art. Psychological Methods, 7(2):147, 2002.
Michael Schomaker, Sara Hogger, Leigh F Johnson, Christopher J Hoffmann, Till Bärnighausen, and Christian Heumann. Simultaneous treatment of missing data and measurement error in HIV research using multiple overimputation. Epidemiology, 26(5):628–636, 2015.
Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations (ICLR), 2017.
Cathie Sudlow, John Gallacher, Naomi Allen, Valerie Beral, Paul Burton, John Danesh, Paul Downey, Paul Elliott, Jane Green, Martin Landray, et al. UK biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age. PLoS Medicine, 12(3):e1001779, 2015.
Ryutaro Tanno, Kai Arulkumaran, Daniel Alexander, Antonio Criminisi, and Aditya Nori. Adaptive neural trees. In International Conference on Machine Learning, volume 97, pages 6166–6175. PMLR, 2019.
Maarten van Smeden, Bas BL Penning de Vries, Linda Nab, and Rolf H H Groenwold. Approaches to addressing missing values, measurement error, and confounding in epidemiologic studies. Journal of Clinical Epidemiology, 131:89–100, 2021.
Grace Y Yi. A simulation-based marginal method for longitudinal data with dropout and mismeasured covariates. Biostatistics, 9(3):501–512, 2008.
Grace Y Yi. Statistical Analysis with Measurement Error or Misclassification: Strategy, Method and Application. Springer, 2017.
Grace Y Yi, Wei Liu, and Lang Wu. Simultaneous inference and bias analysis for longitudinal data with covariate measurement error and missing responses. Biometrics, 67(1):67–75, 2011.
Grace Y Yi, Yanyuan Ma, and Raymond J Carroll. A functional generalized method of moments approach for longitudinal studies with missing responses and covariate measurement error. Biometrika, 99(1):151–165, 2012.
Grace Y Yi, Aurore Delaigle, and Paul Gustafson. Handbook of Measurement Error Models. CRC Press, 2021.
Jinsung Yoon, James Jordon, and Mihaela Schaar. GAIN: Missing data imputation using generative adversarial nets. In Proceedings of the 35th International Conference on Machine Learning, volume 80, pages 5689–5698. PMLR, 2018.