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

Niels Bruun Ipsen, Pierre-Alexandre Mattei, Jes Frellsen

Abstract

Deep latent variable models (DLVMs) typically assume that data is missing at random (MAR). However, in many real-world applications, the missingness mechanism is non-ignorable, meaning the probability of a value being missing depends on the value itself—a scenario known as Missing Not at Random (MNAR). We introduce not-MIWAE, a framework that jointly models the data and the missingness process. By utilizing a deep neural network to model the missingness mask and a specialized variational bound with double reparameterization, not-MIWAE effectively debiases generative models and improves imputation accuracy.

Introduction

In practice, datasets are frequently incomplete. Standard machine learning approaches often assume data is either Missing Completely at Random (MCAR) or Missing at Random (MAR). Under these assumptions, the mechanism causing the missingness can be ignored without introducing bias into the model parameters.

However, many critical scenarios involve Missing Not at Random (MNAR) data. For example, in medical surveys, patients with certain conditions might be less likely to report symptoms, or sensors might fail specifically when readings exceed a certain threshold (clipping). Ignoring the missingness mechanism in these cases leads to fundamental biases, such as underestimating population means. This paper proposes a method to build DLVMs that explicitly account for this non-ignorable missingness.

The not-MIWAE Framework

The core of the proposed approach is the not-missing-at-random importance-weighted autoencoder (not-MIWAE). Unlike standard Variational Autoencoders (VAEs) that only model the data $x$, not-MIWAE models the joint distribution of the data and the "missingness mask" $s$.

Graphical model and bias correction intuition.

Joint Modeling

The model factors the joint distribution as $p(x, s) = p(x)p(s|x)$. Here, $p(x)$ is the standard generative model (e.g., a VAE), and $p_\phi(s|x)$ is a "missingness model"—a deep neural network that predicts the probability of a feature being missing given its value.

Training and Inference

To train the model, we maximize a tighter lower bound of the joint likelihood, building on the Importance Weighted Autoencoder (IWAE) framework. This requires backpropagating through samples of both the latent variables $z$ and the missing data $x^m$. The authors employ a "double reparameterization" trick to maintain stable gradients during this process. By treating the missingness mask $s$ as a supervised signal, the model is forced to learn latent representations and missing values that are consistent with the observed pattern of missingness.

Experimental Evaluation

The authors evaluated not-MIWAE across several challenging benchmarks:

  1. UCI Machine Learning Repository: Six datasets were subjected to "self-masking," where values higher than the mean were more likely to be missing.
  2. SVHN (Street View House Numbers): A "clipping" scenario was emulated by censoring pixels with brightness above 0.75.
  3. Yahoo! R3 Recommender System: A real-world dataset containing a biased training set (user-selected ratings) and an unbiased test set.

Key Results

On the UCI self-masking tasks, not-MIWAE consistently outperformed standard MIWAE and traditional imputation methods like MICE, sometimes reducing Root Mean Square Error (RMSE) by over 50%.

In the SVHN clipping experiment, standard MIWAE failed to impute pixels outside the observed range (0 to 0.75). In contrast, not-MIWAE successfully recovered values above the threshold, leading to significantly more realistic reconstructions.

Comparison of SVHN image recovery under brightness clipping.

Furthermore, on the Yahoo! R3 dataset, not-MIWAE achieved state-of-the-art results (MSE of 0.939) without requiring access to unbiased data during training, a common requirement for other debiasing methods in collaborative filtering.

Discussion and Future Work

While not-MIWAE shows significant promise, MNAR modeling is inherently difficult due to identifiability issues—multiple models can often explain the same observed data. Success often relies on reasonable assumptions about the missingness structure. Future work includes extending the framework to handle discrete missing data using techniques like the Gumbel-Softmax trick and exploring the trade-offs between the complexity of the data model and the missingness model.

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