not-MIWAE: Deep Generative Modelling with Missing not at Random Data

Niels Bruun Ipsen, Pierre-Alexandre Mattei, Jes Frellsen

Introduction

Standard deep generative models often fail when data is "Missing Not At Random" (MNAR)—a scenario where the reason a value is missing depends on the value itself. This paper introduces not-MIWAE, a framework that explicitly models the missingness mechanism using a neural network. By doing so, it allows for more accurate data imputation and unbiased parameter estimation in complex, real-world scenarios.

The Challenge of MNAR Data

In data science, it is common to assume that missing data is "Missing at Random" (MAR), meaning the probability of a value being missing doesn't depend on the missing value itself. For example, if a sensor fails because its battery died, that’s MAR. However, in many critical fields, data is Missing Not At Random (MNAR). Consider a thermometer that only breaks when the temperature exceeds 100°C, or a survey where high-income individuals are less likely to report their earnings.

If standard tools (like a basic Variational Autoencoder or mean imputation) are applied to MNAR data, the results will be fundamentally biased. The model will incorrectly assume the missing values look like the observed ones, leading to a skewed understanding of the true distribution. The authors aim to bridge this gap by creating a Deep Latent Variable Model (DLVM) capable of handling these "non-ignorable" missingness patterns.

Methodology: The not-MIWAE Framework

The core contribution of the paper is the not-MIWAE (not-Missing-at-Random Importance-Weighted Autoencoder). It tackles the MNAR problem through several key innovations:

  1. Joint Modeling: Instead of solely modeling the data $x$, the authors model the joint distribution of the data and the "missingness mask" $s$ (a binary vector indicating what is missing). This is factored as $p(x, s) = p(x)p(s|x)$.
  2. The Missingness Model: A flexible neural network is used to model $p(s|x)$. This allows practitioners to incorporate prior knowledge. For instance, if the data is known to be "self-censored" (values are missing because they are too high or too low), that structural assumption can be reflected in the network's architecture.
  3. Inference via IWAE: Training is performed by maximizing a lower bound of the joint likelihood, building upon the Importance Weighted Autoencoder (IWAE) framework.
  4. Double Reparameterization: To obtain gradients for the lower bound, the authors apply the "reparameterization trick" twice: once for the latent variables (standard in VAEs) and once for the missing data itself. This allows the model to backpropagate through the "hallucinated" missing values during training.
Graphical model and scatter plot comparing PPCA and not-MIWAE under MNAR conditions.

Key Insights

  • The Mask is a Signal: In MNAR settings, the fact that a value is missing is itself a piece of data. By modeling the mask, not-MIWAE learns why things are missing, which helps it better estimate what those missing values were.
  • Prior Knowledge Matters: The model performs best when the user provides a hint about the missingness mechanism. Even an "agnostic" model (a general-purpose MLP for the mask) outperforms standard MAR models, but specific architectures provide a significant boost.
  • Breaking the Bias: Standard models like PPCA or MIWAE tend to impute missing values near the mean of the observed data. not-MIWAE is "brave" enough to impute values in the tails of the distribution if the missingness model suggests that's where they belong.

Experiments and Results

The authors evaluated not-MIWAE across three distinct types of data, demonstrating significant improvements over standard approaches:

  • UCI Machine Learning Repository: Across six datasets (Banknote, Concrete, Red/White Wine, Yeast, and Breast Cancer) with artificial "self-masking", not-MIWAE significantly outperformed standard MIWAE and low-rank models. On the "Banknote" dataset, the imputation error (RMSE) dropped from ~1.19 (MIWAE) to 0.57 (not-MIWAE).
  • Recommender Systems: On the Yahoo! R3 dataset—a "gold standard" for MNAR research due to its biased training set and unbiased test set—not-MIWAE achieved a state-of-the-art Mean Squared Error (MSE) of 0.939. It beat complex propensity-score-based methods that often require a separate "unbiased" dataset to work.
  • Image Reconstruction (SVHN): Using the Street View House Numbers dataset, the authors emulated "clipping" where pixels with intensity above 0.75 were treated as missing. not-MIWAE successfully reconstructed these high-intensity (bright) pixels, whereas standard models simply blurred them out or replaced them with average gray tones.
SVHN image reconstruction comparison showing original, masked, MIWAE, and not-MIWAE results.

Limitations and Future Work

While powerful, the approach has limitations. MNAR models are notoriously difficult to "identify"—different combinations of data models and missingness models might explain the same observed data equally well. The authors suggest that using equivariant or invariant neural networks could help constrain the model in the future.

Additionally, the current double reparameterization approach works best for continuous data. While the authors utilized the Gumbel-Softmax trick for categorical data in the Yahoo! experiment, extending this framework to high-dimensional discrete data (like text) remains an open challenge. Finally, there is a delicate balance to strike: if both the data model and the missingness model are too flexible, the system risks overfitting the noise in the missingness pattern.

Summary updated

BibTeX
@inproceedings{ipsen2021not,
  author = {Niels Bruun Ipsen and Pierre-Alexandre Mattei and Jes Frellsen},
  title = {{not-MIWAE: Deep Generative Modelling with Missing not at Random Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=tu29GQT0JFy},
}
Figure