[Paper Review] Autoencoders and Probabilistic Inference with Missing Data: An Exact Solution for The Factor Analysis Case
This paper presents an exact analytical solution for posterior inference of latent variables in the factor analysis model when data is missing, showing that the encoder network must be retrained for each unique missingness pattern. The method enables non-iterative, single-feedforward inference, outperforming approximations like mean imputation, FCA, SCA, and denoising autoencoders, especially when missingness patterns are known at training time.
Latent variable models can be used to probabilistically "fill-in" missing data entries. The variational autoencoder architecture (Kingma and Welling, 2014; Rezende et al., 2014) includes a "recognition" or "encoder" network that infers the latent variables given the data variables. However, it is not clear how to handle missing data variables in this network. The factor analysis (FA) model is a basic autoencoder, using linear encoder and decoder networks. We show how to calculate exactly the latent posterior distribution for the factor analysis (FA) model in the presence of missing data, and note that this solution implies that a different encoder network is required for each pattern of missingness. We also discuss various approximations to the exact solution. Experiments compare the effectiveness of various approaches to filling in the missing data.
Motivation & Objective
- To address the challenge of performing exact posterior inference over latent variables in probabilistic autoencoders when input data contains missing values.
- To derive a closed-form solution for the posterior distribution in the factor analysis model under missing data, leveraging linear Gaussian assumptions.
- To demonstrate that the optimal encoder network depends non-trivially on the specific pattern of missingness, requiring a separate model per pattern.
- To compare the exact solution against practical approximations such as mean imputation, FCA, SCA, and denoising autoencoders in terms of imputation accuracy.
- To evaluate the robustness and limitations of these methods under varying missingness patterns, particularly when training and test-time patterns differ.
Proposed method
- Derives the exact posterior distribution $p(\mathbf{z}|\mathbf{x}_v, \mathbf{m})$ for factor analysis using Bayes' theorem, assuming Gaussian priors and likelihoods.
- Expresses the posterior mean and covariance in closed form via equations (1) and (2), with $\Sigma_{\mathbf{z}|\mathbf{x}_v} = (I_K + W_v^T \Psi_v^{-1} W_v)^{-1}$ and $\bm{\mu}_{\mathbf{z}|\mathbf{x}_v} = \Sigma_{\mathbf{z}|\mathbf{x}_v} W_v^T \Psi_v^{-1} (\mathbf{x}_v - \bm{\mu}_v)$.
- Reformulates the posterior using a diagonal missingness matrix $M$, so $\Sigma_{\mathbf{z}|\mathbf{x}_v} = (I_K + W^T M \Psi^{-1} M W)^{-1}$, making the dependency on missingness explicit.
- Proposes three approximations: FCA (factor analysis with complete data), SCA (structured conditional autoencoder), and a denoising autoencoder trained on synthetic missing data patterns.
- Trains a denoising autoencoder to predict latent variables from corrupted inputs, with the corruption pattern matching the expected missingness at test time.
- Uses the exact solution as a strong baseline for evaluating all approximations on the Frey faces dataset with both random and structured missingness.
Experimental results
Research questions
- RQ1Can exact posterior inference for latent variables be achieved in the factor analysis model with missing data using a closed-form solution?
- RQ2How does the optimal encoder network depend on the specific pattern of missing data in the input?
- RQ3How do approximate inference methods like mean imputation, FCA, SCA, and denoising autoencoders compare to the exact solution in terms of imputation accuracy?
- RQ4What is the impact of mismatched missingness patterns between training and test time on the performance of denoising autoencoders?
- RQ5Can insights from exact inference in linear models inform the design of inference mechanisms for nonlinear autoencoders with missing data?
Key findings
- The exact inference method, based on closed-form posterior computation, achieves the lowest mean squared imputation error on both random and structured missingness patterns in the Frey faces dataset.
- The denoising autoencoder performs poorly when trained on random missingness but tested on structured missingness (e.g., missing quarters), indicating sensitivity to pattern mismatch.
- For the quarters missingness pattern, the denoising autoencoder slightly outperforms exact inference, likely due to distributional mismatch between the true data and the PPCA model used in exact inference.
- FCA and SCA provide incremental improvements over mean imputation, with SCA outperforming FCA, suggesting that structured modeling of missingness improves imputation.
- The posterior uncertainty decreases with increasing visible data, and regions like the mouth remain uncertain longer, reflecting the model’s sensitivity to local structure.
- The training-to-test error gap in the denoising autoencoder suggests it leverages access to full data posterior during training, which is not available at test time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.