VAEs in the Presence of Missing Data

Mark Collier, Alfredo Nazábal, Christopher K. I. Williams

Abstract

Variational Autoencoders (VAEs) are powerful generative models, but their performance degrades significantly when applied to datasets with missing values. Common heuristics, such as zero-filling, often fail to distinguish between true data and missingness, especially in "Missing Not At Random" (MNAR) scenarios. This paper introduces a novel framework that treats missingness as an explicit corruption process. By providing both the encoder and the decoder with a missingness mask—the Encoder-Decoder Indicator (ED Ind.) approach—the model significantly improves reconstruction accuracy and log-likelihood.

Introduction

In real-world applications, missing data is the rule rather than the exception. Whether due to sensor failure, skipped survey questions, or selective medical testing, data sparsity poses a challenge for standard VAEs. These models typically assume complete input vectors, leading to three primary issues: the "zero trap" (confusing missing values with zeros), an inability to handle MNAR data (where missingness is informative), and poor scalability for high-dimensional inputs.

Modeling Missingness as a Corruption Process

The core contribution of this work is the conceptualization of missing data as the output of a latent variable model of a corruption process. Instead of ignoring missing entries, the authors model the observed data $\tilde{x}$ as the result of the true data $x$ being filtered through a binary mask $m$.

Graphical representations of missingness models: (a) missingness as latents, (b) MCAR corruption process, and (c) MNAR corruption process.

As shown in the graphical models above, the corruption process can be tailored to different missingness assumptions. In the Missing Completely At Random (MCAR) case (Figure b), the mask $m$ is independent of the latent features. In the more complex MNAR case (Figure c), the mask depends on the latent variable $z$, allowing the model to exploit the relationship between the data's identity and its pattern of missingness.

The ED Ind. Approach

The authors propose the Encoder-Decoder Indicator (ED Ind.) method, a Conditional VAE framework where the mask $m$ is treated as an auxiliary input.

  • The Encoder $q(z | \tilde{x}, m)$ utilizes the mask to differentiate between observed zeros and missing values, focusing its inference on the available evidence.
  • The Decoder $p(x_o | z, m)$ also receives the mask. This "map" allows the decoder to disambiguate corrupted inputs. For instance, if a digit '7' is missing pixels that make it look like a '9', the mask informs the decoder that those specific pixels were deleted, enabling a more accurate reconstruction of the original '7'.

Experimental Results

The model was evaluated on the MNIST and SVHN datasets using artificial pixel-blocking to simulate MCAR and MNAR conditions. The ED Ind. approach was compared against a "No Indicators" (No Ind.) baseline and an "Encoder-Only" (EO Ind.) version.

Quantitative Performance

The ED Ind. model consistently outperformed baselines in marginal log-likelihood across both datasets. In MNIST experiments, it also achieved the lowest Mean Squared Error (MSE) for imputation, demonstrating its superior ability to recover the true underlying data distribution.

Qualitative Analysis

Visual comparisons highlight the limitations of heuristic approaches. While the "No Ind." baseline often produces blurry or generic reconstructions when faced with heavy corruption, the ED Ind. model generates sharp, identity-preserving images.

Qualitative results from the ED Ind. model on MNIST, showing sharp and accurate reconstructions.

Conclusion

By treating missingness as a principled part of the generative process and providing the decoder with an explicit mask, this research provides a robust solution for training VAEs on incomplete data. The ED Ind. method is computationally efficient, scales well to high-dimensional data, and naturally handles informative missingness (MNAR). Future work may explore the application of these techniques to more complex data structures, such as tabular medical records or Transformer-based architectures.

Summary updated

BibTeX
@inproceedings{collier2020vaes,
  author = {Mark Collier and Alfredo Nazábal and Christopher K. I. Williams},
  title = {{VAEs in the Presence of Missing Data}},
  booktitle = {Artemiss @ ICML},
  year = {2020},
  url = {https://openreview.net/forum?id=PnZT5EWoB7},
}
Figure